mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/misc/pvpanic: centralize definition of supported events
The different components of pvpanic duplicate the list of supported events. Move it to the shared header file to minimize changes when new events are added. MST: tweak: keep header included in pvpanic.c to avoid header dependency, rebase. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de> Message-Id: <20240527-pvpanic-shutdown-v8-3-5a28ec02558b@t-8ch.de> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c5614ee3f2
commit
9b13640da3
4 changed files with 7 additions and 4 deletions
|
@ -18,6 +18,10 @@
|
|||
#include "exec/memory.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#include "standard-headers/misc/pvpanic.h"
|
||||
|
||||
#define PVPANIC_EVENTS (PVPANIC_PANICKED | PVPANIC_CRASH_LOADED)
|
||||
|
||||
#define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
|
||||
#define TYPE_PVPANIC_PCI_DEVICE "pvpanic-pci"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue