diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:26:03 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:26:03 +1030 |
commit | 87c7d57c17ade5024d95b6ca0da249da49b0672a (patch) | |
tree | 2ffeaae5c2e5ed9a72efec6466678fb797c4cdfa /drivers/lguest | |
parent | db40598863e8cbbd11053ad3c8bae89000f603f9 (diff) | |
download | op-kernel-dev-87c7d57c17ade5024d95b6ca0da249da49b0672a.zip op-kernel-dev-87c7d57c17ade5024d95b6ca0da249da49b0672a.tar.gz |
virtio: hand virtio ring alignment as argument to vring_new_virtqueue
This allows each virtio user to hand in the alignment appropriate to
their virtio_ring structures.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/lguest_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index f062dc5..b02f6bc 100644 --- a/drivers/lguest/lguest_device.c +++ b/drivers/lguest/lguest_device.c @@ -259,8 +259,8 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev, /* OK, tell virtio_ring.c to set up a virtqueue now we know its size * and we've got a pointer to its pages. */ - vq = vring_new_virtqueue(lvq->config.num, vdev, lvq->pages, - lg_notify, callback); + vq = vring_new_virtqueue(lvq->config.num, LGUEST_VRING_ALIGN, + vdev, lvq->pages, lg_notify, callback); if (!vq) { err = -ENOMEM; goto unmap; |