mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Signed-off-by: Pranavkumar Sawargaonkar <[email protected]> Signed-off-by: marc Zyngier <[email protected]>
This commit is contained in:
1 parent
e28100bd8e
commit
e5cf9dcdbf
1 file changed
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user