Skip to contentSkip to conversation

QUESTION: INT1 instruction for breakpoints

DISCUSSION [email protected] 2 participants 2 messages Feb 28, 2023 – Mar 6, 2023 KVM

lore
Share & tools
lore
#0 lore raw

Is it possible to use the INT1 (instead of INT3) instruction for breakpoints under KVM? It does not seem that this instruction causes a KVM_EXIT_DEBUG (or any other exit) and it is silently skipped instead.

If it is possible, how should I configure the KVM API to receive such exits?

Bill

#1 lore raw
Quoted 5 lines · On Tue, Feb 28, 2023, [email protected] wrote:

Is it possible to use the INT1 (instead of INT3) instruction for breakpoints under KVM? It does not seem that this instruction causes a KVM_EXIT_DEBUG (or any other exit) and it is silently skipped instead.

If it is possible, how should I configure the KVM API to receive such exits?

#DBs from INT1, a.k.a. ICEBP, should be forwarded to userspace if KVM_GUESTDBG_USE_HW_BP is set.