Skip to content

Allow TCG plugins to read registers

Goal

Access particular register values from the TCG plugin

Technical details

Currently there is QEMU_PLUGIN_CB_R_REGS enum value but it's never used anywhere. Adding a hook that has the access to register values is valuable in many different scenarios.

Additional information

  • include/qemu/plugin.h
  • include/qemu/qemu-plugin.h

PANDA implemented this already but it is not a very clean solution:

I personally think the flag for the TB translation and execution callbacks makes more sense

Edited by Anton Kochkov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information