diff options
| author | Hou Wenlong <houwenlong.hwl@antgroup.com> | 2026-05-16 01:26:31 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-22 00:31:01 +0300 |
| commit | dfc1c4687e9cb33a53536a0cb7fc4011c419dd85 (patch) | |
| tree | a2812842c5a38d5afc3c56e1685db8119d59bf46 /tools/perf/scripts/python | |
| parent | 17afe9b750f2aba44ea398edda8c0740e438b7cf (diff) | |
| download | linux-dfc1c4687e9cb33a53536a0cb7fc4011c419dd85.tar.xz | |
KVM: x86: Set guest DR6 by kvm_queue_exception_p() in instruction emulation
Record DR6 in emulate_db() and use kvm_queue_exception_p() to set DR6
instead of directly using kvm_set_dr6() in emulation, i.e. rely on the
standard exception path to set DR6 via kvm_deliver_exception_payload().
This keeps the handling of DR6 during #DB injection consistent with other
code paths.
No functional change intended.
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
[sean: fix e vs. p goof, add kvm_inject_emulated_db() right away]
Reviewed-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260515222638.1949982-4-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
