Skip to content

Collection of tests for canonical checks on LA57 enabled CPUs

Maxim Levitsky 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. v1 Latest5 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5x86: add _safe and _fep_safe variants to segment base load instructionslib/x86/desc.h lib/x86/processor.h+47 -20 replies
2/5x86: add a few functions for gdt manipulationlib/x86/desc.c lib/x86/desc.h+37 -70 replies
3/5x86: move struct invpcid_desc descriptor to processor.hlib/x86/processor.h x86/pcid.c+6 -70 replies
4/5Add a test for writing canonical values to various msrs and fieldslib/x86/msr.h lib/x86/processor.h x86/Makefile.x86_64 +1 more+394 -11 reply
5/5nVMX: add a test for canonical checks of various host state vmcs12 fields.x86/vmx_tests.c+183 -01 reply

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/5] Collection of tests for canonical checks on LA57 enabled CPUs

This is a set of tests that checks KVM and CPU behaviour in regard to canonical checks of various msrs, segment bases, instructions that were found to ignore CR4.LA57 on CPUs that support 5 level paging.

Best regards,
Maxim Levitsky

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 Add a test for writing canonical values to various msrs and fields
nVMX: add a test for canonical checks of various host state vmcs12
fields.

 lib/x86/desc.c      |  39 ++++-
 lib/x86/desc.h      |   9 +-
 lib/x86/msr.h       |  42 ++++++
 lib/x86/processor.h |  58 +++++++-
 x86/Makefile.x86_64 |   1 +
 x86/canonical_57.c  | 346 ++++++++++++++++++++++++++++++++++++++++++++
 x86/pcid.c          |   6 -
 x86/vmx_tests.c     | 183 +++++++++++++++++++++++
 8 files changed, 667 insertions(+), 17 deletions(-)
 create mode 100644 x86/canonical_57.c
Signature · 1 line
2.26.3