Skip to content

Basic nested VMX test suite

Arthur Chunqi Li kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 13 repliesIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kvm-unit-tests : Add setjmp/longjmp to libcflatconfig-x86_64.mak lib/setjmp.h lib/x86/setjmp64.S+40 -00 replies
2/2kvm-unit-tests : The first version of VMX nested test caseconfig-x86-common.mak config-x86_64.mak lib/x86/msr.h +4 more+1113 -03 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/2] Basic nested VMX test suite

These two patches are focued on providing a basic version of VMX nested test suite. This commit provides the architecture of nested VMX similiar to x86/svm.c.

When new test suite added, just write functions included in "struct vmx_test" and register it in array "vmx_tests". GPR in guest can be read from vmx_test. guest_regs. VM exit times can be read from vmx_test.exits.

setjmp/longjmp is designed to avoid exiting VMX in call-back form.

Arthur Chunqi Li (2):
kvm-unit-tests : Add setjmp/longjmp to libcflat kvm-unit-tests : The first version of VMX nested test case

 config-x86-common.mak |    2 +
 config-x86_64.mak     |    3 +
 lib/setjmp.h          |   11 +
 lib/x86/msr.h         |    5 +
 lib/x86/setjmp64.S    |   27 ++
 x86/cstart64.S        |    4 +
 x86/unittests.cfg     |    6 +
 x86/vmx.c             |  676 +++++++++++++++++++++++++++++++++++++++++++++++++
 x86/vmx.h             |  419 ++++++++++++++++++++++++++++++
 9 files changed, 1153 insertions(+)
 create mode 100644 lib/setjmp.h
 create mode 100644 lib/x86/setjmp64.S
 create mode 100644 x86/vmx.c
 create mode 100644 x86/vmx.h
Signature · 1 line
1.7.9.5