]> git.ipfire.org Git - thirdparty/qemu.git/commit
fuzz: move some DMA hooks
authorAlexander Bulekov <alxndr@bu.edu>
Mon, 15 Mar 2021 14:05:12 +0000 (10:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Mar 2021 18:30:30 +0000 (14:30 -0400)
commit7cac7fea708a1ca46f16c4e816d88b40da755de1
treee4ab1fa4ce4e02f73491c4b0c1757138277e8918
parent25d309fb0d6c07e49c3d9250cdbacc16941d988e
fuzz: move some DMA hooks

For the sparse-mem device, we want the fuzzer to populate entire DMA
reads from sparse-mem, rather than hooking into the individual MMIO
memory_region_dispatch_read operations. Otherwise, the fuzzer will treat
each sequential read separately (and populate it with a separate
pattern). Work around this by rearranging some DMA hooks. Since the
fuzzer has it's own logic to skip accidentally writing to MMIO regions,
we can call the DMA cb, outside the flatview_translate loop.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/memory.c
softmmu/physmem.c