fuzz: Add DMA support to the generic-fuzzer
authorAlexander Bulekov <alxndr@bu.edu>
Fri, 23 Oct 2020 15:07:33 +0000 (11:07 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 26 Oct 2020 08:53:34 +0000 (09:53 +0100)
commit20f5a3029386363357e6fa0c2e82b35ac4914d6a
treed2f468dc86ffeb72ed906a0a72bdcd05f234385e
parent05efbf2497f93415a50347bbf53983689f999282
fuzz: Add DMA support to the generic-fuzzer

When a virtual-device tries to access some buffer in memory over DMA, we
add call-backs into the fuzzer(next commit). The fuzzer checks verifies
that the DMA request maps to a physical RAM address and fills the memory
with fuzzer-provided data. The patterns that we use to fill this memory
are specified using add_dma_pattern and clear_dma_patterns operations.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-Id: <20201023150746.107063-5-alxndr@bu.edu>
[thuth: Reformatted one comment according to the QEMU coding style]
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/exec/memory.h
tests/qtest/fuzz/generic_fuzz.c