From e4dc3f5909ab90520bc1a27b381c3017ff65ed68 Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Mon, 15 Sep 2014 09:28:23 +0530 Subject: Add skip_dump flag to ignore memory region during dump The PCI MMIO might be disabled or the device in the reset state. Make sure we do not dump these memory regions. Signed-off-by: Nikunj A Dadhania Acked-by: Alex Williamson CC: Paolo Bonzini Signed-off-by: Paolo Bonzini --- hw/misc/vfio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/misc/vfio.c') diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index b5e798173b..fd318a122d 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -2911,6 +2911,7 @@ static int vfio_mmap_bar(VFIODevice *vdev, VFIOBAR *bar, } memory_region_init_ram_ptr(submem, OBJECT(vdev), name, size, *map); + memory_region_set_skip_dump(submem); } else { empty_region: /* Create a zero sized sub-region to make cleanup easy. */ -- cgit v1.2.3