aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/pvpanic-test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-09 08:53:04 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2020-11-11 03:59:05 -0500
commitb1b0393c3c58c0e96c7c44e2e98baa252d6c6813 (patch)
treeb7bc27bb02ed050f4b09916e5479336ebc13ae42 /tests/qtest/pvpanic-test.c
parenta3a929083b03c839b3c87c461769e605ec79b0a7 (diff)
downloadqemu-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 'tests/qtest/pvpanic-test.c')
-rw-r--r--tests/qtest/pvpanic-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/pvpanic-test.c b/tests/qtest/pvpanic-test.c
index 0657de7..016b32e 100644
--- a/tests/qtest/pvpanic-test.c
+++ b/tests/qtest/pvpanic-test.c
@@ -20,7 +20,7 @@ static void test_panic(void)
qts = qtest_init("-device pvpanic");
val = qtest_inb(qts, 0x505);
- g_assert_cmpuint(val, ==, 1);
+ g_assert_cmpuint(val, ==, 3);
qtest_outb(qts, 0x505, 0x1);