qemu-patch-raspberry4/hw/vfio
Eric Auger 549d400587 memory: allow memory_region_register_iommu_notifier() to fail
Currently, when a notifier is attempted to be registered and its
flags are not supported (especially the MAP one) by the IOMMU MR,
we generally abruptly exit in the IOMMU code. The failure could be
handled more nicely in the caller and especially in the VFIO code.

So let's allow memory_region_register_iommu_notifier() to fail as
well as notify_flag_changed() callback.

All sites implementing the callback are updated. This patch does
not yet remove the exit(1) in the amd_iommu code.

in SMMUv3 we turn the warning message into an error message saying
that the assigned device would not work properly.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-10-04 18:49:18 +02:00
..
amd-xgbe.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ap.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
common.c memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
display.c vfio/display: set dmabuf modifier field 2019-06-07 11:52:35 +02:00
Kconfig vfio-pci: enable by default 2019-03-11 14:45:10 +01:00
Makefile.objs hw/vfio/Makefile.objs: Create new CONFIG_* variables for VFIO core and PCI 2019-02-05 16:50:21 +01:00
pci-quirks.c memory: Access MemoryRegion with endianness 2019-09-03 08:30:39 -07:00
pci.c vfio: fix a typo 2019-09-19 11:50:37 +02:00
pci.h Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
platform.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
spapr.c vfio: Turn the container error into an Error handle 2019-10-04 18:49:18 +02:00
trace-events spapr: Support NVIDIA V100 GPU with NVLink2 2019-04-26 10:41:23 +10:00