]> git.ipfire.org Git - thirdparty/qemu.git/commit
fuzz: map all BARs and enable PCI devices
authorAlexander Bulekov <alxndr@bu.edu>
Mon, 21 Dec 2020 18:12:03 +0000 (13:12 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 11 Jan 2021 13:59:21 +0000 (14:59 +0100)
commitb677001d70529df271a5d9314440bb201da40acf
tree8218e587659d3f163767d4b260d3256328f70163
parent333168efe5c8f6b3eaa4cd2f0b715431234f85eb
fuzz: map all BARs and enable PCI devices

Prior to this patch, the fuzzer found inputs to map PCI device BARs and
enable the device. While it is nice that the fuzzer can do this, it
added significant overhead, since the fuzzer needs to map all the
BARs (regenerating the memory topology), at the start of each input.
With this patch, we do this once, before fuzzing, mitigating some of
this overhead.

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