KVM: arm64: selftests: Basic nested guest support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest9 patches 6 repliesIn review
- v24 patches 9 repliesSuperseded
- v13 patches 7 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | KVM: arm64: selftests: Add GPR save/restore functions for NVtools/ tools/ tools/ +2 more | +269 | 0 replies | |
| 2/9 | KVM: arm64: selftests: Add helpers for guest hypervisorstools/ tools/ tools/ | +68 | 0 replies | |
| 3/9 | KVM: arm64: selftests: Add hello_nested basic NV selftesttools/ tools/ | +105 | 0 replies | |
| 4/9 | KVM: arm64: selftests: Enhance hello_nested testtools/ tools/ | +32 | 0 replies | |
| 5/9 | KVM: arm64: selftests: Add shadow_stage2 testtools/ tools/ | +129 | 4 replies | |
| 6/9 | KVM: arm64: selftests: shadow_stage2: Allocate L2 stack from dedicated pooltools/ tools/ tools/ | +58 | 0 replies | |
| 7/9 | KVM: arm64: selftests: shadow_stage2: Check supported stage-2 granule sizetools/ tools/ tools/ | +39 | 0 replies | |
| 8/9 | KVM: arm64: selftests: Add infrastructure for using stage-2 in guesttools/ tools/ tools/ +1 more | +160 | 2 replies | |
| 9/9 | KVM: arm64: selftests: shadow_stage2: Turn on stage-2 translation for the nested guesttools/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/9] KVM: arm64: selftests: Basic nested guest support
Hi,
This is v3 of adding basic support for running nested guests (L2) in kselftest. This time a framework for enabling stage-2 in the guest is added, including the s2_mmu struct, s2 translation control setup, and a stage-2 page table generator. Similar to L2 vCPU management, all stage-2 work is done in the guest instead of userspace.
An additional shadow_stage2 test is added which leverages the framework to run L2 with stage-2 enabled.
* Changes from v2 [1]:
- Update vm_paddr_t to gpa_t, vm_vaddr_t to gva_t.
- Added framework for enabling stage-2 in the guest.
- Added shadow_stage2 test.
Thanks!
[1]: https://lore.kernel.org/kvmarm/[email protected]/
Wei-Lin Chang (9):
KVM: arm64: selftests: Add GPR save/restore functions for NV
KVM: arm64: selftests: Add helpers for guest hypervisors
KVM: arm64: selftests: Add hello_nested basic NV selftest
KVM: arm64: selftests: Enhance hello_nested test
KVM: arm64: selftests: Add shadow_stage2 test
KVM: arm64: selftests: shadow_stage2: Allocate L2 stack from dedicated
pool
KVM: arm64: selftests: shadow_stage2: Check supported stage-2 granule
size
KVM: arm64: selftests: Add infrastructure for using stage-2 in guest
KVM: arm64: selftests: shadow_stage2: Turn on stage-2 translation for
the nested guest
tools/testing/selftests/kvm/Makefile.kvm | 5 + .../selftests/kvm/arm64/hello_nested.c | 134 +++++++++ .../selftests/kvm/arm64/shadow_stage2.c | 165 +++++++++++ .../selftests/kvm/include/arm64/nested.h | 85 ++++++ tools/testing/selftests/kvm/lib/arm64/entry.S | 137 +++++++++ .../selftests/kvm/lib/arm64/hyp-entry.S | 77 +++++ .../testing/selftests/kvm/lib/arm64/nested.c | 264 ++++++++++++++++++ 7 files changed, 867 insertions(+) create mode 100644 tools/testing/selftests/kvm/arm64/hello_nested.c create mode 100644 tools/testing/selftests/kvm/arm64/shadow_stage2.c create mode 100644 tools/testing/selftests/kvm/include/arm64/nested.h create mode 100644 tools/testing/selftests/kvm/lib/arm64/entry.S create mode 100644 tools/testing/selftests/kvm/lib/arm64/hyp-entry.S create mode 100644 tools/testing/selftests/kvm/lib/arm64/nested.c
Signature · 1 line
2.43.0