aboutsummaryrefslogtreecommitdiff
path: root/ui/cursor_hidden.xpm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-01-31 11:29:02 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-02-06 20:44:08 +0200
commit5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1 (patch)
treeb285c0bc5ec588da078298fb16bdfae84ce0383d /ui/cursor_hidden.xpm
parent3b3b0628217e2726069990ff9942a5d6d9816bd7 (diff)
downloadqemu-5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1.zip
qemu-5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1.tar.gz
qemu-5dba97ebdc92f1ac3c9ac27d8eac52ed2348fae1.tar.bz2
vring: slim down allocation of VirtQueueElements
Build the addresses and s/g lists on the stack, and then copy them to a VirtQueueElement that is just as big as required to contain this particular s/g list. The cost of the copy is minimal compared to that of a large malloc. 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 'ui/cursor_hidden.xpm')
0 files changed, 0 insertions, 0 deletions