]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - arch/arm64/include/asm/kvm_host.h
arm/arm64: KVM: make the maximum number of vCPUs a per-VM value
authorAndre Przywara <andre.przywara@arm.com>
Mon, 2 Jun 2014 14:26:01 +0000 (16:26 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 20 Jan 2015 17:25:28 +0000 (18:25 +0100)
commit3caa2d8c3b2d80f5e342fe8cec07c03c8147dcab
treea07f89b6bcbd96fa45a65b52591d5fda2490a2f4
parent4ce7ebdfc69d1d5d166eec103ed2976eb45a6173
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>
arch/arm/include/asm/kvm_host.h
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_host.h
include/kvm/arm_vgic.h
virt/kvm/arm/vgic-v2.c
virt/kvm/arm/vgic-v3.c
virt/kvm/arm/vgic.c