[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/11] vfio/common: cleanup in vfio_region_finalize
From: |
Alex Williamson |
Subject: |
[Qemu-devel] [PULL 05/11] vfio/common: cleanup in vfio_region_finalize |
Date: |
Tue, 13 Mar 2018 14:18:21 -0600 |
User-agent: |
StGit/0.18-102-gdf9f |
From: Gerd Hoffmann <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed by: Kirti Wankhede <address@hidden>
Signed-off-by: Alex Williamson <address@hidden>
---
hw/vfio/common.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index f895e3c3359a..6a8203a53245 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -858,6 +858,13 @@ void vfio_region_finalize(VFIORegion *region)
g_free(region->mmaps);
trace_vfio_region_finalize(region->vbasedev->name, region->nr);
+
+ region->mem = NULL;
+ region->mmaps = NULL;
+ region->nr_mmaps = 0;
+ region->size = 0;
+ region->flags = 0;
+ region->nr = 0;
}
void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled)
- [Qemu-devel] [PULL 00/11] vfio updates for QEMU-2.12 soft freeze, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 01/11] standard-headers: add drm/drm_fourcc.h, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 02/11] ui/pixman: add qemu_drm_format_to_pixman(), Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 03/11] console: minimal hotplug suport, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 04/11] secondary-vga: properly close QemuConsole on unplug, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 05/11] vfio/common: cleanup in vfio_region_finalize,
Alex Williamson <=
- [Qemu-devel] [PULL 06/11] vfio/display: core & wireup, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 07/11] vfio/display: adding region support, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 08/11] vfio/display: adding dmabuf support, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 09/11] vfio/pci: Relax DMA map errors for MMIO regions, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 10/11] vfio-pci: Allow mmap of MSIX BAR, Alex Williamson, 2018/03/13
- [Qemu-devel] [PULL 11/11] ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices, Alex Williamson, 2018/03/13
- Re: [Qemu-devel] [PULL 00/11] vfio updates for QEMU-2.12 soft freeze, Peter Maydell, 2018/03/16