fuzz: Add PCI features to the generic fuzzer
commit05efbf2497f93415a50347bbf53983689f999282
authorAlexander Bulekov <alxndr@bu.edu>
Fri, 23 Oct 2020 15:07:32 +0000 (23 11:07 -0400)
committerThomas Huth <thuth@redhat.com>
Sat, 24 Oct 2020 05:43:48 +0000 (24 07:43 +0200)
treeaae79037f09654154a739d66ad03647de0223cc5
parentda9bf5319838c193f92a3444bd3258b32c606980
fuzz: Add PCI features to the generic fuzzer

This patch compares TYPE_PCI_DEVICE objects against the user-provided
matching pattern. If there is a match, we use some hacks and leverage
QOS to map each possible BAR for that device. Now fuzzed inputs might be
converted to pci_read/write commands which target specific. This means
that we can fuzz a particular device's PCI configuration space,

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20201023150746.107063-4-alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/fuzz/generic_fuzz.c