Skip to content
  • Alex Williamson's avatar
    memory: Replace skip_dump flag with "ram_device" · 21e00fa5
    Alex Williamson authored
    
    
    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: default avatarAlex Williamson <alex.williamson@redhat.com>
    Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    21e00fa5