Skip to content

KVM: x86: Accelerate reading CR3 for guest debug

Yosry Ahmed kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Add CR3 to guest debug infoarch/x86/include/uapi/asm/kvm.h arch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c +2 more+9 -04 replies
2/3KVM: selftests: Use TEST_ASSERT_EQ() in debug_regstools/testing/selftests/kvm/x86/debug_regs.c+24 -420 replies
3/3KVM: selftests: Verify CR3 in debug_regstools/testing/selftests/kvm/x86/debug_regs.c+15 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: x86: Accelerate reading CR3 for guest debug

Some guest debuggers use the value of CR3 to attribute a debug event to a guest process. Providing CR3 in the debug info makes this significantly faster than doing KVM_GET_SREGS every time, so add support for that. Also extend the debug_regs selftest to cover this.

Yosry Ahmed (3):
KVM: x86: Add CR3 to guest debug info
KVM: selftests: Use TEST_ASSERT_EQ() in debug_regs
KVM: selftests: Verify CR3 in debug_regs

 arch/x86/include/uapi/asm/kvm.h              |  1 +
 arch/x86/kvm/svm/svm.c                       |  2 +
 arch/x86/kvm/vmx/vmx.c                       |  2 +
 arch/x86/kvm/x86.c                           |  3 +
 include/uapi/linux/kvm.h                     |  1 +
 tools/testing/selftests/kvm/x86/debug_regs.c | 82 ++++++++++----------
 6 files changed, 48 insertions(+), 43 deletions(-)

base-commit: d209f1ea367750edfcba7db8d199a856e4186511

Signature · 1 line
2.52.0.rc2.455.g230fcf2819-goog