diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 10:26:03 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-29 17:56:03 -0500 |
commit | 87c7d57c17ade5024d95b6ca0da249da49b0672a (patch) | |
tree | 2ffeaae5c2e5ed9a72efec6466678fb797c4cdfa /drivers/s390/kvm | |
parent | db40598863e8cbbd11053ad3c8bae89000f603f9 (diff) |
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/s390/kvm')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index f5a2dbe75575..4e8354aa8576 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -193,7 +193,8 @@ static struct virtqueue *kvm_find_vq(struct virtio_device *vdev, | |||
193 | if (err) | 193 | if (err) |
194 | goto out; | 194 | goto out; |
195 | 195 | ||
196 | vq = vring_new_virtqueue(config->num, vdev, (void *) config->address, | 196 | vq = vring_new_virtqueue(config->num, KVM_S390_VIRTIO_RING_ALIGN, |
197 | vdev, (void *) config->address, | ||
197 | kvm_notify, callback); | 198 | kvm_notify, callback); |
198 | if (!vq) { | 199 | if (!vq) { |
199 | err = -ENOMEM; | 200 | err = -ENOMEM; |