diff options
author | Alexander Bulekov | 2020-11-02 17:33:36 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-11-03 15:42:53 +0100 |
commit | fd250172842b3bbd4213242eb83bd5fa989f7381 (patch) | |
tree | da4aa235a0ae363afb404ee7b64fec9c55607c83 | |
parent | hw/isa/lpc_ich9: Ignore reserved/invalid SCI IRQ (diff) | |
download | qemu-fd250172842b3bbd4213242eb83bd5fa989f7381.tar.gz qemu-fd250172842b3bbd4213242eb83bd5fa989f7381.tar.xz qemu-fd250172842b3bbd4213242eb83bd5fa989f7381.zip |
qtest: add a reproducer for LP#1878642
https://bugs.launchpad.net/qemu/+bug/1878642
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20201102163336.115444-1-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | tests/qtest/fuzz-test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/qtest/fuzz-test.c b/tests/qtest/fuzz-test.c index 2f38bb1ec2..9cb4c42bde 100644 --- a/tests/qtest/fuzz-test.c +++ b/tests/qtest/fuzz-test.c @@ -34,6 +34,19 @@ static void test_lp1878263_megasas_zero_iov_cnt(void) qtest_quit(s); } +static void test_lp1878642_pci_bus_get_irq_level_assert(void) +{ + QTestState *s; + + s = qtest_init("-M pc-q35-5.0 " + "-nographic -monitor none -serial none " + "-d guest_errors -trace pci*"); + + qtest_outl(s, 0xcf8, 0x8400f841); + qtest_outl(s, 0xcfc, 0xebed205d); + qtest_outl(s, 0x5d02, 0xebed205d); +} + int main(int argc, char **argv) { const char *arch = qtest_get_arch(); @@ -43,6 +56,8 @@ int main(int argc, char **argv) if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { qtest_add_func("fuzz/test_lp1878263_megasas_zero_iov_cnt", test_lp1878263_megasas_zero_iov_cnt); + qtest_add_func("fuzz/test_lp1878642_pci_bus_get_irq_level_assert", + test_lp1878642_pci_bus_get_irq_level_assert); } return g_test_run(); |