summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2014-06-02 14:26:01 (GMT)
committerChristoffer Dall <christoffer.dall@linaro.org>2015-01-20 17:25:28 (GMT)
commit3caa2d8c3b2d80f5e342fe8cec07c03c8147dcab (patch)
treea07f89b6bcbd96fa45a65b52591d5fda2490a2f4 /arch/arm/include/asm/kvm_host.h
parent4ce7ebdfc69d1d5d166eec103ed2976eb45a6173 (diff)
downloadlinux-3caa2d8c3b2d80f5e342fe8cec07c03c8147dcab.tar.xz
arm/arm64: KVM: make the maximum number of vCPUs a per-VM value
Currently the maximum number of vCPUs supported is a global value limited by the used GIC model. GICv3 will lift this limit, but we still need to observe it for guests using GICv2. So the maximum number of vCPUs is per-VM value, depending on the GIC model the guest uses. Store and check the value in struct kvm_arch, but keep it down to 8 for now. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/kvm_host.h')
-rw-r--r--arch/arm/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index 2fa5174..bde4946 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -68,6 +68,7 @@ struct kvm_arch {
/* Interrupt controller */
struct vgic_dist vgic;
+ int max_vcpus;
};
#define KVM_NR_MEM_OBJS 40