qemu-e2k/hw/virtio
Tiwei Bie 388a86df9c vhost: check region type before casting
Check region type first before casting the memory region
to IOMMUMemoryRegion. Otherwise QEMU will abort with below
error message when casting non-IOMMU memory region:

vhost_iommu_region_add: Object 0x561f28bce4f0 is not an
instance of type qemu:iommu-memory-region

Fixes: cb1efcf462 ("iommu: Add IOMMU index argument to notifier APIs")
Cc: Peter Maydell <peter.maydell@linaro.org>

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-08-03 11:35:21 +03:00
..
Makefile.objs hw: make virtio devices configurable via default-configs/ 2018-06-01 15:14:31 +02:00
trace-events vhost: add trace for IOTLB miss 2018-05-23 03:14:41 +03:00
vhost-backend.c
vhost-stub.c vhost-user: introduce shared vhost-user state 2018-05-24 21:14:11 +03:00
vhost-user.c vhost-user: support registering external host notifiers 2018-05-24 21:14:11 +03:00
vhost-vsock.c
vhost.c vhost: check region type before casting 2018-08-03 11:35:21 +03:00
virtio-balloon.c virtio-balloon: add hugetlb page allocation counts 2018-05-23 03:14:40 +03:00
virtio-bus.c
virtio-crypto-pci.c
virtio-crypto.c cryptodev: add vhost support 2018-03-01 18:26:17 +02:00
virtio-mmio.c
virtio-pci.c hw: Do not include "sysemu/block-backend.h" if it is not necessary 2018-06-01 14:15:10 +02:00
virtio-pci.h
virtio-rng.c virtio-rng: process pending requests on DRIVER_OK 2018-06-28 04:46:16 +03:00
virtio.c virtio: free MemoryRegionCache when initialization fails 2018-06-01 14:15:10 +02:00