KVM: arm64: Remove redundant setting of HCR_EL2 trap bit
In hVHE mode, HCR_E2H should be set for both protected and
non-protected VMs. Since commit 23c9d58cb458 ("KVM: arm64: Fix
initializing traps in protected mode"), this has been fixed, and
the setting of the flag here is redundant.
Signed-off-by: Fuad Tabba <tabba@google.com>
diff --git a/arch/arm64/kvm/hyp/nvhe/pkvm.c b/arch/arm64/kvm/hyp/nvhe/pkvm.c
index d0dd186..06649e6 100644
--- a/arch/arm64/kvm/hyp/nvhe/pkvm.c
+++ b/arch/arm64/kvm/hyp/nvhe/pkvm.c
@@ -69,9 +69,6 @@ static void pvm_init_traps_hcr(struct kvm_vcpu *vcpu)
hcr_set |= HCR_RW;
- if (has_hvhe())
- hcr_set |= HCR_E2H;
-
/*
* Always trap:
* - Feature id registers: to control features exposed to guests