public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/9] Add functional test for AMD VMSAVE/VMLOAD instructions
@ 2024-04-30 12:21 Martin Doucha
  2024-04-30 12:21 ` [LTP] [PATCH 1/9] KVM: Disable EBP register use in 32bit code Martin Doucha
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Martin Doucha @ 2024-04-30 12:21 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 (9):
  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_svm02: Fix saved stack segment index value
  kvm_find_free_descriptor(): Skip descriptor 0
  KVM: Add system control MSR constants
  KVM: Add VMSAVE/VMLOAD functions to x86 SVM library
  KVM: Add functional test for VMSAVE/VMLOAD instructions
  KVM: Move kvm_pagefault01 to the end of KVM runfile

 runtest/kvm                                |   4 +-
 testcases/kernel/kvm/.gitignore            |   1 +
 testcases/kernel/kvm/Makefile              |   2 +-
 testcases/kernel/kvm/include/kvm_guest.h   |  23 +-
 testcases/kernel/kvm/include/kvm_x86.h     |  10 +
 testcases/kernel/kvm/include/kvm_x86_svm.h |   6 +
 testcases/kernel/kvm/kvm_svm02.c           |  14 +-
 testcases/kernel/kvm/kvm_svm04.c           | 307 ++++++++++++++++++
 testcases/kernel/kvm/lib_guest.c           | 348 ++++++++++++++++++++-
 testcases/kernel/kvm/lib_x86.c             |  20 +-
 10 files changed, 713 insertions(+), 22 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] 18+ messages in thread

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

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 12:21 [LTP] [PATCH 0/9] Add functional test for AMD VMSAVE/VMLOAD instructions Martin Doucha
2024-04-30 12:21 ` [LTP] [PATCH 1/9] KVM: Disable EBP register use in 32bit code Martin Doucha
2024-05-06 19:41   ` Petr Vorel
2024-05-07 14:10     ` Martin Doucha
2024-05-07 14:22       ` Petr Vorel
2024-05-07 14:25       ` Petr Vorel
2024-05-07 14:45         ` Martin Doucha
2024-04-30 12:21 ` [LTP] [PATCH 2/9] KVM: Implement strchr() and basic sprintf() Martin Doucha
2024-04-30 12:21 ` [LTP] [PATCH 3/9] KVM: Implement printf-like formatting for tst_res() and tst_brk() Martin Doucha
2024-04-30 12:22 ` [LTP] [PATCH 4/9] kvm_svm02: Fix saved stack segment index value Martin Doucha
2024-04-30 12:22 ` [LTP] [PATCH 5/9] kvm_find_free_descriptor(): Skip descriptor 0 Martin Doucha
2024-04-30 12:22 ` [LTP] [PATCH 6/9] KVM: Add system control MSR constants Martin Doucha
2024-04-30 12:22 ` [LTP] [PATCH 7/9] KVM: Add VMSAVE/VMLOAD functions to x86 SVM library Martin Doucha
2024-05-07 14:57   ` Petr Vorel
2024-04-30 12:22 ` [LTP] [PATCH 8/9] KVM: Add functional test for VMSAVE/VMLOAD instructions Martin Doucha
2024-04-30 12:22 ` [LTP] [PATCH 9/9] KVM: Move kvm_pagefault01 to the end of KVM runfile Martin Doucha
2024-05-06  4:34   ` Petr Vorel
2024-05-07 14: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