From: Marc Zyngier Date: Fri, 18 Oct 2013 17:19:06 +0000 (+0100) Subject: ARM: KVM: drop limitation to 4 CPU VMs X-Git-Tag: firefly_0821_release~3680^2~36^2~16^2^2~195 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c93a79267ff11590dd7835c6622bd9f29ef43e73;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Christoffer Dall (cherry picked from commit 7999b4d18211bcfb40e3574cf75e94518e9fa2c6) Signed-off-by: Christoffer Dall --- diff --git a/arch/arm/kvm/reset.c b/arch/arm/kvm/reset.c index d153e64d1255..f558c073c023 100644 --- a/arch/arm/kvm/reset.c +++ b/arch/arm/kvm/reset.c @@ -33,8 +33,6 @@ * Cortex-A15 and Cortex-A7 Reset Values */ -static const int cortexa_max_cpu_idx = 3; - static struct kvm_regs cortexa_regs_reset = { .usr_regs.ARM_cpsr = SVC_MODE | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT, }; @@ -64,8 +62,6 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu) switch (vcpu->arch.target) { case KVM_ARM_TARGET_CORTEX_A7: case KVM_ARM_TARGET_CORTEX_A15: - if (vcpu->vcpu_id > cortexa_max_cpu_idx) - return -EINVAL; reset_regs = &cortexa_regs_reset; vcpu->arch.midr = read_cpuid_id(); cpu_vtimer_irq = &cortexa_vtimer_irq;