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: 19972 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55ECA248D9 for ; Wed, 11 Sep 2013 13:03:06 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf10289210vbg.11 for ; Wed, 11 Sep 2013 06:03:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Btja+AES4Iu+706IrQCL78YQgigeFlsqaznPvhy3qBA=; b=NDFQJYMd7hf/kia35qTEjB2k7PuwQdD0ZCynVucRHCfJlRkGFFKcxJs8AyF3sY+25d jCJYrcahC3EHQR/kGY7+SO3OnhDbHEFBcVuJM1YghTJWKHJKG5g2zUR1U87zQVhAK7pO GYG6leJWzReBnX+Q44GKTz0oyxkAiu/rN3CAQaiph7GTvQNsokaHxXK2RT8nRsvU6QAi 3Z8H3CrZSyeyZZGTw9yFUMUhbthfR3+vW74f2oEKWMFseQdBJLbRtG/kPIEJ15UhirKK /Va5nahkdlunhgxF1saO4VN+isZjSKAwcSDqaiIKHyoFIKtqu6QxKohHu99p5pxPncwu Gu4w== X-Received: by 10.52.30.112 with SMTP id r16mr96871vdh.0.1378904585924; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.74.35 with SMTP id q3ls220639qev.50.gmail; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) X-Received: by 10.220.10.194 with SMTP id q2mr1191347vcq.2.1378904585706; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id he13si5962213veb.121.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 06:03:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id oy12so5555275veb.40 for ; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) X-Gm-Message-State: ALoCoQk1xctpKzVas8fLsDVt8GqQ7/MLhm/vC78x3Zjop0Vw2xHx002xbWI9zEEtVxtrX31P0D7v X-Received: by 10.52.24.4 with SMTP id q4mr385268vdf.34.1378904585610; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp55023vcz; Wed, 11 Sep 2013 06:03:05 -0700 (PDT) X-Received: by 10.67.14.231 with SMTP id fj7mr3476522pad.115.1378904584576; Wed, 11 Sep 2013 06:03:04 -0700 (PDT) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id es1si5181193pbc.356.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 06:03:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id w10so9179698pde.37 for ; Wed, 11 Sep 2013 06:03:04 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, marc.zyngier@arm.com, Anup Patel , Pranavkumar Sawargaonkar 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anup.patel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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