summaryrefslogtreecommitdiffstats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorFam Zheng2016-09-05 04:50:44 +0200
committerMax Reitz2016-10-07 14:14:06 +0200
commitdffa41b48651c4002af02e80b7459e56a77152c7 (patch)
tree909495655b4efc4182f9814d634d89ca8188996e /hw/net/virtio-net.c
parentscripts: Allow block module to not define BlockDriver (diff)
downloadqemu-dffa41b48651c4002af02e80b7459e56a77152c7.tar.gz
qemu-dffa41b48651c4002af02e80b7459e56a77152c7.tar.xz
qemu-dffa41b48651c4002af02e80b7459e56a77152c7.zip
module: Don't load the same module if requested multiple times
Use a hash table to keep record of all loaded modules, and return early if the requested module is already loaded. Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1473043845-13197-3-git-send-email-famz@redhat.com Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions