2 * Generic Virtual-Device Fuzzing Target Configs
4 * Copyright Red Hat Inc., 2020
7 * Alexander Bulekov <alxndr@bu.edu>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef GENERIC_FUZZ_CONFIGS_H
14 #define GENERIC_FUZZ_CONFIGS_H
16 #include "qemu/osdep.h"
18 typedef struct generic_fuzz_config
{
19 const char *name
, *args
, *objects
;
20 } generic_fuzz_config
;
22 const generic_fuzz_config predefined_configs
[] = {
24 .name
= "virtio-net-pci-slirp",
25 .args
= "-M q35 -nodefaults "
26 "-device virtio-net,netdev=net0 -netdev user,id=net0",
30 .args
= "-machine q35 -device virtio-blk,drive=disk0 "
31 "-drive file=null-co://,id=disk0,if=none,format=raw",
34 .name
= "virtio-scsi",
35 .args
= "-machine q35 -device virtio-scsi,num_queues=8 "
36 "-device scsi-hd,drive=disk0 "
37 "-drive file=null-co://,id=disk0,if=none,format=raw",
38 .objects
= "scsi* virtio*",
41 .args
= "-machine q35 -nodefaults -device virtio-gpu",
45 .args
= "-machine q35 -nodefaults -device virtio-vga",
49 .args
= "-machine q35 -nodefaults -device virtio-rng",
52 .name
= "virtio-balloon",
53 .args
= "-machine q35 -nodefaults -device virtio-balloon",
56 .name
= "virtio-serial",
57 .args
= "-machine q35 -nodefaults -device virtio-serial",
60 .name
= "virtio-mouse",
61 .args
= "-machine q35 -nodefaults -device virtio-mouse",
65 .args
= "-M q35 -nodefaults "
66 "-device e1000,netdev=net0 -netdev user,id=net0",
70 .args
= "-M q35 -nodefaults "
71 "-device e1000e,netdev=net0 -netdev user,id=net0",
75 .args
= "-machine q35 -nodefaults -device cirrus-vga",
78 .name
= "bochs-display",
79 .args
= "-machine q35 -nodefaults -device bochs-display",
83 .args
= "-machine q35 -nodefaults -device intel-hda,id=hda0 "
84 "-device hda-output,bus=hda0.0 -device hda-micro,bus=hda0.0 "
85 "-device hda-duplex,bus=hda0.0",
86 .objects
= "intel-hda",
89 .args
= "-machine q35 -nodefaults "
90 "-drive file=null-co://,if=none,format=raw,id=disk0 "
91 "-device ide-hd,drive=disk0",
95 .args
= "-machine pc -nodefaults -device floppy,id=floppy0 "
96 "-drive id=disk0,file=null-co://,file.read-zeroes=on,if=none "
97 "-device floppy,drive=disk0,drive-type=288",
98 .objects
= "fd* floppy*",
101 .args
= "-machine q35 -nodefaults "
102 "-drive file=null-co://,if=none,format=raw,id=disk0 "
103 "-device qemu-xhci,id=xhci -device usb-tablet,bus=xhci.0 "
104 "-device usb-bot -device usb-storage,drive=disk0 "
105 "-chardev null,id=cd0 -chardev null,id=cd1 "
106 "-device usb-braille,chardev=cd0 -device usb-ccid -device usb-ccid "
107 "-device usb-kbd -device usb-mouse -device usb-serial,chardev=cd1 "
108 "-device usb-tablet -device usb-wacom-tablet -device usb-audio",
109 .objects
= "*usb* *uhci* *xhci*",
112 .args
= "-machine pc",
116 .args
= "-machine q35",