Revert "ANDROID: KVM: arm64: pkvm: Don't init pvm traps non non-protected guests"

This reverts commit 1fef38359c.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Ib43801b7ccbae0ff3dbba90fd5807545a185c238
This commit is contained in:
Will Deacon
2022-07-07 15:51:18 +01:00
parent 62d2bb0336
commit 4a8d2c41f1

View File

@@ -379,8 +379,7 @@ static int init_shadow_structs(struct kvm *kvm, struct kvm_shadow_vm *vm,
if (ret)
return ret;
if (vm->arch.pkvm.enabled)
pkvm_vcpu_init_traps(shadow_vcpu);
pkvm_vcpu_init_traps(shadow_vcpu);
kvm_reset_pvm_sys_regs(shadow_vcpu);
vm->vcpus[i] = shadow_vcpu;