Skip to content

nVMX: Fix VMREAD/VMWRITE #PF tests

Sean Christopherson kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Handle all known exceptions with ASM_TRY()lib/x86/desc.c+5 -50 replies
2/3nVMX: Use ASM_TRY() for VMREAD and VMWRITE page fault testsx86/vmx.c+49 -860 replies
3/3nVMX: Dedup the bulk of the VMREAD/VMWRITE #PF testsx86/vmx.c+43 -760 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 0/3] nVMX: Fix VMREAD/VMWRITE #PF tests

Thanks to a recent gcc update, the VMREAD/VMWRITE #PF tests are now failing due to gcc-12 optimizing away a non-volatile flag that it thinks can't possibly change. Avoid the volatile shenanigans entirely by switching to ASM_TRY(), and dedup the two tests.

Sean Christopherson (3):
x86: Handle all known exceptions with ASM_TRY()
nVMX: Use ASM_TRY() for VMREAD and VMWRITE page fault tests
nVMX: Dedup the bulk of the VMREAD/VMWRITE #PF tests

 lib/x86/desc.c |  10 ++--
 x86/vmx.c      | 158 ++++++++++++++-----------------------------------
 2 files changed, 49 insertions(+), 119 deletions(-)

base-commit: d8a4f9e5e8d69d4ef257b40d6cd666bd2f63494e

Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog