[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 10/13] qemu/plugin: Trivial code movement
From: |
Alex Bennée |
Subject: |
[PULL v2 10/13] qemu/plugin: Trivial code movement |
Date: |
Fri, 15 May 2020 15:44:02 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Move the qemu_plugin_event enum declaration earlier.
This will make the next commit easier to review.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Emilio G. Cota <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Message-Id: <address@hidden>
Message-Id: <address@hidden>
diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h
index 11687e8cdc3..e45f950fe36 100644
--- a/include/qemu/plugin.h
+++ b/include/qemu/plugin.h
@@ -13,6 +13,22 @@
#include "qemu/queue.h"
#include "qemu/option.h"
+/*
+ * Events that plugins can subscribe to.
+ */
+enum qemu_plugin_event {
+ QEMU_PLUGIN_EV_VCPU_INIT,
+ QEMU_PLUGIN_EV_VCPU_EXIT,
+ QEMU_PLUGIN_EV_VCPU_TB_TRANS,
+ QEMU_PLUGIN_EV_VCPU_IDLE,
+ QEMU_PLUGIN_EV_VCPU_RESUME,
+ QEMU_PLUGIN_EV_VCPU_SYSCALL,
+ QEMU_PLUGIN_EV_VCPU_SYSCALL_RET,
+ QEMU_PLUGIN_EV_FLUSH,
+ QEMU_PLUGIN_EV_ATEXIT,
+ QEMU_PLUGIN_EV_MAX, /* total number of plugin events we support */
+};
+
/*
* Option parsing/processing.
* Note that we can load an arbitrary number of plugins.
@@ -47,22 +63,6 @@ static inline int qemu_plugin_load_list(QemuPluginList *head)
}
#endif /* !CONFIG_PLUGIN */
-/*
- * Events that plugins can subscribe to.
- */
-enum qemu_plugin_event {
- QEMU_PLUGIN_EV_VCPU_INIT,
- QEMU_PLUGIN_EV_VCPU_EXIT,
- QEMU_PLUGIN_EV_VCPU_TB_TRANS,
- QEMU_PLUGIN_EV_VCPU_IDLE,
- QEMU_PLUGIN_EV_VCPU_RESUME,
- QEMU_PLUGIN_EV_VCPU_SYSCALL,
- QEMU_PLUGIN_EV_VCPU_SYSCALL_RET,
- QEMU_PLUGIN_EV_FLUSH,
- QEMU_PLUGIN_EV_ATEXIT,
- QEMU_PLUGIN_EV_MAX, /* total number of plugin events we support */
-};
-
union qemu_plugin_cb_sig {
qemu_plugin_simple_cb_t simple;
qemu_plugin_udata_cb_t udata;
--
2.20.1
- [PULL v2 01/13] tests/guest-debug: catch hanging guests, (continued)
- [PULL v2 01/13] tests/guest-debug: catch hanging guests, Alex Bennée, 2020/05/15
- [PULL v2 02/13] travis.yml: Improve the --disable-tcg test on s390x, Alex Bennée, 2020/05/15
- [PULL v2 04/13] exec/cpu-all: Use bool for have_guest_base, Alex Bennée, 2020/05/15
- [PULL v2 05/13] accel/tcg: Relax va restrictions on 64-bit guests, Alex Bennée, 2020/05/15
- [PULL v2 09/13] translate-all: include guest address in out_asm output, Alex Bennée, 2020/05/15
- [PULL v2 03/13] linux-user: completely re-write init_guest_space, Alex Bennée, 2020/05/15
- [PULL v2 06/13] accel/tcg: don't disable exec_tb trace events, Alex Bennée, 2020/05/15
- [PULL v2 08/13] disas: add optional note support to cap_disas, Alex Bennée, 2020/05/15
- [PULL v2 07/13] disas: include an optional note for the start of disassembly, Alex Bennée, 2020/05/15
- [PULL v2 11/13] qemu/plugin: Move !CONFIG_PLUGIN stubs altogether, Alex Bennée, 2020/05/15
- [PULL v2 10/13] qemu/plugin: Trivial code movement,
Alex Bennée <=
- [PULL v2 13/13] MAINTAINERS: update the orphaned cpus-common.c file, Alex Bennée, 2020/05/15
- [PULL v2 12/13] qemu/qemu-plugin: Make qemu_plugin_hwaddr_is_io() hwaddr argument const, Alex Bennée, 2020/05/15
- Re: [PULL v2 00/13] testing, tcg and plugin updates, Peter Maydell, 2020/05/15