KVM/MIPS32: Do not call vcpu_load when injecting interrupts.
authorSanjay Lal <sanjayl@kymasys.com>
Thu, 22 Nov 2012 02:34:15 +0000 (18:34 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 9 May 2013 15:48:22 +0000 (17:48 +0200)
Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
virt/kvm/kvm_main.c

index adc68fe..845cd9c 100644 (file)
@@ -1954,7 +1954,7 @@ static long kvm_vcpu_ioctl(struct file *filp,
        if (vcpu->kvm->mm != current->mm)
                return -EIO;
 
-#if defined(CONFIG_S390) || defined(CONFIG_PPC)
+#if defined(CONFIG_S390) || defined(CONFIG_PPC) || defined(CONFIG_MIPS)
        /*
         * Special cases: vcpu ioctls that are asynchronous to vcpu execution,
         * so vcpu_load() would break it.