aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2024-12-16 10:50:51 +0000
committerMarc Zyngier <maz@kernel.org>2024-12-20 13:53:55 +0000
commit092e7b2c3b1a5591bbabc358f3b709dfa2289b91 (patch)
tree7f3745d3b99753012b8cdb14a19c35fc254d5ad3
parentKVM: arm64: Remove fixed_config.h header (diff)
downloadwireguard-linux-092e7b2c3b1a5591bbabc358f3b709dfa2289b91.tar.xz
wireguard-linux-092e7b2c3b1a5591bbabc358f3b709dfa2289b91.zip
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 b56680de9c64 ("KVM: arm64: Initialize trap register values in hyp in pKVM"), this has been fixed, and the setting of the flag here is redundant. Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20241216105057.579031-12-tabba@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--arch/arm64/kvm/hyp/nvhe/pkvm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/pkvm.c b/arch/arm64/kvm/hyp/nvhe/pkvm.c
index df30d46b7542..2beab633d721 100644
--- a/arch/arm64/kvm/hyp/nvhe/pkvm.c
+++ b/arch/arm64/kvm/hyp/nvhe/pkvm.c
@@ -57,9 +57,6 @@ static void pvm_init_traps_hcr(struct kvm_vcpu *vcpu)
/* No support for AArch32. */
val |= HCR_RW;
- if (has_hvhe())
- val |= HCR_E2H;
-
/*
* Always trap:
* - Feature id registers: to control features exposed to guests