arm64: KVM: Add Kconfig option for max VCPUs per-Guest
authorAnup Patel <anup.patel@linaro.org>
Thu, 12 Dec 2013 16:12:22 +0000 (16:12 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:27 +0000 (17:18 +0200)
commitc23fe6933f79809bae75b5e8c16c36d1ffc79e41
treed464e4f2c0e4d634543ce2b97a0e8f1a840174e8
parenta0a11ba68172ffeb62b0a7be8dc4162a0fc2ad6d
arm64: KVM: Add Kconfig option for max VCPUs per-Guest

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 but, increasing
value of max VCPUs per-Guest can make things slower hence
we add Kconfig option to let KVM users select appropriate
max VCPUs per-Guest.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit da7814700a0c408bead58ce4714b7625ffbaade1)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/Kconfig