Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: KVM: drop limitation to 4 CPU VMs

Now that the KVM/arm code knows about affinity, remove the hard
limit of 4 vcpus per VM.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>

authored by

Marc Zyngier and committed by
Christoffer Dall
7999b4d1 9cbb6d96

-4
-4
arch/arm/kvm/reset.c
··· 33 33 * Cortex-A15 and Cortex-A7 Reset Values 34 34 */ 35 35 36 - static const int cortexa_max_cpu_idx = 3; 37 - 38 36 static struct kvm_regs cortexa_regs_reset = { 39 37 .usr_regs.ARM_cpsr = SVC_MODE | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT, 40 38 }; ··· 62 64 switch (vcpu->arch.target) { 63 65 case KVM_ARM_TARGET_CORTEX_A7: 64 66 case KVM_ARM_TARGET_CORTEX_A15: 65 - if (vcpu->vcpu_id > cortexa_max_cpu_idx) 66 - return -EINVAL; 67 67 cpu_reset = &cortexa_regs_reset; 68 68 vcpu->arch.midr = read_cpuid_id(); 69 69 cpu_vtimer_irq = &cortexa_vtimer_irq;