mbox series

[kvm-unit-tests,0/2] x86: Add split/bus lock smoke test

Message ID 20250221204148.2171418-1-seanjc@google.com (mailing list archive)
Headers show
Series x86: Add split/bus lock smoke test | expand

Message

Sean Christopherson Feb. 21, 2025, 8:41 p.m. UTC
Add a testcase to verify the guest does NOT get hit with an #AC or #DB
when generating a split-lock access.  Bus Lock Detect, a.k.a. BusLockTrap,
enabling on AMD exposed a bug where KVM incorrectly runs the guest with the
host's DEBUGCTL MSR.

Sean Christopherson (2):
  x86: Include libcflat.h in atomic.h for u64 typedef
  x86/debug: Add a split-lock #AC / bus-lock #DB testcase

 lib/x86/atomic.h |  2 ++
 x86/debug.c      | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)


base-commit: f77fb696cfd0e4a5562cdca189be557946bf522f