Skip to content

Commit

Permalink
ArmVirtPkg/ArmPlatformLibQemu: Disabled EL2&0 translation regime
Browse files Browse the repository at this point in the history
to fix Windows 10 boot.
  • Loading branch information
Mikhail Krichanov committed Feb 27, 2025
1 parent 8145004 commit 547f0bc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ ASM_FUNC(ArmPlatformPeiBootAction)
tst x0, #ID_AA64MMFR1_VH_MASK
b.eq 0f

/*
* Do not enable EL2&0 translation regime, as it breaks Windows 10 boot.
*
mrs x0, hcr_el2 // Enable VHE support
orr x0, x0, #HCR_EL2_E2H
msr hcr_el2, x0
isb

*/
.Learly_idmap:
mov_i x0, mairval
mov_i x1, tcrval
Expand Down

0 comments on commit 547f0bc

Please sign in to comment.