All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu plugin exposure of register addresses
@ 2020-04-02 16:52 Robert Henry
  2020-04-03 19:07 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Henry @ 2020-04-02 16:52 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

There is now a qemu plugin interface function qemu_plugin_register_vcpu_mem_cb which registers a plugin-side callback. This callback is later invoked at the start of each emulated instruction, and it receives information about memory addresses and read/write indicators.

I'm wondering how hard it is to add a similar callback to expose register addresses and read/write indicators.  For example, executing `add r3, r1, $1` would generate two callbacks, one {write r3} and the other {read r1}. I'd like this for all kinds of registers such as simd regs, and, gulp, flags registers.

With this information ISA simulators could examine the data flow graph and register dependencies.

I'm not asking for register contents; we don't get memory contents either!

I gather there is some concern about exposing too much functionality to the plugin API, as a plugin might then be used to subvert some aspects of the GPL.  I don't understand the details of this concern, nor know where the "line in the sand" is.

Robert Henry

[-- Attachment #2: Type: text/html, Size: 2529 bytes --]

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

end of thread, other threads:[~2020-04-03 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02 16:52 qemu plugin exposure of register addresses Robert Henry
2020-04-03 19:07 ` Alex Bennée

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.