indicogniBuild a VMM

Lab

Two-stage translation walker

Used in chapter 05.

Walk a guest virtual address through the guest's page tables to an IPA, then through HVF's stage 2, with each stage's granule set separately, and see the exact fault registers when a walk fails.

Runs in browser
Chapter 05's store walked through both stages The va-alias guest stores to virtual address 0x0b10_0000. Stage 1, the guest's three-level table with 4 KiB pages, reads level 1 index 0 at 0x4008_4000 (table at 0x4008_5000), level 2 index 0x58 at 0x4008_52c0 (table at 0x4008_6000), and level 3 index 0x100 at 0x4008_6800, a Device page at IPA 0x0b00_0000. Stage 2, HVF's tables with 16 KiB pages and a 36-bit IPA space, starts at level 2; entry 5 is invalid, so the store is a translation fault at level 2: ESR_EL2 0x93890046, FAR_EL2 0x0b10_0000, HPFAR_EL2 0x000b_0000, and the VMM sees IPA 0x0b00_0000. VA 0x0b10_0000 str w9, [x8] S1 L1[0] 0x4008_4000 S1 L2[0x58] 0x4008_52c0 S1 L3[0x100] page 0x0b00_0000 IPA 0x0b00_0000 S2 L2[0x5]: invalid (16 KiB, 36-bit) translation fault, level 2: VM exit ESR_EL2 0x9389_0046 (EC 0x24, ISV=1, SRT=9, WnR=1, DFSC 0x6) FAR_EL2 0x0b10_0000 (the guest's VA) HPFAR_EL2 0x000b_0000 (IPA page 0x0b00_0000)

All labs