qemu-e2k/hw
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
..
9pfs
acpi ipmi: Fix SSIF ACPI handling to use the right CRS 2019-09-20 14:08:10 -05:00
adc
alpha
arm memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
audio
block xen-block: treat XenbusStateUnknown the same as XenbusStateClosed 2019-09-24 12:21:11 +01:00
bt
char escc: introduce a selector for the register bit 2019-09-07 08:32:12 +02:00
core hw/core/loader: Fix possible crash in rom_copy() 2019-10-01 11:42:27 +02:00
cpu
cris
display ati: use vga_read_byte in ati_cursor_define 2019-09-19 10:37:46 +02:00
dma hw/dma/xilinx_axi: Use object_initialize_child for correct ref. counting 2019-09-03 16:20:34 +01:00
gpio hw/gpio: Add basic Aspeed GPIO model for AST2400 and AST2500 2019-09-13 16:05:00 +01:00
hppa hppa: fix leak from g_strdup_printf 2019-10-04 18:49:17 +02:00
hyperv
i2c
i386 memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
ide ide: fix leak from qemu_allocate_irqs 2019-10-04 18:49:16 +02:00
input
intc s390x/kvm: Officially require at least kernel 3.15 2019-09-23 09:15:03 +02:00
ipack
ipmi ipmi: Add an SMBus IPMI interface 2019-09-20 14:08:10 -05:00
isa hw/isa: Introduce a CONFIG_ISA_SUPERIO switch for isa-superio.c 2019-10-04 18:49:16 +02:00
lm32
m68k mcf5208: fix leak from qemu_allocate_irqs 2019-10-04 18:49:16 +02:00
mem numa: move numa global variable nb_numa_nodes into MachineState 2019-09-03 11:26:55 -03:00
microblaze microblaze: fix leak of fdevice tree blob 2019-10-04 18:49:16 +02:00
mips mips: fix memory leaks in board initialization 2019-10-04 18:49:17 +02:00
misc trace: Remove trailing newline in events 2019-09-18 10:19:47 +01:00
moxie
net hw/net/vmxnet3: Fix leftover unregister_savevm 2019-09-12 11:13:55 +01:00
nios2
nvram
openrisc
pci
pci-bridge numa: move numa global variable nb_numa_nodes into MachineState 2019-09-03 11:26:55 -03:00
pci-host
pcmcia
ppc memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
rdma
riscv riscv: sifive_u: Update model and compatible strings in device tree 2019-09-17 08:42:49 -07:00
s390x s390: do not call memory_region_allocate_system_memory() multiple times 2019-09-30 13:51:50 +02:00
scsi trace: Remove trailing newline in events 2019-09-18 10:19:47 +01:00
sd trace: Remove trailing newline in events 2019-09-18 10:19:47 +01:00
semihosting
sh4
smbios smbios:ipmi: Ignore IPMI devices with no fwinfo function 2019-09-20 14:08:10 -05:00
sparc
sparc64
ssi aspeed/smc: Calculate checksum on normal DMA 2019-09-13 16:05:01 +01:00
timer lm32: do not leak memory on object_new/object_unref 2019-10-04 18:49:17 +02:00
tpm
tricore
unicore32
usb usb-mtp: add sanity checks on rootdir 2019-08-29 07:31:12 +02:00
vfio memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
virtio memory: allow memory_region_register_iommu_notifier() to fail 2019-10-04 18:49:18 +02:00
watchdog
xen xen-bus: only set the xen device frontend state if it is missing 2019-09-24 12:21:29 +01:00
xenpv
xtensa
Kconfig
Makefile.objs