module: check module wasn't already initialized
commit46a07579ebb081493618bfa00ef8e241cd0dcc4f
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 20 Feb 2020 04:10:59 +0000 (19 23:10 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 22 Feb 2020 08:26:47 +0000 (22 08:26 +0000)
tree4463bf3d28a2698a05a66083f033463edfb24d9d
parent7b73386222626608f843ca4773426dce4ebcc73a
module: check module wasn't already initialized

The virtual-device fuzzer must initialize QOM, prior to running
vl:qemu_init, so that it can use the qos_graph to identify the arguments
required to initialize a guest for libqos-assisted fuzzing. This change
prevents errors when vl:qemu_init tries to (re)initialize the previously
initialized QOM module.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200220041118.23264-4-alxndr@bu.edu
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/module.c