[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/5] amd_iommu: Let amdvi_iommu_notify_flag_chang
From: |
Eric Auger |
Subject: |
[Qemu-devel] [PATCH v2 5/5] amd_iommu: Let amdvi_iommu_notify_flag_changed() fail |
Date: |
Thu, 19 Sep 2019 14:18:45 +0200 |
In case a MAP notifier is attempted to be registered,
let's simply return an error. This latter now is
handled in the VFIO code.
Signed-off-by: Eric Auger <address@hidden>
---
hw/i386/amd_iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index 137ba367db..09dee48fac 100644
--- a/hw/i386/amd_iommu.c
+++ b/hw/i386/amd_iommu.c
@@ -1476,7 +1476,7 @@ static int
amdvi_iommu_notify_flag_changed(IOMMUMemoryRegion *iommu,
error_report("device %02x.%02x.%x requires iommu notifier which is not
"
"currently supported", as->bus_num, PCI_SLOT(as->devfn),
PCI_FUNC(as->devfn));
- exit(1);
+ return -EINVAL;
}
return 0;
}
--
2.20.1
- [Qemu-devel] [PATCH v2 0/5] Allow memory_region_register_iommu_notifier() to fail, Eric Auger, 2019/09/19
- [Qemu-devel] [PATCH v2 2/5] vfio/common: Handle memory_region_register_iommu_notifier() failure, Eric Auger, 2019/09/19
- [Qemu-devel] [PATCH v2 1/5] memory: allow memory_region_register_iommu_notifier() to fail, Eric Auger, 2019/09/19
- [Qemu-devel] [PATCH v2 3/5] exec: assert on memory_region_register_iommu_notifier() failure, Eric Auger, 2019/09/19
- [Qemu-devel] [PATCH v2 5/5] amd_iommu: Let amdvi_iommu_notify_flag_changed() fail,
Eric Auger <=
- [Qemu-devel] [PATCH v2 4/5] vhost: assert on memory_region_register_iommu_notifier() failure, Eric Auger, 2019/09/19
- Re: [PATCH v2 0/5] Allow memory_region_register_iommu_notifier() to fail, Peter Xu, 2019/09/20