Preparing Xen on Arm for VHE-Always Hardware
summary
Xen adapts to Arm platforms with VHE forced on by booting with E2H=1, TGE=0, using a single binary that detects VHE early, builds VHE-aware page tables, and then applies alternative-based register patching so hot paths avoid repeated HCR reads. The design requires uniform VHE across cores (no heterogeneous mode), shares VHE page tables, and is validated under emulation and on real hardware with no random crashes observed. Code is gated behind a config option and awaits upstream/IP approval.
AI-written summary · about
chapters (16)
- 0:00Introduction to VHE-Always
- 4:20VHE and E2H0 basics
- 7:10VHE hardware effects
- 8:33KVM execution models
- 11:23Current Xen on Arm status
- 12:29ARMv9.6 VHE-Always impact
- 13:12Proposed Xen VHE solution
- 14:19Early boot and VHE detection
- 16:44Uniform VHE support requirements
- 17:25Register encoding challenges
- 18:53Alternative-based implementation
- 20:18Register semantics differences
- 21:01Page table construction impact
- 21:22Current implementation status
- 22:44Future plans and patch set
- 23:28Q&A session
