aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest
diff options
context:
space:
mode:
authorAlexander Bulekov <alxndr@bu.edu>2020-11-23 13:43:52 -0500
committerThomas Huth <thuth@redhat.com>2020-12-18 12:05:19 +0100
commitcbe945c74c8047a01c9b918fa93955a50824e318 (patch)
tree5022e5e1295e7412b07bf0d016b468ab01d1706e /tests/qtest
parent75ee62ac606bfc9eb59310b9446df3434bf6e8c2 (diff)
downloadqemu-cbe945c74c8047a01c9b918fa93955a50824e318.zip
qemu-cbe945c74c8047a01c9b918fa93955a50824e318.tar.gz
qemu-cbe945c74c8047a01c9b918fa93955a50824e318.tar.bz2
fuzz: Add more i386 configurations for fuzzing
This adds configurations for fuzzing the following devices on oss-fuzz: * vmxnet3 CC: Dmitry Fleytman <dmitry.fleytman@gmail.com> * ne2k * pcnet * rtl8139 CC: Jason Wang <jasowang@redhat.com> * eepro100 CC: Stefan Weil <sw@weilnetz.de> * sdhci CC: Philippe Mathieu-Daudé <f4bug@amsat.org> * ehci * ohci * ac97 * cs4231a * es1370 * sb16 CC: Gerd Hoffmann <kraxel@redhat.com> * megasas CC: Hannes Reinecke <hare@suse.com> * parallel CC: Michael S. Tsirkin <mst@redhat.com> CC: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alexander Bulekov <alxndr@bu.edu> Message-Id: <20201123184352.242907-1-alxndr@bu.edu> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest')
-rw-r--r--tests/qtest/fuzz/generic_fuzz_configs.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/qtest/fuzz/generic_fuzz_configs.h b/tests/qtest/fuzz/generic_fuzz_configs.h
index b4c5fef..fbc9779 100644
--- a/tests/qtest/fuzz/generic_fuzz_configs.h
+++ b/tests/qtest/fuzz/generic_fuzz_configs.h
@@ -114,6 +114,86 @@ const generic_fuzz_config predefined_configs[] = {
.name = "pc-q35",
.args = "-machine q35",
.objects = "*",
+ },{
+ .name = "vmxnet3",
+ .args = "-machine q35 -nodefaults "
+ "-device vmxnet3,netdev=net0 -netdev user,id=net0",
+ .objects = "vmxnet3"
+ },{
+ .name = "ne2k_pci",
+ .args = "-machine q35 -nodefaults "
+ "-device ne2k_pci,netdev=net0 -netdev user,id=net0",
+ .objects = "ne2k*"
+ },{
+ .name = "pcnet",
+ .args = "-machine q35 -nodefaults "
+ "-device pcnet,netdev=net0 -netdev user,id=net0",
+ .objects = "pcnet"
+ },{
+ .name = "rtl8139",
+ .args = "-machine q35 -nodefaults "
+ "-device rtl8139,netdev=net0 -netdev user,id=net0",
+ .objects = "rtl8139"
+ },{
+ .name = "i82550",
+ .args = "-machine q35 -nodefaults "
+ "-device i82550,netdev=net0 -netdev user,id=net0",
+ .objects = "eepro*"
+ },{
+ .name = "sdhci-v3",
+ .args = "-nodefaults -device sdhci-pci,sd-spec-version=3 "
+ "-device sd-card,drive=mydrive "
+ "-drive if=sd,index=0,file=null-co://,format=raw,id=mydrive -nographic",
+ .objects = "sd*"
+ },{
+ .name = "ehci",
+ .args = "-machine q35 -nodefaults "
+ "-device ich9-usb-ehci1,bus=pcie.0,addr=1d.7,"
+ "multifunction=on,id=ich9-ehci-1 "
+ "-device ich9-usb-uhci1,bus=pcie.0,addr=1d.0,"
+ "multifunction=on,masterbus=ich9-ehci-1.0,firstport=0 "
+ "-device ich9-usb-uhci2,bus=pcie.0,addr=1d.1,"
+ "multifunction=on,masterbus=ich9-ehci-1.0,firstport=2 "
+ "-device ich9-usb-uhci3,bus=pcie.0,addr=1d.2,"
+ "multifunction=on,masterbus=ich9-ehci-1.0,firstport=4 "
+ "-drive if=none,id=usbcdrom,media=cdrom "
+ "-device usb-tablet,bus=ich9-ehci-1.0,port=1,usb_version=1 "
+ "-device usb-storage,bus=ich9-ehci-1.0,port=2,drive=usbcdrom",
+ .objects = "*usb* *hci*",
+ },{
+ .name = "ohci",
+ .args = "-machine q35 -nodefaults -device pci-ohci -device usb-kbd",
+ .objects = "*usb* *ohci*",
+ },{
+ .name = "megaraid",
+ .args = "-machine q35 -nodefaults -device megasas -device scsi-cd,drive=null0 "
+ "-blockdev driver=null-co,read-zeroes=on,node-name=null0",
+ .objects = "megasas*",
+ },{
+ .name = "ac97",
+ .args = "-machine q35 -nodefaults "
+ "-device ac97,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
+ .objects = "ac97*",
+ },{
+ .name = "cs4231a",
+ .args = "-machine q35 -nodefaults "
+ "-device cs4231a,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
+ .objects = "cs4231a* i8257*",
+ },{
+ .name = "es1370",
+ .args = "-machine q35 -nodefaults "
+ "-device es1370,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
+ .objects = "es1370*",
+ },{
+ .name = "sb16",
+ .args = "-machine q35 -nodefaults "
+ "-device sb16,audiodev=snd0 -audiodev none,id=snd0 -nodefaults",
+ .objects = "sb16* i8257*",
+ },{
+ .name = "parallel",
+ .args = "-machine q35 -nodefaults "
+ "-parallel file:/dev/null",
+ .objects = "parallel*",
}
};