diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-09 08:53:04 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-11 03:59:05 -0500 |
commit | b1b0393c3c58c0e96c7c44e2e98baa252d6c6813 (patch) | |
tree | b7bc27bb02ed050f4b09916e5479336ebc13ae42 /hw/core/machine.c | |
parent | a3a929083b03c839b3c87c461769e605ec79b0a7 (diff) | |
download | qemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.zip qemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.tar.gz qemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.tar.bz2 |
pvpanic: Advertise the PVPANIC_CRASHLOADED event support
Advertise both types of events as supported when the guest OS
queries the pvpanic device. Currently only PVPANIC_PANICKED is
exposed; PVPANIC_CRASHLOADED must also be advertised, but only on
new machine types.
Fixes: 7dc58deea79a ("pvpanic: implement crashloaded event handling")
Reported-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
-rw-r--r-- | hw/core/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index 98b87f7..d040804 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -35,6 +35,7 @@ GlobalProperty hw_compat_5_1[] = { { "virtio-blk-device", "num-queues", "1"}, { "virtio-scsi-device", "num_queues", "1"}, { "nvme", "use-intel-id", "on"}, + { "pvpanic", "events", "1"}, /* PVPANIC_PANICKED */ }; const size_t hw_compat_5_1_len = G_N_ELEMENTS(hw_compat_5_1); |