Skip to content

x86: Add split/bus lock smoke test

Sean Christopherson 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 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2x86: Include libcflat.h in atomic.h for u64 typedeflib/x86/atomic.h+2 -00 replies
2/2x86/debug: Add a split-lock #AC / bus-lock #DB testcasex86/debug.c+45 -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/2] x86: Add split/bus lock smoke test

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

Signature · 1 line
2.48.1.601.g30ceb7b040-goog