user: Prefer fast cpu_env() over slower CPU QOM cast macro
[qemu/ar7.git] / include / qemu / plugin-event.h
blob7056d8427b7ea1f881977828040058f641d98827
1 /*
2 * Copyright (C) 2017, Emilio G. Cota <cota@braap.org>
4 * License: GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
6 */
7 #ifndef QEMU_PLUGIN_EVENT_H
8 #define QEMU_PLUGIN_EVENT_H
11 * Events that plugins can subscribe to.
13 enum qemu_plugin_event {
14 QEMU_PLUGIN_EV_VCPU_INIT,
15 QEMU_PLUGIN_EV_VCPU_EXIT,
16 QEMU_PLUGIN_EV_VCPU_TB_TRANS,
17 QEMU_PLUGIN_EV_VCPU_IDLE,
18 QEMU_PLUGIN_EV_VCPU_RESUME,
19 QEMU_PLUGIN_EV_VCPU_SYSCALL,
20 QEMU_PLUGIN_EV_VCPU_SYSCALL_RET,
21 QEMU_PLUGIN_EV_FLUSH,
22 QEMU_PLUGIN_EV_ATEXIT,
23 QEMU_PLUGIN_EV_MAX, /* total number of plugin events we support */
26 #endif /* QEMU_PLUGIN_EVENT_H */