Re: [Qemu-devel] [PULL 00/28] Block patches

2014-10-22 Thread Peter Maydell
On 20 October 2014 14:35, Kevin Wolf kw...@redhat.com wrote:
 The following changes since commit 5f77ef69a195098baddfdc6d189f1b4a94587378:

   glib: add compatibility interface for g_strcmp0() (2014-10-16 23:02:31 
 +0100)

 are available in the git repository at:

   git://repo.or.cz/qemu/kevin.git tags/for-upstream

 for you to fetch changes up to 84ebe3755f88be4c3733e997641fafd050a58810:

   block: Make device model's references to BlockBackend strong (2014-10-20 
 14:03:51 +0200)

 
 Block patches


Applied, thanks.

-- PMM



[Qemu-devel] [PULL 00/28] Block patches

2014-10-20 Thread Kevin Wolf
The following changes since commit 5f77ef69a195098baddfdc6d189f1b4a94587378:

  glib: add compatibility interface for g_strcmp0() (2014-10-16 23:02:31 +0100)

are available in the git repository at:

  git://repo.or.cz/qemu/kevin.git tags/for-upstream

for you to fetch changes up to 84ebe3755f88be4c3733e997641fafd050a58810:

  block: Make device model's references to BlockBackend strong (2014-10-20 
14:03:51 +0200)


Block patches


Markus Armbruster (24):
  block: Split bdrv_new_root() off bdrv_new()
  block: New BlockBackend
  block: Connect BlockBackend to BlockDriverState
  block: Connect BlockBackend and DriveInfo
  block: Code motion to get rid of stubs/blockdev.c
  block: Make BlockBackend own its BlockDriverState
  blockdev: Eliminate drive_del()
  block: Eliminate bdrv_iterate(), use bdrv_next()
  block: Eliminate BlockDriverState member device_name[]
  block: Merge BlockBackend and BlockDriverState name spaces
  block: Eliminate DriveInfo member bdrv, use blk_by_legacy_dinfo()
  block: Rename BlockDriverAIOCB* to BlockAIOCB*
  block: Rename BlockDriverCompletionFunc to BlockCompletionFunc
  virtio-blk: Drop redundant VirtIOBlock member conf
  virtio-blk: Rename VirtIOBlkConf variables to conf
  hw: Convert from BlockDriverState to BlockBackend, mostly
  ide: Complete conversion from BlockDriverState to BlockBackend
  pc87312: Drop unused members of PC87312State
  blockdev: Drop superfluous DriveInfo member id
  blockdev: Fix blockdev-add not to create DriveInfo
  block/qapi: Convert qmp_query_block() to BlockBackend
  blockdev: Convert qmp_eject(), qmp_change_blockdev() to BlockBackend
  block: Lift device model API into BlockBackend
  block: Make device model's references to BlockBackend strong

Max Reitz (1):
  nbd: Fix filename generation

Tony Breeds (2):
  block/raw-posix: Fix disk corruption in try_fiemap
  block/raw-posix: use seek_hole ahead of fiemap

Zhang Haoyu (1):
  qcow2: fix leak of Qcow2DiscardRegion in update_refcount_discard

 block-migration.c|  44 ++-
 block.c  | 390 +++
 block/Makefile.objs  |   2 +-
 block/archipelago.c  |  28 +-
 block/backup.c   |   2 +-
 block/blkdebug.c |  18 +-
 block/blkverify.c|  18 +-
 block/block-backend.c| 631 +++
 block/commit.c   |   2 +-
 block/curl.c |   6 +-
 block/iscsi.c|  10 +-
 block/linux-aio.c|   8 +-
 block/mirror.c   |   9 +-
 block/nbd.c  |  44 ++-
 block/null.c |  34 +-
 block/qapi.c |  27 +-
 block/qcow.c |   4 +-
 block/qcow2-refcount.c   |   1 +
 block/qcow2.c|   4 +-
 block/qed-gencb.c|   4 +-
 block/qed-table.c|  10 +-
 block/qed.c  |  46 +--
 block/qed.h  |  12 +-
 block/quorum.c   |  42 +-
 block/raw-aio.h  |   8 +-
 block/raw-posix.c|  38 +-
 block/raw-win32.c|  16 +-
 block/raw_bsd.c  |   8 +-
 block/rbd.c  |  56 +--
 block/sheepdog.c |   4 +-
 block/stream.c   |   2 +-
 block/vdi.c  |   2 +-
 block/vhdx.c |   2 +-
 block/vmdk.c |   4 +-
 block/vpc.c  |   2 +-
 block/vvfat.c|   4 +-
 block/win32-aio.c|   6 +-
 blockdev.c   | 197 --
 blockjob.c   |   7 +-
 device-hotplug.c |   3 +-
 dma-helpers.c|  67 ++--
 docs/blkdebug.txt|   8 +-
 hw/arm/collie.c  |  10 +-
 hw/arm/gumstix.c |   6 +-
 hw/arm/highbank.c|   2 +-
 hw/arm/mainstone.c   |   8 +-
 hw/arm/musicpal.c|  13 +-
 hw/arm/nseries.c |   7 +-
 hw/arm/omap1.c   |   4 +-
 hw/arm/omap2.c   |   4 +-
 hw/arm/omap_sx1.c|  10 +-
 hw/arm/pxa2xx.c  |   7 +-
 hw/arm/realview.c|   2 +-
 

