All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 00/10] x86: nVMX: Add VMXON #UD test
@ 2022-06-08 23:52 Sean Christopherson
  2022-06-08 23:52 ` [kvm-unit-tests PATCH 01/10] x86: Use BIT() to define architectural bits Sean Christopherson
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Sean Christopherson @ 2022-06-08 23:52 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: kvm, Sean Christopherson

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
-- 
2.36.1.255.ge46751e96f-goog


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

end of thread, other threads:[~2023-08-22  8:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 23:52 [kvm-unit-tests PATCH 00/10] x86: nVMX: Add VMXON #UD test Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 01/10] x86: Use BIT() to define architectural bits Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 02/10] x86: Replace spaces with tables in processor.h Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 03/10] x86: Use "safe" terminology instead of "checking" Sean Christopherson
2023-08-22  8:09   ` Like Xu
2022-06-08 23:52 ` [kvm-unit-tests PATCH 04/10] x86: Use "safe" helpers to implement unsafe CRs accessors Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 05/10] x86: Provide result of RDMSR from "safe" variant Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 06/10] nVMX: Check the results of VMXON/VMXOFF in feature control test Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 07/10] nVMX: Check result of VMXON in INIT/SIPI tests Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 08/10] nVMX: Wrap VMXON in ASM_TRY(), a.k.a. in exception fixup Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 09/10] nVMX: Simplify test_vmxon() by returning directly on failure Sean Christopherson
2022-06-08 23:52 ` [kvm-unit-tests PATCH 10/10] nVMX: Add subtest to verify VMXON succeeds/#UDs on good/bad CR0/CR4 Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.