Add functional test for AMD VMSAVE/VMLOAD instructions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 1 replyIn review
- v19 patches 8 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: Disable EBP register use in 32bit codeconfigure.ac include/ testcases/ | +7 | 0 replies | |
| 2/4 | KVM: Implement strchr() and basic sprintf()testcases/ testcases/ | +319 | 0 replies | |
| 3/4 | KVM: Implement printf-like formatting for tst_res() and tst_brk()testcases/ testcases/ | +40 | 0 replies | |
| 4/4 | KVM: Add functional test for VMSAVE/VMLOAD instructionsruntest/ testcases/ testcases/ | +309 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [LTP] [PATCH v2 0/4] Add functional test for AMD VMSAVE/VMLOAD instructions
Thanks to a minor bug in LTP KVM library, LTP test kvm_svm02 found a kernel bug in emulation of VMSAVE and VMLOAD instructions in nested VMs. Add a thorough functional test for both instructions which can detect and pinpoint emulation bugs.
Also implement basic printf-like formatting for tst_res() and tst_brk() so that the test can print incorrect register values to simplify result analysis. Only standard integer and character conversions are supported. Floating point number conversions, field alignment and padding are not implemented.
Martin Doucha (4):
KVM: Disable EBP register use in 32bit code
KVM: Implement strchr() and basic sprintf()
KVM: Implement printf-like formatting for tst_res() and tst_brk()
KVM: Add functional test for VMSAVE/VMLOAD instructions
configure.ac | 2 + include/mk/config.mk.in | 1 + runtest/kvm | 1 + testcases/kernel/kvm/.gitignore | 1 + testcases/kernel/kvm/Makefile | 4 + testcases/kernel/kvm/include/kvm_guest.h | 19 +- testcases/kernel/kvm/kvm_svm04.c | 307 ++++++++++++++++++++ testcases/kernel/kvm/lib_guest.c | 348 ++++++++++++++++++++++- 8 files changed, 675 insertions(+), 8 deletions(-) create mode 100644 testcases/kernel/kvm/kvm_svm04.c
Signature · 5 lines
2.44.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp