]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Remove redundant setting of HCR_EL2 trap bit
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:51 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:53:55 +0000 (13:53 +0000)
commit092e7b2c3b1a5591bbabc358f3b709dfa2289b91
tree7f3745d3b99753012b8cdb14a19c35fc254d5ad3
parent81403c8d04e1d85209cdb0e0ce32aa0019620c65
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>
arch/arm64/kvm/hyp/nvhe/pkvm.c