ArmVirtPkg/ArmPlatformLibQemu: Disabled EL2&0 translation regime

to fix Windows 10 boot.
This commit is contained in:
Mikhail Krichanov 2025-02-27 11:52:16 +03:00
parent cf7183bed3
commit 8e7ca84336
1 changed files with 4 additions and 1 deletions

View File

@ -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