[Qemu-devel] [PULL 00/28] Block patches

2013-03-15 Thread Stefan Hajnoczi
The last block pull request from March 12 broke the virtio-blk serial property
and was not applied.

This pull request includes the patches from March 12, Kevin's fixed [PATCH v2
 0/8] block: Add driver specific options, and patches from this week that I
have applied.

The following changes since commit 4f306496183d81aed4b43762cf3bfd6e054de767:

  qga/main.c: Don't use g_key_file_get/set_int64 (2013-03-15 08:23:54 -0500)

are available in the git repository at:

  git://github.com/stefanha/qemu.git block

for you to fetch changes up to 3618a094022e984d4e045c6db21aed961b7c6fc9:

  blockdev: Fix up copyright and permission notice (2013-03-15 16:07:51 +0100)


Kevin Wolf (8):
  block: Add options QDict to .bdrv_open()
  block: Add options QDict to bdrv_open() prototype
  Add qdict_clone_shallow()
  block: Add options QDict to bdrv_open_common()
  qemu-option: Add qemu_opts_absorb_qdict()
  blockdev: Keep a copy of DriveInfo.serial
  block: Support driver specific options in drive_init()
  qcow2: Allow lazy refcounts to be enabled on the command line

MORITA Kazutaka (2):
  sheepdog: use non-blocking fd in coroutine context
  sheepdog: set io_flush handler in do_co_req

Markus Armbruster (1):
  blockdev: Fix up copyright and permission notice

Paolo Bonzini (3):
  qcow2: make is_allocated return true for zero clusters
  dataplane: fix hang introduced by AioContext transition
  qemu-iotests: add tests for rebasing zero clusters

Stefan Hajnoczi (14):
  qcow2: flush refcount cache correctly in alloc_refcount_block()
  qcow2: flush refcount cache correctly in qcow2_write_snapshots()
  qcow2: set L2 cache dependency in qcow2_alloc_bytes()
  qcow2: flush in qcow2_update_snapshot_refcount()
  qcow2: drop flush in update_cluster_refcount()
  qcow2: drop unnecessary flush in qcow2_update_snapshot_refcount()
  main-loop: add qemu_get_aio_context()
  threadpool: move globals into struct ThreadPool
  threadpool: add thread_pool_new() and thread_pool_free()
  aio: add a ThreadPool instance to AioContext
  block: add bdrv_get_aio_context()
  threadpool: drop global thread pool
  coroutine: use AioContext for CoQueue BH
  qemu-iotests: use -nographic in test case 007

 async.c |  11 ++
 block.c |  87 
 block/blkverify.c   |   2 +-
 block/bochs.c   |   2 +-
 block/cloop.c   |   2 +-
 block/cow.c |   2 +-
 block/dmg.c |   2 +-
 block/parallels.c   |   2 +-
 block/qcow.c|   2 +-
 block/qcow2-cluster.c   |   5 +-
 block/qcow2-refcount.c  |  24 +++--
 block/qcow2-snapshot.c  |  10 +-
 block/qcow2.c   |  49 +++--
 block/qcow2.h   |   1 +
 block/qed.c |   4 +-
 block/raw-posix.c   |   8 +-
 block/raw-win32.c   |   4 +-
 block/raw.c |   2 +-
 block/sheepdog.c|  19 ++--
 block/vdi.c |   2 +-
 block/vmdk.c|   4 +-
 block/vpc.c |   2 +-
 block/vvfat.c   |   2 +-
 blockdev.c  | 105 ---
 hw/dataplane/virtio-blk.c   |  17 +++-
 hw/xen_disk.c   |   2 +-
 include/block/aio.h |   6 ++
 include/block/block.h   |   4 +-
 include/block/block_int.h   |  10 +-
 include/block/coroutine.h   |   1 +
 include/block/thread-pool.h |  15 ++-
 include/qapi/qmp/qdict.h|   2 +
 include/qemu/main-loop.h|   5 +
 include/qemu/option.h   |   1 +
 include/sysemu/blockdev.h   |   2 +-
 main-loop.c |   5 +
 qemu-coroutine-lock.c   |  55 ++
 qemu-img.c  |   6 +-
 qemu-io.c   |   2 +-
 qemu-nbd.c  |   2 +-
 qobject/qdict.c |  22 
 tests/qemu-iotests/007  |   7 +-
 tests/qemu-iotests/050  |  75 ++
 tests/qemu-iotests/050.out  |  17 
 tests/qemu-iotests/group|   1 +
 tests/test-thread-pool.c|  44 
 thread-pool.c   | 243 
 trace-events|   4 +-
 util/qemu-option.c  |  34 +++
 49 files changed, 702 insertions(+), 233 deletions(-)
 create mode 100755 tests/qemu-iotests/050
 create mode 100644 tests/qemu-iotests/050.out

