• Add the parameter 'order' to qemu_register_reset and sort callbacks on
    registration. On system reset, callbacks with lower order will be
    invoked before those with higher order. Update all existing users to the
    standard order 0.
    
    Note: At least for x86, the existing users seem to assume that handlers
    are called in their registration order. Therefore, the patch preserves
    this property. If someone feels bored, (s)he could try to identify this
    dependency and express it properly on callback registration.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »



  • this patch adds a buffer_alignment field to BlockDriverState and
    implements a qemu_blockalign function that uses that field to allocate a
    memory aligned buffer to be used by the block driver.
    buffer_alignment is initialized to 512 but each block driver can set
    a different value (at the moment none of them do).
    This patch modifies ide.c, block-qcow.c, block-qcow2.c and block.c to
    use qemu_blockalign instead of qemu_memalign.
    There is only one place left that still uses qemu_memalign to allocate
    buffers used by block drivers that is posix-aio-compat:handle_aiocb_rw
    because it is not possible to get the BlockDriverState from that
    function. However I think it is not important because posix-aio-compat
    already deals with driver specific code so it is supposed to know its
    own needs.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7229 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Dir »












  • This version of the patch adds new option "werror" to -drive flag.
    Possible values are:
    
    report    - report errors to a guest as IO errors
    ignore    - continue as if nothing happened
    stop      - stop VM on any error and retry last command on resume
    enospc    - stop vm on ENOSPC error and retry last command on resume
                all other errors are reported to a guest.
    
    Default is "report" to maintain current behaviour.
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6388 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse File »








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