Skip to content
  • Markus Armbruster's avatar
    savevm: Include writable devices with removable media · 07b70bfb
    Markus Armbruster authored
    
    
    savevm and loadvm silently ignore block devices with removable media,
    such as floppies and SD cards.  Rolling back a VM to a previous
    checkpoint will *not* roll back writes to block devices with removable
    media.
    
    Moreover, bdrv_is_removable() is a confused mess, and wrong in at
    least one case: it considers "-drive if=xen,media=cdrom -M xenpv"
    removable.  It'll be cleaned up later in this series.
    
    Read-only block devices are also ignored, but that's okay.
    
    Fix by ignoring only read-only block devices and empty block devices.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    07b70bfb