summaryrefslogtreecommitdiffstats
path: root/hw/core
diff options
context:
space:
mode:
authorPaolo Bonzini2020-11-09 14:53:04 +0100
committerPaolo Bonzini2020-11-11 09:59:05 +0100
commitb1b0393c3c58c0e96c7c44e2e98baa252d6c6813 (patch)
treeb7bc27bb02ed050f4b09916e5479336ebc13ae42 /hw/core
parentphysmem: improve ram size error messages (diff)
downloadqemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.tar.gz
qemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.tar.xz
qemu-b1b0393c3c58c0e96c7c44e2e98baa252d6c6813.zip
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')
-rw-r--r--hw/core/machine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 98b87f76cb..d0408049b5 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);