| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2026-04-24 | hypervisor: add tests for implicit G-stage faults during VS-stage walks (#651)HEADmaster | Nadime Barhoumi | 3 | -0/+252 | |
| Adds four RV64 hypervisor tests exercising implicit G-stage faults raised during VS-stage page table walks: - 2-stage_translation_implicit_load_error - 2-stage_translation_implicit_load_error_hs - 2-stage_translation_implicit_store_error - 2-stage_translation_implicit_store_error_hs The load variants trigger the fault by leaving the G-stage PTE invalid (no PTE_V), causing the implicit PTE read during the VS-stage walk to fault. The store variants omit PTE_W on the G-stage PTE, so G-stage grants read but denies write, causing the implicit PTE store for the A/D writeback to fail. These require hardware A/D updates, which occur when Svadu is enabled via ADUE. Each test checks mcause/scause, mtval/stval, and mtval2/htval and verifies that mtinst/htinst contains the expected pseudoinstruction: - 0x3000 — 64-bit implicit VS-stage PTE load - 0x3020 — 64-bit implicit VS-stage PTE store | |||||
| 2024-11-16 | Fix the typo in the Makefrag for the reference to 2-stage-translation.S (#596) | Kun Lu | 1 | -1/+1 | |
| 2024-11-11 | Add hypervisor 2-stage translation test (#558) | heiyuen1999 | 2 | -0/+144 | |
| * Create hypervisor Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Delete isa/hypervisor Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Create Makefrag Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Create 2-stage_translation.S set 2-stage translation, do a simple load and store Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Update Makefile add hypervisor to Makefile Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Update 2-stage_translation.S fix some error Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Update 2-stage_translation.S Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Update Makefrag Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Update Makefile Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> * Modify address alignment Modify address alignment to allow the page table to store 2048 entries Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> --------- Signed-off-by: heiyuen1999 <110437689+heiyuen1999@users.noreply.github.com> | |||||
