Commit 4cfb9393 authored by Eugenio Pérez's avatar Eugenio Pérez Committed by Michael S. Tsirkin

tools/virtio: Use __vring_new_virtqueue in virtio_test.c

As updated in ("2a2d1382 virtio: Add improved queue allocation API")
Signed-off-by: default avatarEugenio Pérez <eperezma@redhat.com>
Link: https://lore.kernel.org/r/20200418102217.32327-6-eperezma@redhat.comSigned-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 264ee5aa
......@@ -105,10 +105,9 @@ static void vq_info_add(struct vdev_info *dev, int num)
assert(r >= 0);
memset(info->ring, 0, vring_size(num, 4096));
vring_init(&info->vring, num, info->ring, 4096);
info->vq = vring_new_virtqueue(info->idx,
info->vring.num, 4096, &dev->vdev,
true, false, info->ring,
vq_notify, vq_callback, "test");
info->vq =
__vring_new_virtqueue(info->idx, info->vring, &dev->vdev, true,
false, vq_notify, vq_callback, "test");
assert(info->vq);
info->vq->priv = info;
vhost_vq_setup(dev, info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment