[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 3/6] exec: assert on memory_region_register_iommu
From: |
Eric Auger |
Subject: |
[Qemu-devel] [PATCH v1 3/6] exec: assert on memory_region_register_iommu_notifier() failure |
Date: |
Fri, 13 Sep 2019 10:36:12 +0200 |
memory_region_register_iommu_notifier now returns an error
in case of failure. Assert in such a case.
Signed-off-by: Eric Auger <address@hidden>
---
exec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/exec.c b/exec.c
index 235d6bc883..da30251a2b 100644
--- a/exec.c
+++ b/exec.c
@@ -692,7 +692,8 @@ static void tcg_register_iommu_notifier(CPUState *cpu,
0,
HWADDR_MAX,
iommu_idx);
- memory_region_register_iommu_notifier(notifier->mr, ¬ifier->n);
+ assert(!memory_region_register_iommu_notifier(notifier->mr,
+ ¬ifier->n));
}
if (!notifier->active) {
--
2.20.1
- [Qemu-devel] [PATCH v1 0/6] Allow memory_region_register_iommu_notifier() to fail, Eric Auger, 2019/09/13
- [Qemu-devel] [PATCH v1 1/6] memory: allow memory_region_register_iommu_notifier() to fail, Eric Auger, 2019/09/13
- [Qemu-devel] [PATCH v1 2/6] vfio/common: Handle memory_region_register_iommu_notifier() failure, Eric Auger, 2019/09/13
- [Qemu-devel] [PATCH v1 3/6] exec: assert on memory_region_register_iommu_notifier() failure,
Eric Auger <=
- [Qemu-devel] [PATCH v1 4/6] vhost: assert on memory_region_register_iommu_notifier() failure, Eric Auger, 2019/09/13
- [Qemu-devel] [PATCH v1 5/6] intel_iommu: Let vtd_iommu_notify_flag_changed() fail, Eric Auger, 2019/09/13
- [Qemu-devel] [PATCH v1 6/6] amd_iommu: Let amdvi_iommu_notify_flag_changed() fail, Eric Auger, 2019/09/13