qemu/hw/virtio
Jason Wang aebbdbee55 vhost: do not verify ring mappings when IOMMU is enabled
When IOMMU is enabled, we store virtqueue metadata as iova (though it
may has _phys suffix) and access them through dma helpers. Any
translation failures could be reported by IOMMU.

In this case, trying to validate iova against gpa won't work and will
cause a false error reporting. So this patch bypasses the ring
verification if IOMMU is enabled which is similar to the behavior
before 0ca1fd2d68 that calls vhost_memory_map() which is a nop when
IOMMU is enabled.

Fixes: 0ca1fd2d68 ("vhost: Simplify ring verification checks")
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-04-16 19:11:38 +03:00
..
Makefile.objs
trace-events vhost: Huge page align and merge 2018-03-20 16:40:37 +02:00
vhost-backend.c
vhost-stub.c
vhost-user.c vhost-user: back SET/GET_CONFIG requests with a protocol feature 2018-04-09 17:35:46 +03:00
vhost-vsock.c
vhost.c vhost: do not verify ring mappings when IOMMU is enabled 2018-04-16 19:11:38 +03:00
virtio-balloon.c
virtio-bus.c
virtio-crypto-pci.c
virtio-crypto.c
virtio-mmio.c
virtio-pci.c
virtio-pci.h
virtio-rng.c
virtio.c