forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include/qemu: Split out plugin-event.h
The usage in hw/core/cpu.h only requires QEMU_PLUGIN_EV_MAX. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230310195252.210956-7-richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230315174331.2959-17-alex.bennee@linaro.org> Reviewed-by: Emilio Cota <cota@braap.org>
- Loading branch information
Showing
3 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2017, Emilio G. Cota <cota@braap.org> | ||
* | ||
* License: GNU GPL, version 2 or later. | ||
* See the COPYING file in the top-level directory. | ||
*/ | ||
#ifndef QEMU_PLUGIN_EVENT_H | ||
#define QEMU_PLUGIN_EVENT_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 */ | ||
}; | ||
|
||
#endif /* QEMU_PLUGIN_EVENT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters