virtio: introduce qemu_get/put_virtqueue_element
commitab281c1781add112a257c15924d670616a99c41a
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 31 Jan 2016 10:28:59 +0000 (31 11:28 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 6 Feb 2016 18:44:08 +0000 (6 20:44 +0200)
tree4b24857c83b3c5494cecf1836c874ea385c79d04
parent51b19ebe4320f3dcd93cea71235c1219318ddfd2
virtio: introduce qemu_get/put_virtqueue_element

Move allocation to virtio functions also when loading/saving a
VirtQueueElement.  This will also let the load/save functions
keep backwards compatibility when the VirtQueueElement layout
is changed.

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>
hw/block/virtio-blk.c
hw/char/virtio-serial-bus.c
hw/scsi/virtio-scsi.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h