public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/4] Add functional test for AMD VMSAVE/VMLOAD instructions
@ 2024-05-14 12:07 Martin Doucha
  2024-05-14 12:07 ` [LTP] [PATCH v2 1/4] KVM: Disable EBP register use in 32bit code Martin Doucha
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Martin Doucha @ 2024-05-14 12:07 UTC (permalink / raw)
  To: ltp

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

-- 
2.44.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-14 12:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 12:07 [LTP] [PATCH v2 0/4] Add functional test for AMD VMSAVE/VMLOAD instructions Martin Doucha
2024-05-14 12:07 ` [LTP] [PATCH v2 1/4] KVM: Disable EBP register use in 32bit code Martin Doucha
2024-05-14 12:07 ` [LTP] [PATCH v2 2/4] KVM: Implement strchr() and basic sprintf() Martin Doucha
2024-05-14 12:07 ` [LTP] [PATCH v2 3/4] KVM: Implement printf-like formatting for tst_res() and tst_brk() Martin Doucha
2024-05-14 12:07 ` [LTP] [PATCH v2 4/4] KVM: Add functional test for VMSAVE/VMLOAD instructions Martin Doucha
2024-05-14 12:59   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox