Nested Virtualization (X86) Part II
summary
Sketch implementation exists for nested x86 on Xen with a working VMcb/PTM plumbing but concrete pitfalls appear: inconsistent naming across vmcS/vmcb variants, new feature leakage where PCID bits cause VM entry failure (L0 copies PCID-bearing CR3 into VMcb02 and the hardware rejects the entry, crashing L2), and naive VMEXIT handling that sometimes should GP-fault instead of letting L2 directly affect L0. Planned work: XTF unit tests, add MSR/CPUID filtering for nested guests, and apply shadow-paging optimizations to PTM shadowing.
AI-written summary · about
chapters (7)
- 0:00Introduction and review
- 1:49Naming pitfalls in code
- 3:56New feature leakage issue
- 10:08Naive vmexit handling
- 11:55Future work and testing
- 13:18Optimizing PTM shadowing
- 29:05Q&A session
related talks
31mKVM Nested Virtualization: Workings and Usecases
03h 01mHands-on Introduction to Virtualization
21mEmulating Hyper-V in 2022
31mPVH Technical Deep Dive
11mAdvanced Parallel Memory Virtualization
23mHyper-V's Virtual Secure Mode in KVM project update
21mRISC V Hypervisor Support
36mShared Virtual Addressing for High Performance Arm Infrastructure Platforms
