On 5/11/25 6:13 AM, Julian Ganz wrote:
The plugin API allows registration of callbacks for a variety of VCPU
related events, such as VCPU reset, idle and resume. In addition to
those events, we recently defined discontinuity events, which include
traps.
This change introduces a function to register callbacks for these
events. We define one distinct plugin event type for each type of
discontinuity, granting fine control to plugins in term of which events
they receive.
Signed-off-by: Julian Ganz <neither@nut.email>
---
include/qemu/plugin-event.h | 3 +++
include/qemu/qemu-plugin.h | 16 ++++++++++++++++
plugins/core.c | 15 +++++++++++++++
3 files changed, 34 insertions(+)
Reviewed-by: Pierrick Bouvier <pierrick.bouv...@linaro.org>