kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* QUESTION: INT1 instruction for breakpoints
@ 2023-02-28 11:17 billz
  2023-03-06 21:03 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: billz @ 2023-02-28 11:17 UTC (permalink / raw)
  To: kvm

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: QUESTION: INT1 instruction for breakpoints
  2023-02-28 11:17 QUESTION: INT1 instruction for breakpoints billz
@ 2023-03-06 21:03 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2023-03-06 21:03 UTC (permalink / raw)
  To: billz; +Cc: kvm

On Tue, Feb 28, 2023, billz@fastmail.fm 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-06 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-28 11:17 QUESTION: INT1 instruction for breakpoints billz
2023-03-06 21:03 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).