Skip to content

x86: LA57 canonical testcases

Sean Christopherson kvm 1 version Applied

Status from this message: Applied to kvm-x86 next (and now pulled by Paolo), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 2 repliesApplied

Changes in v2 from the cover letter

- Fold into existing la57 test.
- Always skip SYSENTER tests (they fail when run in a VM).
- Lots of cosmetics cleanups (see v1 feedback for details).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6x86: Add _safe() and _fep_safe() variants to segment base load instructionslib/x86/desc.h lib/x86/processor.h+47 -20 replies
2/6x86: Add a few functions for gdt manipulationlib/x86/desc.c lib/x86/desc.h+36 -70 replies
3/6x86: Move struct invpcid_desc descriptor to processor.hlib/x86/processor.h x86/pcid.c+6 -70 replies
4/6x86: Expand LA57 test to 64-bit mode (to prep for canonical testing)x86/Makefile.common x86/Makefile.i386 x86/la57.c +1 more+10 -60 replies
5/6x86: Add testcases for writing (non)canonical LA57 values to MSRs and baseslib/x86/msr.h lib/x86/processor.h x86/la57.c+379 -20 replies
6/6nVMX: add a test for canonical checks of various host state vmcs12 fields.x86/vmx_tests.c+167 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/6] x86: LA57 canonical testcases

v2 of Maxim's series to add testcases for canonical checks of various MSRs, segment bases, and instructions that were found to ignore CR4.LA57 on CPUs that support 5 level paging.

v2:
- Fold into existing la57 test.
- Always skip SYSENTER tests (they fail when run in a VM).
- Lots of cosmetics cleanups (see v1 feedback for details).

v1: https://lore.kernel.org/all/[email protected]

Maxim Levitsky (5):
x86: Add _safe() and _fep_safe() variants to segment base load
instructions
x86: Add a few functions for gdt manipulation
x86: Move struct invpcid_desc descriptor to processor.h
x86: Add testcases for writing (non)canonical LA57 values to MSRs and
bases
nVMX: add a test for canonical checks of various host state vmcs12
fields.

Sean Christopherson (1):
x86: Expand LA57 test to 64-bit mode (to prep for canonical testing)

 lib/x86/desc.c      |  38 ++++-
 lib/x86/desc.h      |   9 +-
 lib/x86/msr.h       |  42 ++++++
 lib/x86/processor.h |  58 +++++++-
 x86/Makefile.common |   3 +-
 x86/Makefile.i386   |   2 +-
 x86/la57.c          | 342 +++++++++++++++++++++++++++++++++++++++++++-
 x86/pcid.c          |   6 -
 x86/unittests.cfg   |   2 +-
 x86/vmx_tests.c     | 167 +++++++++++++++++++++
 10 files changed, 645 insertions(+), 24 deletions(-)

base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f

Signature · 1 line
2.48.1.601.g30ceb7b040-goog