]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
arm64: KVM: Force undefined exception for Guest SMC intructions
authorAnup Patel <anup.patel@linaro.org>
Thu, 12 Dec 2013 16:12:23 +0000 (16:12 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 28 Dec 2013 10:28:50 +0000 (10:28 +0000)
The SMC-based PSCI emulation for Guest is going to be very different
from the in-kernel HVC-based PSCI emulation hence for now just inject
undefined exception when Guest executes SMC instruction.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/handle_exit.c

index 8da56067c304cd6b15e654015f8ecb6528c9bb65..df84d7bcc7dfc2586f14c4cd8db79a1752d530fe 100644 (file)
@@ -39,9 +39,6 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)
 
 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run)
 {
-       if (kvm_psci_call(vcpu))
-               return 1;
-
        kvm_inject_undefined(vcpu);
        return 1;
 }