Skip to contentSkip to conversation

x86: Fixes, cleanups, and new testcases

GIT PULL Sean Christopherson 1 participant 1 message Apr 5, 2023 KVM

lore
Share & tools
lore

Sean Christopherson

author reviewer
#0 lore raw

Please pull a smattering of changes, most of which have been floating around for quite some time.

Thanks!

The following changes since commit 723a5703848d91f7aea8bc01d12fe8b1a6fc2391:

nVMX: Add forced emulation variant of #PF access test (2023-04-04 13:10:21 -0400)

are available in the Git repository at:

https://github.com/kvm-x86/kvm-unit-tests.git tags/kvm-x86-2023.04.05

for you to fetch changes up to 408e9eaae1c628b4895c213ee1eeb9ab3f42effb:

x86/msr: Add testcases for MSR_IA32_FLUSH_CMD and its L1D_FLUSH command (2023-04-05 14:34:06 -0700)

----------------------------------------------------------------
x86 fixes, cleanups, and new testcases:

- Fix goofs in the configuration related to the new FEP access testcases
- Add a FEP test for an CPL>DPL non-conforming segment load
- Fix issues with the RDPID testcase in the "tsc" test
- Fix various assembler warnings
- Add x2APIC testcases to the "msr" test
- Add PRED_CMD and FLUSH_CMD testscases to the "msr" test

----------------------------------------------------------------
David Matlack (2):
x86: Run the tsc test with -cpu max
x86: Mark RDPID asm volatile to avoid dropping instructions

Michal Luczaj (1):
x86: Test CPL=3 DS/ES/FS/GS RPL=DPL=0 segment descriptor load

Sean Christopherson (8):
x86: Set forced emulation access timeouts to 240
x86: Exclude forced emulation #PF access test from base "vmx" test x86/msr: Skip built-in testcases if user provides custom MSR+value to test x86/apic: Refactor x2APIC reg helper to provide exact semantics x86/msr: Add testcases for x2APIC MSRs
x86: Add define for MSR_IA32_PRED_CMD's PRED_CMD_IBPB (bit 0) x86/msr: Add testcases for MSR_IA32_PRED_CMD and its IBPB command x86/msr: Add testcases for MSR_IA32_FLUSH_CMD and its L1D_FLUSH command

Thomas Huth (2):
x86/syscall: Add suffix to "sysret" to silence an assembler warning x86/flat.lds: Silence warnings about empty loadable segments

 lib/x86/apic.h      |  59 +++++++++---
 lib/x86/msr.h       |   4 +
 lib/x86/processor.h |   1 +
 x86/emulator64.c    |  16 ++++
 x86/flat.lds        |  14 ++-
 x86/msr.c           | 267 +++++++++++++++++++++++++++++++++++++---------------
 x86/syscall.c       |   2 +-
 x86/tsc.c           |   2 +-
 x86/unittests.cfg   |   6 +-
 x86/vmexit.c        |   2 +-
 x86/vmx_tests.c     |   6 +-
 11 files changed, 279 insertions(+), 100 deletions(-)