summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-gen.py
diff options
context:
space:
mode:
authorAlexander Bulekov2020-10-23 17:07:34 +0200
committerThomas Huth2020-10-26 09:53:53 +0100
commite7d3222e2e07e2a1a0aac979ef1fa5e8ef59f02c (patch)
tree6a7bcc1a5835fd09fec53a5de1b14c4638e54eb7 /scripts/qapi-gen.py
parentfuzz: Add DMA support to the generic-fuzzer (diff)
downloadqemu-e7d3222e2e07e2a1a0aac979ef1fa5e8ef59f02c.tar.gz
qemu-e7d3222e2e07e2a1a0aac979ef1fa5e8ef59f02c.tar.xz
qemu-e7d3222e2e07e2a1a0aac979ef1fa5e8ef59f02c.zip
fuzz: Declare DMA Read callback function
This patch declares the fuzz_dma_read_cb function and uses the preprocessor and linker(weak symbols) to handle these cases: When we build softmmu/all with --enable-fuzzing, there should be no strong symbol defined for fuzz_dma_read_cb, and we link against a weak stub function. When we build softmmu/fuzz with --enable-fuzzing, we link against the strong symbol in generic_fuzz.c When we build softmmu/all without --enable-fuzzing, fuzz_dma_read_cb is an empty, inlined function. As long as we don't call any other functions when building the arguments, there should be no overhead. Signed-off-by: Alexander Bulekov <alxndr@bu.edu> Reviewed-by: Darren Kenny <darren.kenny@oracle.com> Message-Id: <20201023150746.107063-6-alxndr@bu.edu> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/qapi-gen.py')
0 files changed, 0 insertions, 0 deletions