OSDN Git Service

fuzz: run the main-loop in fork-server process
authorAlexander Bulekov <alxndr@bu.edu>
Tue, 12 May 2020 03:01:33 +0000 (23:01 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 5 Jun 2020 08:54:48 +0000 (09:54 +0100)
commitdfd5ddb5680511a2aa5576d8ed01ff214cc0fc03
tree46aa8adb235b8bfeb47819482130067e78beed34
parent3b113229c5d5477d34f54fce0a3e8781090c93b6
fuzz: run the main-loop in fork-server process

Without this, the time since the last main-loop keeps increasing, as the
fuzzer runs. The forked children need to handle all the "past-due"
timers, slowing them down, over time. With this change, the
parent/fork-server process runs the main-loop, while waiting on the
child, ensuring that the timer events do not pile up, over time.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-id: 20200512030133.29896-5-alxndr@bu.edu
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/qtest/fuzz/i440fx_fuzz.c
tests/qtest/fuzz/virtio_net_fuzz.c
tests/qtest/fuzz/virtio_scsi_fuzz.c