Skip to content

Commit 092e7b2

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
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 b56680d ("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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 81403c8 commit 092e7b2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/arm64/kvm/hyp/nvhe/pkvm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ static void pvm_init_traps_hcr(struct kvm_vcpu *vcpu)
5757
/* No support for AArch32. */
5858
val |= HCR_RW;
5959

60-
if (has_hvhe())
61-
val |= HCR_E2H;
62-
6360
/*
6461
* Always trap:
6562
* - Feature id registers: to control features exposed to guests

0 commit comments

Comments
 (0)