From 21e00fa55f3fdfcbb20da7c6876c91ef3609b387 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Mon, 31 Oct 2016 09:53:03 -0600 Subject: memory: Replace skip_dump flag with "ram_device" Setting skip_dump on a MemoryRegion allows us to modify one specific code path, but the restriction we're trying to address encompasses more than that. If we have a RAM MemoryRegion backed by a physical device, it not only restricts our ability to dump that region, but also affects how we should manipulate it. Here we recognize that MemoryRegions do not change to sometimes allow dumps and other times not, so we replace setting the skip_dump flag with a new initializer so that we know exactly the type of region to which we're applying this behavior. Signed-off-by: Alex Williamson Acked-by: Paolo Bonzini --- memory_mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'memory_mapping.c') diff --git a/memory_mapping.c b/memory_mapping.c index e3e0d95..6a39d71 100644 --- a/memory_mapping.c +++ b/memory_mapping.c @@ -206,7 +206,7 @@ static void guest_phys_blocks_region_add(MemoryListener *listener, /* we only care about RAM */ if (!memory_region_is_ram(section->mr) || - memory_region_is_skip_dump(section->mr)) { + memory_region_is_ram_device(section->mr)) { return; } -- cgit v1.1