summaryrefslogtreecommitdiffstats
path: root/device-hotplug.c
diff options
context:
space:
mode:
authorPaolo Bonzini2016-01-31 11:29:03 +0100
committerMichael S. Tsirkin2016-02-06 19:44:08 +0100
commitaa570d6fb6bd0402f27f151a76fb1762e26231ac (patch)
tree72a395aaa63618c27fca222a02069a19e773bf09 /device-hotplug.c
parentvring: slim down allocation of VirtQueueElements (diff)
downloadqemu-aa570d6fb6bd0402f27f151a76fb1762e26231ac.tar.gz
qemu-aa570d6fb6bd0402f27f151a76fb1762e26231ac.tar.xz
qemu-aa570d6fb6bd0402f27f151a76fb1762e26231ac.zip
virtio: combine the read of a descriptor
Compared to vring, virtio has a performance penalty of 10%. Fix it by combining all the reads for a descriptor in a single address_space_read call. This also simplifies the code nicely. Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions