浏览代码

arm64: KVM: Force undefined exception for Guest SMC intructions

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>
Anup Patel 11 年之前
父节点
当前提交
e5cf9dcdbf
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      arch/arm64/kvm/handle_exit.c

+ 0 - 3
arch/arm64/kvm/handle_exit.c

@@ -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)
 static int handle_smc(struct kvm_vcpu *vcpu, struct kvm_run *run)
 {
 {
-	if (kvm_psci_call(vcpu))
-		return 1;
-
 	kvm_inject_undefined(vcpu);
 	kvm_inject_undefined(vcpu);
 	return 1;
 	return 1;
 }
 }