diff options
| author | Tiwei Bie | 2018-07-20 10:36:44 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-08-03 10:35:21 +0200 |
| commit | 388a86df9c59334e94ede099526509d8f466b0c8 (patch) | |
| tree | 6e38dc74775cdcdfca6dcdc4dd09b59cf0f1440e /scripts | |
| parent | Update version for v3.0.0-rc3 release (diff) | |
| download | qemu-388a86df9c59334e94ede099526509d8f466b0c8.tar.gz qemu-388a86df9c59334e94ede099526509d8f466b0c8.tar.xz qemu-388a86df9c59334e94ede099526509d8f466b0c8.zip | |
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: cb1efcf462a2 ("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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
