From patchwork Wed Sep 11 13:02:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 2872551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BF875BF43F for ; Wed, 11 Sep 2013 13:08:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 17EDD20378 for ; Wed, 11 Sep 2013 13:08:37 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 483EB20165 for ; Wed, 11 Sep 2013 13:08:32 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk9m-000338-0v; Wed, 11 Sep 2013 13:08:30 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk4u-00058H-Bh; Wed, 11 Sep 2013 13:03:28 +0000 Received: from mail-pa0-f53.google.com ([209.85.220.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VJk4s-00057L-AG for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2013 13:03:27 +0000 Received: by mail-pa0-f53.google.com with SMTP id lb1so9202396pab.26 for ; Wed, 11 Sep 2013 06:03:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Btja+AES4Iu+706IrQCL78YQgigeFlsqaznPvhy3qBA=; b=HeGeeQ4mSTyJ9S8GvmKCeasRWcO0EAQRShioyC9W7lYzhUYTraRoePsajqLCtZ4fDh LCMXGMEGiXSa6PNft4x8KnyUZljLr4q/1s6C3yHXStU7grIN6H/2L01C+GuME5U6vG2o EKxx9ah8EOW5KS8yXvR0GD2RztDyrlBM0m9Dw6cJfdprm/uT0g7lPGmoJY43dp/JkzTo nSvcr+3oQ4kv9ObR/nPHbjPX5OprQoQkTgXbE8jsd/CCt/9X2XVCyd0nP9QWp4s/PwBI k8FbAnhIY28HOuZhGBc78zaskXeda7XTHcY4BAU6Y8dX6XVPNeQARbHIXM8NpIsYN4gE XIMA== X-Gm-Message-State: ALoCoQmojWXGpgmZy5zMZ6AugABSXWEcCw7UxNJuWBQcHjjEVB3gMs4ph5OQj3jDrmBO6soYFnd0 X-Received: by 10.68.193.201 with SMTP id hq9mr1644724pbc.170.1378904584108; Wed, 11 Sep 2013 06:03:04 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id yo2sm3488197pab.8.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 06:03:03 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH] arm64: KVM: Increase max VCPUs per-Guest to 8 Date: Wed, 11 Sep 2013 18:32:32 +0530 Message-Id: <1378904552-29347-1-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130911_090326_493690_9AB75420 X-CRM114-Status: GOOD ( 10.96 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Anup Patel , patches@linaro.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, Pranavkumar Sawargaonkar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Current max VCPUs per-Guest is set to 4 which is preventing us from creating a Guest (or VM) with 8 VCPUs on Host (e.g. X-Gene Storm SOC) with 8 Host CPUs. The correct value of max VCPUs per-Guest should be same as the max CPUs supported by GICv2 which is 8 hence this patch increases KVM_MAX_VCPUS to 8. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- arch/arm64/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 0859a4d..60ef29e 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -26,7 +26,7 @@ #include #include -#define KVM_MAX_VCPUS 4 +#define KVM_MAX_VCPUS 8 #define KVM_USER_MEM_SLOTS 32 #define KVM_PRIVATE_MEM_SLOTS 4 #define KVM_COALESCED_MMIO_PAGE_OFFSET 1