• this patch allows to fully use a tape device connected to qemu through
    the scsi-generic interface.
    
    Previous patch introduced tape SCSI commands management, this one
    improve error case management:
    
    - the SCSI controller command completion must be called with the status
    value, not the sense value. In the case of scsi-generic, the SCSI status
    is given by the field status of sg_io_hdr_t (the value is left shifted
    by one regarding status codes defined in /usr/include/scsi/scsi.h)
    
    - when a read is aborted due to a mark/EOF/EOD/EOM, the len reported to
    controller can be 0. LSI controller emulation doesn't know how to manage
    this. A workaround found is to call the completion routine with
    SCSI_REASON_DONE just after calling it with SCSI_REASON_DATA with len=0.
    
    This patch also manages correctly the block size of the tape device.
    
    This patch has been tested with a real tape device "HP C5683A", linux
    guest (debian etch) and tools like "mt", "tar" and "btape".
    
    Windows guest is not better supported than before...
    
    Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5497 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
     
    Browse Code »

  • This patch allows QEMUFile's read and write operations to return 
    negative error codes.  This is necessary to detect things like closed 
    streams during live migration.
    
    It also removes unused code for QEMUFileFD write path.  Finally, it 
    makes sure to avoid attempting to flush an output buffer if the file
    is only being used for input.  This was spotted by Uri Lublin.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5474 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »



  • 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 »


  • The current savevm/loadvm protocol has some draw backs.  It does not support
    the ability to do progressive saving which means it cannot be used for live
    checkpointing or migration.  The sections sizes are 32-bit integers which
    means that it will not function when using more than 4GB of memory for a guest.
    It attempts to seek within the output file which means it cannot be streamed.
    The current protocol also is pretty lax about how it supports forward
    compatibility.  If a saved section version is greater than what the restore
    code support, the restore code generally treats the saved data as being in
    whatever version it supports.  This means that restoring a saved VM on an older
    version of QEMU will likely result in silent guest failure.
    
    This patch introduces a new version of the savevm protocol.  It has the
    following features:
    
     * Support for progressive save of sections (for live checkpoint/migration)
     * An asynchronous API for doing save
     * Support for interleaving multiple progressive save sections
       (for future support of memory hot-add/storage migration)
     * Fully streaming format
     * Strong section version checking
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5434 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »