diff options
author | Jason Wang <jasowang@redhat.com> | 2019-10-25 10:35:24 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-10-25 07:46:22 -0400 |
commit | 86044b24e865fb9596ed77a4d0f3af8b90a088a1 (patch) | |
tree | d9a7c2cb6d84eb507cb0450e74b0d820bc0845e8 /hw/block/virtio-blk.c | |
parent | 522bbb191cec2ac799f4bd662b0fcf6f00dfc2ea (diff) | |
download | qemu-86044b24e865fb9596ed77a4d0f3af8b90a088a1.zip qemu-86044b24e865fb9596ed77a4d0f3af8b90a088a1.tar.gz qemu-86044b24e865fb9596ed77a4d0f3af8b90a088a1.tar.bz2 |
virtio: basic packed virtqueue support
This patch implements basic support for the packed virtqueue. Compare
the split virtqueue which has three rings, packed virtqueue only have
one which is supposed to have better cache utilization and more
hardware friendly.
Please refer virtio specification for more information.
Signed-off-by: Wei Xu <wexu@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio PĂ©rez <eperezma@redhat.com>
Message-Id: <20191025083527.30803-6-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/block/virtio-blk.c')
-rw-r--r-- | hw/block/virtio-blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index ba846fe..7dbdeaa 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -1052,7 +1052,7 @@ static void virtio_blk_save_device(VirtIODevice *vdev, QEMUFile *f) qemu_put_be32(f, virtio_get_queue_index(req->vq)); } - qemu_put_virtqueue_element(f, &req->elem); + qemu_put_virtqueue_element(vdev, f, &req->elem); req = req->next; } qemu_put_sbyte(f, 0); |