Skip to content

x86: Add testcases for x2APIC MSRs

Sean Christopherson kvm 1 version Applied

Status from this message: Applied to kvm-x86 next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/msr: Skip built-in testcases if user provides custom MSR+value to testx86/msr.c+96 -740 replies
2/3x86/apic: Refactor x2APIC reg helper to provide exact semanticslib/x86/apic.h x86/vmx_tests.c+48 -170 replies
3/3x86/msr: Add testcases for x2APIC MSRsx86/msr.c+59 -00 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] x86: Add testcases for x2APIC MSRs

Add tests to verify that RDMSR and WRMSR to x2APIC MSRs behave according to Intel's architecture, e.g. that writes to read-only MSRs and reads to write-only MSRs #GP, accesses to non-existent MSRs #GP, etc...

Many of the testcases fail without the associated KVM fixes:
https://lore.kernel.org/all/[email protected]

Sean Christopherson (3):
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

 lib/x86/apic.h  |  59 ++++++++++---
 x86/msr.c       | 229 ++++++++++++++++++++++++++++++++----------------
 x86/vmx_tests.c |   6 +-
 3 files changed, 203 insertions(+), 91 deletions(-)

base-commit: e11a0e2f881d7bc038f44d8d4f99b2d55a01bc4e

Signature · 1 line
2.39.0.314.g84b9a713c41-goog