Skip to content

x86: nVMX: Add VMXON #UD test

Sean Christopherson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86: Use BIT() to define architectural bitslib/x86/processor.h x86/xsave.c+61 -430 replies
2/10x86: Replace spaces with tables in processor.hlib/x86/processor.h+125 -1250 replies
3/10x86: Use "safe" terminology instead of "checking"lib/x86/desc.c lib/x86/desc.h lib/x86/processor.h +9 more+45 -451 reply
4/10x86: Use "safe" helpers to implement unsafe CRs accessorslib/x86/desc.c lib/x86/desc.h lib/x86/processor.h +1 more+42 -200 replies
5/10x86: Provide result of RDMSR from "safe" variantlib/x86/processor.h x86/msr.c+9 -30 replies
6/10nVMX: Check the results of VMXON/VMXOFF in feature control testx86/vmx.c+2 -20 replies
7/10nVMX: Check result of VMXON in INIT/SIPI testsx86/vmx_tests.c+3 -30 replies
8/10nVMX: Wrap VMXON in ASM_TRY(), a.k.a. in exception fixupx86/vmx.c x86/vmx.h x86/vmx_tests.c+36 -190 replies
9/10nVMX: Simplify test_vmxon() by returning directly on failurex86/vmx.c+13 -210 replies
10/10nVMX: Add subtest to verify VMXON succeeds/#UDs on good/bad CR0/CR4x86/vmx.c+95 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 00/10] x86: nVMX: Add VMXON #UD test

Add a testcase to verify VMXON #UDs when attempted with an incompatible CR0 or CR4.

Patches 1-10 are cleanups to make implementing that relatively simple test less painful.

Sean Christopherson (10):
x86: Use BIT() to define architectural bits
x86: Replace spaces with tables in processor.h
x86: Use "safe" terminology instead of "checking"
x86: Use "safe" helpers to implement unsafe CRs accessors
x86: Provide result of RDMSR from "safe" variant
nVMX: Check the results of VMXON/VMXOFF in feature control test
nVMX: Check result of VMXON in INIT/SIPI tests
nVMX: Wrap VMXON in ASM_TRY(), a.k.a. in exception fixup
nVMX: Simplify test_vmxon() by returning directly on failure
nVMX: Add subtest to verify VMXON succeeds/#UDs on good/bad CR0/CR4

 lib/x86/desc.c      |   8 -
 lib/x86/desc.h      |   1 -
 lib/x86/processor.h | 403 +++++++++++++++++++++++++-------------------
 x86/access.c        |   8 +-
 x86/la57.c          |   2 +-
 x86/msr.c           |   5 +-
 x86/pcid.c          |  28 ++-
 x86/rdpru.c         |   4 +-
 x86/vmx.c           | 141 +++++++++++++---
 x86/vmx.h           |  31 +++-
 x86/vmx_tests.c     |  12 +-
 x86/xsave.c         |  31 ++--
 12 files changed, 411 insertions(+), 263 deletions(-)

base-commit: 2eed0bf1096077144cc3a0dd9974689487f9511a

Signature · 1 line
2.36.1.255.ge46751e96f-goog