mbox series

[kvm-unit-tests,0/5] Collection of tests for canonical checks on LA57 enabled CPUs

Message ID 20240907005440.500075-1-mlevitsk@redhat.com (mailing list archive)
Headers show
Series Collection of tests for canonical checks on LA57 enabled CPUs | expand

Message

Maxim Levitsky Sept. 7, 2024, 12:54 a.m. UTC
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