diff options
| author | Hou Wenlong <houwenlong.hwl@antgroup.com> | 2026-05-16 01:26:33 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-22 00:40:19 +0300 |
| commit | 00b6520669bc7a1d7df1e138a555e9ef8c314233 (patch) | |
| tree | e892d169908f8c322e06aed8eef4e58e3ecd0a0c /tools/perf/scripts/python | |
| parent | 51543660c521a30450bcbf74956f14b591c4a58c (diff) | |
| download | linux-00b6520669bc7a1d7df1e138a555e9ef8c314233.tar.xz | |
KVM: x86: Honor KVM_GUESTDBG_USE_HW_BP when checking for code breakpoints in emulation
When KVM_GUESTDBG_USE_HW_BP is enabled, i.e. userspace is usurping the
guest's hardware debug registers, the guest's effective breakpoints are
controlled by userspace rather than by the guest itself. Honor the
KVM_GUESTDBG_USE_HW_BP behavior when handling code #DBs in the emulator so
that userspace (and the guest) gets consistent behavior for code #DBs
regardless of whether an instruction is executed natively or emulated by
KVM.
To aid in userspace debug, don't treat code breakpoints as inhibited if
KVM_GUESTDBG_USE_HW_BP is enabled as accurately emulating x86 architecture
is obviously a non-goal of guest-debug.
Fixes: 4a1e10d5b5d8 ("KVM: x86: handle hardware breakpoints during emulation")
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
[sean: massage changelog]
Link: https://patch.msgid.link/20260515222638.1949982-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
