All of lore.kernel.org
 help / color / mirror / Atom feed
* Detecting Faulting Instructions From Plugins
@ 2021-01-30  3:23 Aaron Lindsay
  2021-01-30 18:55 ` Aaron Lindsay
  2021-02-04 21:31 ` Aaron Lindsay
  0 siblings, 2 replies; 12+ messages in thread
From: Aaron Lindsay @ 2021-01-30  3:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, cota, Alex Bennée

Hello,

I appear to be seeing that if I register a callback for an instruction
via `qemu_plugin_register_vcpu_insn_exec_cb` I receive a callback even
if the instruction faults. For example, if an instruction attempts to
load memory from a page which isn't currently mapped by the OS, I
receive two calls for that instruction - one before the page fault, and
one afterwards when the load succeeds.

Two questions:
1. Is this considered a bug or a "feature"?
2.a. If a bug, is there a good way to detect this from inside the
	 tcg/plugin infrastructure and avoid calling the callback for the
	 faulting execution of the instruction?
2.b. If a "feature", is there a good way to detect this from my plugin?

Thanks!

-Aaron


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

end of thread, other threads:[~2021-02-11 19:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-30  3:23 Detecting Faulting Instructions From Plugins Aaron Lindsay
2021-01-30 18:55 ` Aaron Lindsay
2021-02-01 12:07   ` Alex Bennée
2021-02-04 21:31 ` Aaron Lindsay
2021-02-05 11:19   ` Alex Bennée
2021-02-05 14:26     ` Aaron Lindsay via
2021-02-05 15:03       ` Alex Bennée
2021-02-05 15:33         ` Aaron Lindsay via
2021-02-05 15:42         ` Aaron Lindsay via
2021-02-05 16:41           ` Alex Bennée
2021-02-11 17:27           ` Alex Bennée
2021-02-11 18:35             ` Aaron Lindsay via

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.