qemu-e2k/hw/i386
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
..
kvm
xen
acpi-build.c pc: Add an SMB0 ACPI device to q35 2019-09-20 14:09:24 -05:00
acpi-build.h
amd_iommu.c memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
amd_iommu.h
e820_memory_layout.c
e820_memory_layout.h
fw_cfg.c
fw_cfg.h
intel_iommu_internal.h
intel_iommu.c memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
Kconfig ipmi: Add an SMBus IPMI interface 2019-09-20 14:08:10 -05:00
kvmvapic.c
Makefile.objs
multiboot.c
multiboot.h
pc_piix.c pc: Add an SMB0 ACPI device to q35 2019-09-20 14:09:24 -05:00
pc_q35.c pc: Add an SMB0 ACPI device to q35 2019-09-20 14:09:24 -05:00
pc_sysfw.c
pc.c
trace-events
vmmouse.c
vmport.c
x86-iommu.c