-- 
1.8.1.4




Re: [Qemu-devel] [PULL 00/28] Block patches

2013-03-15 Thread Anthony Liguori
Stefan Hajnoczi stefa...@redhat.com writes:

 The last block pull request from March 12 broke the virtio-blk serial property
 and was not applied.

 This pull request includes the patches from March 12, Kevin's fixed [PATCH v2
  0/8] block: Add driver specific options, and patches from this week that I
 have applied.

When this happens, please add a 'v2' to the pull request.  That makes it
clear that the previous pull request does not need to be processed and
that this one obsoletes it.

Will not impact processing this pull, just a future request.

Regards,

Anthony Liguori


 The following changes since commit 4f306496183d81aed4b43762cf3bfd6e054de767:

   qga/main.c: Don't use g_key_file_get/set_int64 (2013-03-15 08:23:54 -0500)

 are available in the git repository at:

   git://github.com/stefanha/qemu.git block

 for you to fetch changes up to 3618a094022e984d4e045c6db21aed961b7c6fc9:

   blockdev: Fix up copyright and permission notice (2013-03-15 16:07:51 +0100)

 
 Kevin Wolf (8):
   block: Add options QDict to .bdrv_open()
   block: Add options QDict to bdrv_open() prototype
   Add qdict_clone_shallow()
   block: Add options QDict to bdrv_open_common()
   qemu-option: Add qemu_opts_absorb_qdict()
   blockdev: Keep a copy of DriveInfo.serial
   block: Support driver specific options in drive_init()
   qcow2: Allow lazy refcounts to be enabled on the command line

 MORITA Kazutaka (2):
   sheepdog: use non-blocking fd in coroutine context
   sheepdog: set io_flush handler in do_co_req

 Markus Armbruster (1):
   blockdev: Fix up copyright and permission notice

 Paolo Bonzini (3):
   qcow2: make is_allocated return true for zero clusters
   dataplane: fix hang introduced by AioContext transition
   qemu-iotests: add tests for rebasing zero clusters

 Stefan Hajnoczi (14):
   qcow2: flush refcount cache correctly in alloc_refcount_block()
   qcow2: flush refcount cache correctly in qcow2_write_snapshots()
   qcow2: set L2 cache dependency in qcow2_alloc_bytes()
   qcow2: flush in qcow2_update_snapshot_refcount()
   qcow2: drop flush in update_cluster_refcount()
   qcow2: drop unnecessary flush in qcow2_update_snapshot_refcount()
   main-loop: add qemu_get_aio_context()
   threadpool: move globals into struct ThreadPool
   threadpool: add thread_pool_new() and thread_pool_free()
   aio: add a ThreadPool instance to AioContext
   block: add bdrv_get_aio_context()
   threadpool: drop global thread pool
   coroutine: use AioContext for CoQueue BH
   qemu-iotests: use -nographic in test case 007

  async.c |  11 ++
  block.c |  87 
  block/blkverify.c   |   2 +-
  block/bochs.c   |   2 +-
  block/cloop.c   |   2 +-
  block/cow.c |   2 +-
  block/dmg.c |   2 +-
  block/parallels.c   |   2 +-
  block/qcow.c|   2 +-
  block/qcow2-cluster.c   |   5 +-
  block/qcow2-refcount.c  |  24 +++--
  block/qcow2-snapshot.c  |  10 +-
  block/qcow2.c   |  49 +++--
  block/qcow2.h   |   1 +
  block/qed.c |   4 +-
  block/raw-posix.c   |   8 +-
  block/raw-win32.c   |   4 +-
  block/raw.c |   2 +-
  block/sheepdog.c|  19 ++--
  block/vdi.c |   2 +-
  block/vmdk.c|   4 +-
  block/vpc.c |   2 +-
  block/vvfat.c   |   2 +-
  blockdev.c  | 105 ---
  hw/dataplane/virtio-blk.c   |  17 +++-
  hw/xen_disk.c   |   2 +-
  include/block/aio.h |   6 ++
  include/block/block.h   |   4 +-
  include/block/block_int.h   |  10 +-
  include/block/coroutine.h   |   1 +
  include/block/thread-pool.h |  15 ++-
  include/qapi/qmp/qdict.h|   2 +
  include/qemu/main-loop.h|   5 +
  include/qemu/option.h   |   1 +
  include/sysemu/blockdev.h   |   2 +-
  main-loop.c |   5 +
  qemu-coroutine-lock.c   |  55 ++
  qemu-img.c  |   6 +-
  qemu-io.c   |   2 +-
  qemu-nbd.c  |   2 +-
  qobject/qdict.c |  22 
  tests/qemu-iotests/007  |   7 +-
  tests/qemu-iotests/050  |  75 ++
  tests/qemu-iotests/050.out  |  17 
  tests/qemu-iotests/group|   1 +
  tests/test-thread-pool.c|  44 
  thread-pool.c   | 243 
 
  trace-events|   4 +-
  util/qemu-option.c  |  34 +++
  49 files changed, 702 insertions(+), 233 deletions(-)
  create mode 100755 tests/qemu-iotests/050
  create mode 100644 tests/qemu-iotests/050.out

 -- 
 1.8.1.4




