1. 11 6月, 2013 2 次提交
  2. 10 6月, 2013 2 次提交
  3. 07 6月, 2013 7 次提交
  4. 06 6月, 2013 22 次提交
  5. 05 6月, 2013 2 次提交
    • S
      blockdev: reset werror/rerror on drive_del · 293c51a6
      Stefan Hajnoczi 提交于
      Paolo Bonzini <pbonzini@redhat.com> suggested the following test case:
      
      1. Launch a guest and wait at the GRUB boot menu:
      
        qemu-system-x86_64 -enable-kvm -m 1024 \
         -drive if=none,cache=none,file=test.img,id=foo,werror=stop,rerror=stop
         -device virtio-blk-pci,drive=foo,id=virtio0,addr=4
      
      2. Hot unplug the device:
      
        (qemu) drive_del foo
      
      3. Select the first boot menu entry
      
      Without this patch the guest pauses due to ENOMEDIUM.  The guest is
      stuck in a continuous pause loop since the I/O request is retried and
      fails immediately again when the guest is resumed.
      
      With this patch the error is reported to the guest.
      
      Note that this scenario actually happens sometimes during libvirt disk
      hot unplug, where device_del is followed by drive_del.  I/O may still be
      submitted to the drive after drive_del if the guest does not process the
      PCI hot unplug notification.
      Reported-by: NDafna Ron <dron@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      293c51a6
    • A
      Merge remote-tracking branch 'sstabellini/xen_fixes_20130603' into staging · 8819c10b
      Anthony Liguori 提交于
      * sstabellini/xen_fixes_20130603:
        xen: use pc_init_pci instead of pc_init_pci_no_kvmclock
        xen: remove xen_vcpu_init
        xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)
        xen_machine_pv: do not create a dummy CPU in machine->init
        main_loop: do not set nonblocking if xen_enabled()
        xen: simplify xen_enabled
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8819c10b
  6. 04 6月, 2013 5 次提交
    • A
      Merge remote-tracking branch 'kwolf/for-anthony' into staging · a3416197
      Anthony Liguori 提交于
      # By Stefan Hajnoczi (6) and others
      # Via Kevin Wolf
      * kwolf/for-anthony:
        block: dump snapshot and image info to specified output
        block: move qmp and info dump related code to block/qapi.c
        block: move snapshot code in block.c to block/snapshot.c
        block: drop bs_snapshots global variable
        qemu-iotests: make create_image() common
        qemu-iotests: make compare_images() common
        qemu-iotests: make cancel_and_wait() common
        qemu-iotests: make assert_no_active_block_jobs() common
        block: add block driver read only whitelist
        qemu-iotests: fix 054 cluster size help output
      
      Message-id: 1370349940-4703-1-git-send-email-kwolf@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a3416197
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · e47dccc6
      Anthony Liguori 提交于
      pci: misc cleanups
      
      This includes some pci-related cleanups,
      and fw cfg cleanups which will be useful for on-going
      pci related work.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Sun 02 Jun 2013 02:46:52 PM CDT using RSA key ID D28D5469
      # gpg: Can't check signature: public key not found
      
      # By Michael S. Tsirkin (8) and Laszlo Ersek (1)
      # Via Michael S. Tsirkin
      * mst/tags/for_anthony:
        pvpanic: use FWCfgState explicitly
        fw_cfg: fw_cfg is a singleton
        fw_cfg: add API to find FW cfg object
        fw_cfg: move typedef to qemu/typedefs.h
        refer to FWCfgState explicitly
        apic: rename apic specific bitopts
        firmware_abi: move to include/hw/nvram/
        dec.c - move to pci-bridge
        q35: set fw_name
      
      Message-id: 1370202787-3712-1-git-send-email-mst@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e47dccc6
    • W
      block: dump snapshot and image info to specified output · 5b917044
      Wenchao Xia 提交于
      bdrv_snapshot_dump() and bdrv_image_info_dump() do not dump to a buffer now,
      some internal buffers are still used for format control, which have no
      chance to be truncated. As a result, these two functions have no more issue
      of truncation, and they can be used by both qemu and qemu-img with correct
      parameter specified.
      Signed-off-by: NWenchao Xia <xiawenc@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      5b917044
    • W
      block: move qmp and info dump related code to block/qapi.c · f364ec65
      Wenchao Xia 提交于
      This patch is a pure code move patch, except following modification:
      1 get_human_readable_size() is changed to static function.
      2 dump_human_image_info() is renamed to bdrv_image_info_dump().
      3 in qmp_query_block() and qmp_query_blockstats, use bdrv_next(bs)
      instead of direct traverse of global array 'bdrv_states'.
      4 collect_snapshots() and collect_image_info() are renamed, unused parameter
      *fmt in collect_image_info() is removed.
      5 code style fix.
      
      To avoid conflict and tip better, macro in header file is BLOCK_QAPI_H
      instead of QAPI_H. Now block.h and snapshot.h are at the same level in
      include path, block_int.h and qapi.h will both include them.
      Signed-off-by: NWenchao Xia <xiawenc@linux.vnet.ibm.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f364ec65
    • W
      block: move snapshot code in block.c to block/snapshot.c · de08c606
      Wenchao Xia 提交于
      All snapshot related code, except bdrv_snapshot_dump() and
      bdrv_is_snapshot(), is moved to block/snapshot.c. bdrv_snapshot_dump()
      will be moved to another file later. bdrv_is_snapshot() is not related
      with internal snapshot. It also fixes small code style errors reported
      by check script.
      Signed-off-by: NWenchao Xia <xiawenc@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      de08c606