Skip to content

Commit

Permalink
ARM: KVM: drop limitation to 4 CPU VMs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Zyngier authored and Christoffer Dall committed Oct 22, 2013
1 parent 9cbb6d9 commit 7999b4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/arm/kvm/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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;
cpu_reset = &cortexa_regs_reset;
vcpu->arch.midr = read_cpuid_id();
cpu_vtimer_irq = &cortexa_vtimer_irq;
Expand Down

0 comments on commit 7999b4d

Please sign in to comment.