Skip to content
  • Markus Armbruster's avatar
    blockdev: Store -drive option media in DriveInfo · 95b5edcd
    Markus Armbruster authored
    
    
    DriveInfo is closely tied to -drive, and like -drive, it mixes
    information about host and guest part of the block device.  Unlike
    DriveInfo, BlockDriverState should be about the host part only.
    
    One of the remaining guest bits there is the "type hint".  -drive
    option media sets it, and qdevs "ide-drive", "scsi-disk" and non-qdev
    IF_XEN devices check it to pick HD vs. CD.
    
    Communicate -drive option media via new DriveInfo member media_cd
    instead.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    95b5edcd