• This patch tweaks the ATAPI CDROM emulation to fix an annoyance seen
    when running a variety of Linux guests: the desktop GUI shows a CDROM
    device as present, but is unable to automount the media and display its
    contents.
    
    The patch adds the PLAY_AUDIO capability bit to the data returned by
    MODE_SENSE commands.  That convinces the guest kernel to determine what
    kind of media is present.
    
    Arguably Linux could be smarter about this, but it's my guess there are
    few (if any) hardware CDROM drives that don't set the bit, and there are
    a large number of Linux distros that exhibit this problem.
    
    Signed-off-by: Gary Grebus <ggrebus@virtualiron.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5752 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »



  • The DIAGNOSE command in the qemu IDE implementation has an error when
    use dfor packet devices. 
    
    The status register value is dependant on the drive being a packet
    device or not, this patch corrects the returned status.
    
    From the ATA/PI specification (V6 draft):
    
    "If the device implements the PACKET command feature set, the device
    SHALL clear bits 6,5,4,3,2 and 0 in the Status register to zero."
    
    A selection of physical devices have been checked and do conform to
    the specifications behaviour.
    
    Signed-off-by: Vincent Sanders <vince@simtec.co.uk>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5452 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »




  • Add SEEK_STAT in all non-error cases except sleep request, since our
    seek times are virtually 0.  Although this flag is deprecated by newer
    ATA standards, Linux at least checks it for CD drives, and would timeout
    in some case if we do not set it.
    
    Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4994 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »