Add initial GHCB support for SEV-ES selftests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Add GHCB with setters and getterstools/ tools/ | +107 | 1 reply | |
| 2/6 | Add arch specific additional guest pagestools/ tools/ | +15 | 0 replies | |
| 3/6 | Add vm_vaddr_alloc_pages_shared()tools/ tools/ | +7 | 0 replies | |
| 4/6 | Add GHCB allocations and helperstools/ tools/ tools/ | +87 | 3 replies | |
| 5/6 | Add is_sev_enabled() helperstools/ tools/ tools/ | +16 | 1 reply | |
| 6/6 | Add ability for SEV-ES guests to use ucalls via GHCBtools/ tools/ tools/ +1 more | +84 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Add initial GHCB support for SEV-ES selftests
Adding GHCB support for selftests. Very similar code to the ucall functionality, I didn't refactor anything common out since I was unsure with just two instances that is required. If pulling out common code between those two is preferred please let me know. The series only adds a single usage of the GHCB which is a special outsb GHCB exit to allow for passing the 64-bit ucall pointer. In future series we can test more GHCB functionality of KVM. I'd like to base some SNP smoke tests off of this and the current SEV selftest work.
base-commit: 40e09b3ccfacc640d58e1e3d6b8f29b2db0a9848
Peter Gonda (6):
Add GHCB with setters and getters
Add arch specific additional guest pages Add vm_vaddr_alloc_pages_shared()
Add GHCB allocations and helpers
Add is_sev_enabled() helpers
Add ability for SEV-ES guests to use ucalls via GHCB
tools/testing/selftests/kvm/Makefile | 2 +- .../selftests/kvm/include/kvm_util_base.h | 4 + .../selftests/kvm/include/x86_64/sev.h | 7 + .../selftests/kvm/include/x86_64/svm.h | 106 +++++++++++++ tools/testing/selftests/kvm/lib/kvm_util.c | 22 ++- .../selftests/kvm/lib/x86_64/processor.c | 8 + tools/testing/selftests/kvm/lib/x86_64/sev.c | 149 ++++++++++++++++++ .../testing/selftests/kvm/lib/x86_64/ucall.c | 17 ++ .../selftests/kvm/x86_64/sev_smoke_test.c | 22 +-- 9 files changed, 313 insertions(+), 24 deletions(-)
Signature · 1 line
2.44.0.478.gd926399ef9-goog