master
h 30 lines 821 Bytes
Raw
1 /*
2 * Copyright (C) 2017, Emilio G. Cota <cota@braap.org>
3 *
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
9
10 /*
11 * Events that plugins can subscribe to.
12 */
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_VCPU_INTERRUPT,
24 QEMU_PLUGIN_EV_VCPU_EXCEPTION,
25 QEMU_PLUGIN_EV_VCPU_HOSTCALL,
26 QEMU_PLUGIN_EV_VCPU_SYSCALL_FILTER,
27 QEMU_PLUGIN_EV_MAX, /* total number of plugin events we support */
28 };
29
30 #endif /* QEMU_PLUGIN_EVENT_H */