1. 12 5月, 2012 5 次提交
  2. 10 5月, 2012 7 次提交
  3. 09 5月, 2012 14 次提交
  4. 08 5月, 2012 12 次提交
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · 4f08129e
      Anthony Liguori 提交于
      * mst/tags/for_anthony:
        rtl8139: fix regression in TxStatus/TxAddr read
      4f08129e
    • A
      Merge remote-tracking branch 'kwolf/for-anthony' into staging · 7c652c1e
      Anthony Liguori 提交于
      * kwolf/for-anthony:
        fdc: simplify media change handling
        qcow2: lock on prealloc
        block: make bdrv_create adopt coroutine
        qcow2: Limit COW to where it's needed
        sheepdog: switch to writethrough mode if cluster doesn't support flush
      7c652c1e
    • A
      Merge remote-tracking branch 'bonzini/scsi-next' into staging · e45bca68
      Anthony Liguori 提交于
      * bonzini/scsi-next:
        scsi: Add assertion for use-after-free errors
        scsi: remove useless debug messages
        scsi: set VALID bit to 0 in fixed format sense data
        scsi: do not require a minimum allocation length for REQUEST SENSE
        scsi: do not require a minimum allocation length for INQUIRY
        scsi: parse 16-byte tape CDBs
        scsi: do not report bogus overruns for commands in the 0x00-0x1F range
        scsi-disk: add dpofua property
        scsi: change "removable" field to host many features
        scsi: Specify the xfer direction for UNMAP and ATA_PASSTHROUGH commands
        scsi: fix WRITE SAME transfer length and direction
        scsi: fix refcounting for reads
        scsi: prevent data transfer overflow
        ISCSI: Add support for thin-provisioning via discard/UNMAP and bigger LUNs
      e45bca68
    • A
      Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging · 233ffa16
      Anthony Liguori 提交于
      * riku/linux-user-for-upstream:
        linux-user: fix emulation of /proc/self/maps
        linux-user: Clean up interim solution for exit syscall
      233ffa16
    • A
      Merge remote-tracking branch 'spice/spice.v54' into staging · acde8376
      Anthony Liguori 提交于
      * spice/spice.v54:
        qxl: don't assert on guest create_guest_primary
        qxl: ioport_write: remove guest trigerrable abort
        qxl: qxl_add_memslot: remove guest trigerrable panics
        qxl: interface_notify_update: remove guest trigerrable abort
        qxl: cleanup s/__FUNCTION__/__func__/
        qxl: don't abort on guest trigerrable ring indices mismatch
        qxl: fix > 80 chars line
        qxl: replace panic with guest bug in qxl_track_command
        qxl: check for NULL return from qxl_phys2virt
        hw/qxl.c: qxl_phys2virt: replace panics with guest_bug
        spice_info: add mouse_mode
        spice: require spice-protocol >= 0.8.1
      acde8376
    • A
      Merge remote-tracking branch 'sweil/fixes' into staging · 4b5463bf
      Anthony Liguori 提交于
      * sweil/fixes:
        qemu-timer: Fix limits for w32 mmtimer
        qom: Fix memory leak in function container_get
        hw/pc_sysfw: Fix memory leak
        qdev: Fix memory leak in function set_pci_devfn
        arm-semi: Rename SYS_XXX macros to TARGET_SYS_XXX (fixes compiler warning)
        target-mips: Remove unused inline function
      4b5463bf
    • A
      rtl8139: fix regression in TxStatus/TxAddr read · bdc62e62
      Avi Kivity 提交于
      Commit afe0a595 added byte reads for TxStatus/TxAddr, but
      broke 32-bit reads; the mask generation
      
         (1 << (8 * size)) - 1
      
      is unspecified in C for size >= sizeof(int), and in fact returns 0
      on x86.
      
      Fix by using a larger type.
      
      Fixes (at least) Fedora 9 i386 with -machine kernel_irqchip=on.  I
      didn't see it with the qemu APIC implementation; may be due to timing
      or (more likely) a tester error.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      bdc62e62
    • H
      fdc: simplify media change handling · 21fcf360
      Hervé Poussineau 提交于
      This also (partly) fixes IBM OS/2 Warp 4.0 floppy installation, where
      not all floppies have the same format (2x80x18 for the first ones,
      2x80x23 for the next ones).
      Signed-off-by: NHervé Poussineau <hpoussin@reactos.org>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      21fcf360
    • Z
      qcow2: lock on prealloc · 15552c4a
      Zhi Yong Wu 提交于
      preallocate() will be locked. This is required because
      qcow2_alloc_cluster_link_l2() assumes that it runs under a lock that it
      can drop while COW is being performed.
      Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      15552c4a
    • Z
      block: make bdrv_create adopt coroutine · 5b7e1542
      Zhi Yong Wu 提交于
      The current qemu.git introduces failure with preallocation and some
      sizes:
      
      qemu-img create -f qcow2 new.img 976563K -o preallocation=metadata
      qemu-img: qemu-coroutine-lock.c:111: qemu_co_mutex_unlock: Assertion
      `mutex->locked == 1' failed.
      
      And lock needs to work in coroutine context. So to fix this issue, we
      need to make bdrv_create adopt coroutine at first.
      Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      5b7e1542
    • K
      qcow2: Limit COW to where it's needed · 54e68143
      Kevin Wolf 提交于
      This fixes a regression introduced in commit 250196f1. The bug leads to
      data corruption, found during an Autotest run with a Fedora 8 guest.
      
      Consider a write request whose first part is covered by an already
      allocated cluster, but additional clusters need to be newly allocated.
      When counting the number of clusters to allocate, the qcow2 code would
      decide to do COW for all remaining clusters of the write request, even
      if some of them are already allocated.
      
      If during this COW operation another write request is issued that touches
      the same cluster, it will still refer to the old cluster. When the COW
      completes, the first request will update the L2 table and the second
      write request will be lost. Note that the requests need not overlap, it's
      enough for them to touch the same cluster.
      
      This patch ensures that only clusters that really require COW are
      considered for allocation. In this case any other request writing to the
      same cluster will be an allocating write and gets serialised.
      Reported-by: NMarcelo Tosatti <mtosatti@redhat.com>
      Tested-by: NMarcelo Tosatti <mtosatti@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      54e68143
    • M
      sheepdog: switch to writethrough mode if cluster doesn't support flush · 115c2b5a
      MORITA Kazutaka 提交于
      This is necessary for qemu to work with the older version of Sheepdog
      which doesn't support SD_OP_FLUSH_VDI.
      Signed-off-by: NMORITA Kazutaka <morita.kazutaka@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      115c2b5a
  5. 07 5月, 2012 2 次提交