mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
b154537ad0
commit
e4dc3f5909
4 changed files with 32 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue