aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/kvm')
-rw-r--r--drivers/s390/kvm/kvm_virtio.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index 3d442444c618..f5a2dbe75575 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -188,7 +188,8 @@ static struct virtqueue *kvm_find_vq(struct virtio_device *vdev,
188 config = kvm_vq_config(kdev->desc)+index; 188 config = kvm_vq_config(kdev->desc)+index;
189 189
190 err = vmem_add_mapping(config->address, 190 err = vmem_add_mapping(config->address,
191 vring_size(config->num, PAGE_SIZE)); 191 vring_size(config->num,
192 KVM_S390_VIRTIO_RING_ALIGN));
192 if (err) 193 if (err)
193 goto out; 194 goto out;
194 195
@@ -209,7 +210,8 @@ static struct virtqueue *kvm_find_vq(struct virtio_device *vdev,
209 return vq; 210 return vq;
210unmap: 211unmap:
211 vmem_remove_mapping(config->address, 212 vmem_remove_mapping(config->address,
212 vring_size(config->num, PAGE_SIZE)); 213 vring_size(config->num,
214 KVM_S390_VIRTIO_RING_ALIGN));
213out: 215out:
214 return ERR_PTR(err); 216 return ERR_PTR(err);
215} 217}
@@ -220,7 +222,8 @@ static void kvm_del_vq(struct virtqueue *vq)
220 222
221 vring_del_virtqueue(vq); 223 vring_del_virtqueue(vq);
222 vmem_remove_mapping(config->address, 224 vmem_remove_mapping(config->address,
223 vring_size(config->num, PAGE_SIZE)); 225 vring_size(config->num,
226 KVM_S390_VIRTIO_RING_ALIGN));
224} 227}
225 228
226/* 229/*