Skip to content

Add functional test for AMD VMSAVE/VMLOAD instructions

Martin Doucha ltp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v19 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: Disable EBP register use in 32bit codeconfigure.ac include/mk/config.mk.in testcases/kernel/kvm/Makefile+7 -00 replies
2/4KVM: Implement strchr() and basic sprintf()testcases/kernel/kvm/include/kvm_guest.h testcases/kernel/kvm/lib_guest.c+319 -00 replies
3/4KVM: Implement printf-like formatting for tst_res() and tst_brk()testcases/kernel/kvm/include/kvm_guest.h testcases/kernel/kvm/lib_guest.c+40 -80 replies
4/4KVM: Add functional test for VMSAVE/VMLOAD instructionsruntest/kvm testcases/kernel/kvm/.gitignore testcases/kernel/kvm/kvm_svm04.c+309 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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