memory: Replace skip_dump flag with "ram_device"
commit21e00fa55f3fdfcbb20da7c6876c91ef3609b387
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 31 Oct 2016 15:53:03 +0000 (31 09:53 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 31 Oct 2016 15:53:03 +0000 (31 09:53 -0600)
tree3bf8840920a6a9a6a0064a4711ac0617ec15b95d
parent0bb1137930f51a89fb1bfeb0c46aa68af0395167
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 <alex.williamson@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/common.c
hw/vfio/spapr.c
include/exec/memory.h
memory.c
memory_mapping.c