diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2014-09-15 09:28:23 +0530 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-31 11:29:01 +0100 |
commit | e4dc3f5909ab90520bc1a27b381c3017ff65ed68 (patch) | |
tree | 380b6b1dedb693e6e75872734c47ed104d58dee4 /memory.c | |
parent | b154537ad07598377ebf98252fb7d2aff127983b (diff) | |
download | qemu-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.c')
-rw-r--r-- | memory.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1185,6 +1185,11 @@ void memory_region_init_ram_ptr(MemoryRegion *mr, mr->ram_addr = qemu_ram_alloc_from_ptr(size, ptr, mr, &error_abort); } +void memory_region_set_skip_dump(MemoryRegion *mr) +{ + mr->skip_dump = true; +} + void memory_region_init_alias(MemoryRegion *mr, Object *owner, const char *name, @@ -1306,6 +1311,11 @@ bool memory_region_is_ram(MemoryRegion *mr) return mr->ram; } +bool memory_region_is_skip_dump(MemoryRegion *mr) +{ + return mr->skip_dump; +} + bool memory_region_is_logging(MemoryRegion *mr) { return mr->dirty_log_mask; |