Re: [PATCH v3 00/10] KVM: x86: Improve #DB handling in the emulator
From: Sean Christopherson
Date: Wed May 27 2026 - 14:14:05 EST
On Fri, 15 May 2026 15:26:28 -0700, Sean Christopherson wrote:
> Hou's series of fixes and cleanups related to #DB handling in the emulator.
>
> v3:
> - Fix the GUEST_PENDING_DBG_EXCEPTIONS.BS consistency check issue by
> stuffing the VMCS during injection, not during emulation.
> - Drop a prep that is no longer necessary.
> - Massage a few shortlogs/changelogs.
> - Fix the selftest that takes an IRQ in the STI-shadow after IRET.
> - Fix an intermediate bug where kvm_queue_exception_e() was being used
> instead of kvm_queue_exception_p().
>
> [...]
Applied to kvm-x86 misc, thanks!
[01/10] KVM: VMX: Refresh GUEST_PENDING_DBG_EXCEPTIONS.BS on all injected #DBs
https://github.com/kvm-x86/linux/commit/c5bad4fa2d5d
[02/10] KVM: x86: Capture "struct x86_exception" in inject_emulated_exception()
https://github.com/kvm-x86/linux/commit/17afe9b750f2
[03/10] KVM: x86: Set guest DR6 by kvm_queue_exception_p() in instruction emulation
https://github.com/kvm-x86/linux/commit/dfc1c4687e9c
[04/10] KVM: x86: Honor KVM_GUESTDBG_USE_HW_BP when emulating MOV DR (in emulator)
https://github.com/kvm-x86/linux/commit/51543660c521
[05/10] KVM: x86: Honor KVM_GUESTDBG_USE_HW_BP when checking for code breakpoints in emulation
https://github.com/kvm-x86/linux/commit/00b6520669bc
[06/10] KVM: x86: Move KVM_GUESTDBG_SINGLESTEP handling into kvm_inject_emulated_db()
https://github.com/kvm-x86/linux/commit/6d79302b0834
[07/10] KVM: x86: Drop kvm_vcpu_do_singlestep() now that it's been gutted
https://github.com/kvm-x86/linux/commit/a1e7aeb1be11
[08/10] KVM: selftests: Add all (known) EFLAGS bit definitions
https://github.com/kvm-x86/linux/commit/35c08038cbdc
[09/10] KVM: selftests: Verify guest debug DR7.GD checking during instruction emulation
https://github.com/kvm-x86/linux/commit/063a22451fd9
[10/10] KVM: selftests: Verify VMX's GUEST_PENDING_DBG_EXCEPTIONS.BS Consistency Check
https://github.com/kvm-x86/linux/commit/b8284279b732
--
https://github.com/kvm-x86/linux/tree/next