aboutsummaryrefslogtreecommitdiff
path: root/memory_mapping.c
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2014-09-15 09:28:23 +0530
committerPaolo Bonzini <pbonzini@redhat.com>2014-10-31 11:29:01 +0100
commite4dc3f5909ab90520bc1a27b381c3017ff65ed68 (patch)
tree380b6b1dedb693e6e75872734c47ed104d58dee4 /memory_mapping.c
parentb154537ad07598377ebf98252fb7d2aff127983b (diff)
downloadqemu-e4dc3f5909ab90520bc1a27b381c3017ff65ed68.zip
qemu-e4dc3f5909ab90520bc1a27b381c3017ff65ed68.tar.gz
qemu-e4dc3f5909ab90520bc1a27b381c3017ff65ed68.tar.bz2
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 <nikunj@linux.vnet.ibm.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> CC: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory_mapping.c')
-rw-r--r--memory_mapping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/memory_mapping.c b/memory_mapping.c
index 87a6ed5..7b69801 100644
--- a/memory_mapping.c
+++ b/memory_mapping.c
@@ -203,7 +203,8 @@ static void guest_phys_blocks_region_add(MemoryListener *listener,
GuestPhysBlock *predecessor;
/* we only care about RAM */
- if (!memory_region_is_ram(section->mr)) {
+ if (!memory_region_is_ram(section->mr) ||
+ memory_region_is_skip_dump(section->mr)) {
return;
}