[Qemu-devel] [PULL 00/28] Block patches

2011-01-31 Thread Kevin Wolf
The following changes since commit 45d1aa828f8c94b082a0aa2dbf76535594ee45df:

  Update OpenBIOS images to r1018 (2011-01-30 13:10:10 +)

are available in the git repository at:
  git://repo.or.cz/qemu/kevin.git block

Blue Swirl (1):
  qcow2-refcount: remove write-only variables

Christoph Hellwig (3):
  block: add block_resize monitor command
  block: tell drivers about an image resize
  virtio-blk: tell the guest about size changes

Jes Sorensen (6):
  strtosz(): use unsigned char and switch to qemu_isspace()
  strtosz() use qemu_toupper() to simplify switch statement
  strtosz(): Fix name confusion in use of modf()
  strtosz(): Use suffix macros in switch() statement
  Add documentation for STRTOSZ_DEFSUFFIX_ macros
  Reorganize struct Qcow2Cache for better struct packing

Kevin Wolf (3):
  qemu-io: Fix discard command
  qcow2: Add bdrv_discard support
  raw-win32: Fix bdrv_flush return value

MORITA Kazutaka (1):
  sheepdog: support creating images on remote hosts

Markus Armbruster (11):
  scsi hotplug: Set DriveInfo member bus correctly
  blockdev: New drive_get_next(), replacing qdev_init_bdrv()
  blockdev: Move BlockInterfaceType from qemu-common.h to blockdev.h
  blockdev: Put BlockInterfaceType names and max_devs in tables
  blockdev: Fix regression in -drive if=scsi,index=N
  blockdev: Make drive_add() take explicit type, index parameters
  blockdev: Factor drive_index_to_{bus,unit}_id out of drive_init()
  blockdev: New drive_get_by_index()
  blockdev: Reject multiple definitions for the same drive
  blockdev: Replace drive_add()'s fmt, ... by optstr parameter
  blockdev: Fix drive_add for drives without media

Stefan Hajnoczi (3):
  virtio-pci: Disable virtio-ioeventfd when !CONFIG_IOTHREAD
  ahci: Fix cpu_physical_memory_unmap() argument ordering
  qed: Images with backing file do not require QED_F_NEED_CHECK

 block.c|   12 ++-
 block.h|3 +-
 block/qcow2-cache.c|2 +-
 block/qcow2-cluster.c  |   82 +++
 block/qcow2-refcount.c |5 +-
 block/qcow2.c  |8 ++
 block/qcow2.h  |2 +
 block/qed.c|   24 +--
 block/raw-win32.c  |2 +-
 block/sheepdog.c   |   17 -
 block_int.h|5 +-
 blockdev.c |  173 ---
 blockdev.h |   19 --
 cutils.c   |   28 -
 hmp-commands.hx|   19 +
 hw/device-hotplug.c|5 +-
 hw/ide.h   |2 +
 hw/ide/ahci.c  |   11 ++--
 hw/ide/core.c  |6 ++-
 hw/pci-hotplug.c   |1 +
 hw/pl181.c |7 +-
 hw/qdev.c  |   15 
 hw/qdev.h  |2 -
 hw/scsi.h  |3 +-
 hw/sd.c|7 ++-
 hw/ssi-sd.c|7 +-
 hw/usb-msd.c   |3 +-
 hw/virtio-blk.c|   10 +++
 kvm-all.c  |8 ++-
 qemu-common.h  |   13 ++--
 qemu-io.c  |2 +-
 qmp-commands.hx|   28 
 savevm.c   |1 -
 vl.c   |  104 +
 34 files changed, 447 insertions(+), 189 deletions(-)