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 adc68feb5c5a338080ac8ca2385f73577ac6c29a..845cd9cf5189b39e5926c5653a1de491ca322d02 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.