Re: [Qemu-block] [PULL 00/29] Block layer patches

2018-06-30 Thread Peter Maydell
On 29 June 2018 at 15:09, Kevin Wolf  wrote:
> The following changes since commit 609ef9f451759151d0bfe7c3843410ab94d68f18:
>
>   Merge remote-tracking branch 'remotes/berrange/tags/qio-next-pull-request' 
> into staging (2018-06-28 17:53: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 583c99d39368526dfb57a715b04a6ceea27dbe1e:
>
>   block: Remove unused sector-based vectored I/O (2018-06-29 14:20:56 +0200)
>
> 
> Block layer patches:
>
> - Make truncate operations asynchronous (so that preallocation in
>   blockdev-create doesn't block the main loop any more)
> - usb-storage: Add rerror/werror properties
> - nvme: Add num_queues property
> - qemu-img convert: Copy offloading fixes (including data corruption fix)
> - qcow2: Fix cluster leak on temporary write error
> - Use byte-based functions instead of bdrv_co_readv/writev()
> - Various small fixes and cleanups
>

Applied, thanks.

-- PMM



[Qemu-block] [PULL 00/29] Block layer patches

2018-06-29 Thread Kevin Wolf
The following changes since commit 609ef9f451759151d0bfe7c3843410ab94d68f18:

  Merge remote-tracking branch 'remotes/berrange/tags/qio-next-pull-request' 
into staging (2018-06-28 17:53: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 583c99d39368526dfb57a715b04a6ceea27dbe1e:

  block: Remove unused sector-based vectored I/O (2018-06-29 14:20:56 +0200)


Block layer patches:

- Make truncate operations asynchronous (so that preallocation in
  blockdev-create doesn't block the main loop any more)
- usb-storage: Add rerror/werror properties
- nvme: Add num_queues property
- qemu-img convert: Copy offloading fixes (including data corruption fix)
- qcow2: Fix cluster leak on temporary write error
- Use byte-based functions instead of bdrv_co_readv/writev()
- Various small fixes and cleanups


Eric Blake (8):
  parallels: Switch to byte-based calls
  qcow: Switch get_cluster_offset to be byte-based
  qcow: Switch qcow_co_readv to byte-based calls
  qcow: Switch qcow_co_writev to byte-based calls
  qcow: Switch to a byte-based driver
  replication: Switch to byte-based calls
  vhdx: Switch to byte-based calls
  block: Remove unused sector-based vectored I/O

Fam Zheng (5):
  qcow2: Remove dead check on !ret
  block: Move request tracking to children in copy offloading
  qcow2: Fix src_offset in copy offloading
  iscsi: Don't blindly use designator length in response for memcpy
  file-posix: Fix EINTR handling

Kevin Wolf (12):
  qapi/job: The next release will be 3.0
  usb-storage: Add rerror/werror properties
  qcow2: Fix qcow2_truncate() error return value
  block: Convert .bdrv_truncate callback to coroutine_fn
  qcow2: Remove coroutine trampoline for preallocate_co()
  block: Move bdrv_truncate() implementation to io.c
  block: Use tracked request for truncate
  file-posix: Make .bdrv_co_truncate asynchronous
  qemu-iotests: Update 026.out.nocache reference output
  qcow2: Free allocated clusters on write error
  qemu-iotests: Test qcow2 not leaking clusters on write error
  file-posix: Implement co versions of discard/flush

Markus Armbruster (3):
  block-qdict: Pacify Coverity after commit f1b34a248e9
  block/crypto: Pacify Coverity after commit f853465aacb
  block/crypto: Simplify block_crypto_{open,create}_opts_init()

Weiping Zhang (1):
  hw/block/nvme: add optional parameter num_queues for nvme device

 qapi/job.json  |  18 +-
 block/crypto.h |   8 +-
 block/qcow2.h  |   1 +
 include/block/block.h  |   8 +-
 include/block/block_int.h  |   7 +-
 include/block/raw-aio.h|   4 +-
 include/hw/scsi/scsi.h |   2 +
 block.c|  64 +--
 block/copy-on-read.c   |   8 +-
 block/crypto.c | 112 +++
 block/file-posix.c | 367 +++--
 block/file-win32.c |   6 +-
 block/gluster.c|  14 +-
 block/io.c | 219 +++---
 block/iscsi.c  |  10 +-
 block/nfs.c|   7 +-
 block/parallels.c  |  16 +-
 block/qcow.c   | 135 +++---
 block/qcow2-cluster.c  |  11 ++
 block/qcow2.c  | 140 ++
 block/qed.c|   8 +-
 block/raw-format.c |   8 +-
 block/rbd.c|   8 +-
 block/replication.c|  14 +-
 block/sheepdog.c   |  12 +-
 block/ssh.c|   6 +-
 block/vhdx.c   |  12 +-
 hw/block/nvme.c|   5 +-
 hw/scsi/scsi-bus.c |  11 +-
 hw/usb/dev-storage.c   |   2 +
 qobject/block-qdict.c  |  16 +-
 tests/qemu-iotests/026 |  17 ++
 tests/qemu-iotests/026.out |   8 +
 tests/qemu-iotests/026.out.nocache |  14 +-
 tests/qemu-iotests/063 |   9 +
 tests/qemu-iotests/063.out |  12 ++
 36 files changed, 685 insertions(+), 634 deletions(-)



[Qemu-block] [PULL 00/29] Block layer patches

2018-01-23 Thread Kevin Wolf
The following changes since commit ee86981bda9ecd40c8daf81b7307b1d2aff68174:

  migration: Revert postcopy-blocktime commit set (2018-01-23 10:08:05 +)

are available in the git repository at:

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

for you to fetch changes up to 8c0c5e636e6b11eaf0556be31fceb68e0baff310:

  Merge remote-tracking branch 'mreitz/tags/pull-block-2018-01-23' into 
queue-block (2018-01-23 12:40:46 +0100)


Block layer patches


Daniel Henrique Barboza (1):
  tests/qemu-iotests: adding savevm/loadvm with postcopy flag test

Eric Blake (1):
  iotests: Split 177 into two parts for compat=0.10

Fam Zheng (1):
  osdep: Retry SETLK upon EINTR

Hikaru Nishida (1):
  hw/block: Fix pin-based interrupt behaviour of NVMe

Kevin Wolf (2):
  tests/.gitignore: Add test-bdrv-drain
  Merge remote-tracking branch 'mreitz/tags/pull-block-2018-01-23' into 
queue-block

Max Reitz (24):
  qcow2: Repair unaligned preallocated zero clusters
  iotests: Make BD-{remove,insert}-medium use @id
  tests/ahci: Switch tray and medium commands to @id
  blockdev: Drop BD-{remove,insert}-medium's @device
  blockdev: Mark BD-{remove,insert}-medium stable
  qemu-iotests: Fix locking issue in 102
  block/vmdk: Fix , instead of ; at end of line
  qcow2: No persistent dirty bitmaps for compat=0.10
  block/qcow: Add blkdebug events
  block/vmdk: Add blkdebug events
  iotests: Fix _img_info for backslashes
  iotests: Drop format-specific in _filter_img_info
  iotests: Forbid 020 for non-file protocols
  iotests: Skip 103 for refcount_bits=1
  iotests: Fix 020 for vmdk
  iotests: Fix 051 for compat=0.10
  iotests: Fix 059's reference output
  iotests: Fix 067 for compat=0.10
  iotests: Make 089 compatible with compat=0.10
  iotests: Make 184 image-less
  iotests: Make 191 work with qcow2 options
  iotests: Filter compat-dependent info in 198
  iotests: Make 059 pass on machines with little RAM
  iotests: Disable some tests for compat=0.10

 qapi/block-core.json |  42 ++
 hw/block/nvme.h  |   1 +
 block/qcow.c |  16 ++
 block/qcow2-bitmap.c |  10 ++
 block/qcow2-refcount.c   |  70 +++--
 block/qcow2.c|  14 +-
 block/vmdk.c |  18 ++-
 blockdev.c   |  30 +++-
 hw/block/nvme.c  |  39 -
 tests/ahci-test.c|  16 +-
 util/osdep.c |   4 +-
 tests/.gitignore |   1 +
 tests/qemu-iotests/020   |  17 +--
 tests/qemu-iotests/020.out   |   6 +-
 tests/qemu-iotests/051   |   2 +
 tests/qemu-iotests/051.out   |   1 +
 tests/qemu-iotests/051.pc.out|   1 +
 tests/qemu-iotests/059   |   4 +-
 tests/qemu-iotests/059.out   |   2 +-
 tests/qemu-iotests/060   |   3 +-
 tests/qemu-iotests/060.out   |   9 ++
 tests/qemu-iotests/067   |   3 +-
 tests/qemu-iotests/067.out   |  97 
 tests/qemu-iotests/080   |   5 +-
 tests/qemu-iotests/089   |   4 +-
 tests/qemu-iotests/089.out   |  10 --
 tests/qemu-iotests/093   |   6 +-
 tests/qemu-iotests/102   |   7 +-
 tests/qemu-iotests/102.out   |   3 +-
 tests/qemu-iotests/103   |   2 +
 tests/qemu-iotests/118   | 184 +++
 tests/qemu-iotests/130   |   2 +
 tests/qemu-iotests/137   |   2 +
 tests/qemu-iotests/139   |   2 +-
 tests/qemu-iotests/155   |  60 
 tests/qemu-iotests/176   |   2 +
 tests/qemu-iotests/177   |  20 +--
 tests/qemu-iotests/177.out   |  22 +--
 tests/qemu-iotests/184   |  25 +---
 tests/qemu-iotests/184.out   |  63 ++--
 tests/qemu-iotests/191   |   5 +-
 tests/qemu-iotests/191.out   | 313 +++
 tests/qemu-iotests/198   |   8 +-
 tests/qemu-iotests/198.out   |   8 -
 tests/qemu-iotests/201   | 120 +++
 tests/qemu-iotests/201.out   |  23 +++
 tests/qemu-iotests/204   | 119 +++
 tests/qemu-iotests/204.out   |  63 
 tests/qemu-iotests/common.filter |  29 +++-
 tests/qemu-iotests/common.rc |   2 +-
 tests/qemu-iotests/group |   2 +
 51 files changed, 870 insertions(+), 647 deletions(-)
 create mode 100755 tests/qemu-iotests/201
 create mode 100644 tests/qemu-iotests/201.out
 create mode 100755 tests/qemu-iotests/204
 create mode 100644 tests/qemu-iotests/204.out



[Qemu-block] [PULL 00/29] Block layer patches

2015-10-16 Thread Kevin Wolf
The following changes since commit c49d3411faae8ffaab8f7e5db47405a008411c10:

  Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2015-10-12' into 
staging (2015-10-13 10:42:06 +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 6b826af7b010ed1963b1e7bfb5c389dcdbaff222:

  blkdebug: Don't confuse image as backing file (2015-10-16 15:35:48 +0200)


Block layer patches


Alberto Garcia (2):
  iotests: disable core dumps in test 061
  throttle: test that snapshots move the throttling configuration

Fam Zheng (1):
  blkdebug: Don't confuse image as backing file

Jeff Cody (3):
  block: qemu-iotests - fix vmdk test 059.out
  util - add automated ID generation utility
  block: auto-generated node-names

Kashyap Chamarthy (1):
  qmp-commands.hx: Update the supported 'transaction' operations

Kevin Wolf (19):
  block: Introduce BDS.file_child
  vmdk: Use BdrvChild instead of BDS for references to extents
  blkverify: Convert s->test_file to BdrvChild
  quorum: Convert to BdrvChild
  block: Convert bs->file to BdrvChild
  block: Remove bdrv_open_image()
  block: Convert bs->backing_hd to BdrvChild
  block: Manage backing file references in bdrv_set_backing_hd()
  block: Split bdrv_move_feature_fields()
  block/io: Make bdrv_requests_pending() public
  block-backend: Add blk_set_bs()
  block: Introduce parents list
  block: Implement bdrv_append() without bdrv_swap()
  blockjob: Store device name at job creation
  block: Add and use bdrv_replace_in_backing_chain()
  block: Remove bdrv_swap()
  block: Allow bdrv_unref_child(bs, NULL)
  blkverify: Fix BDS leak in .bdrv_open error path
  qcow2: Remove forward declaration of QCowAIOCB

Stefan Hajnoczi (3):
  raw-posix: warn about BDRV_O_NATIVE_AIO if libaio is unavailable
  blockdev: always compile in -drive aio= parsing
  qemu-nbd: always compile in --aio=MODE option

 block.c  | 512 ---
 block/blkdebug.c |  34 +--
 block/blkverify.c|  71 +++---
 block/block-backend.c|  17 ++
 block/bochs.c|   8 +-
 block/cloop.c|  10 +-
 block/dmg.c  |  20 +-
 block/io.c   |  76 +++---
 block/mirror.c   |  22 +-
 block/parallels.c|  38 +--
 block/qapi.c |  10 +-
 block/qcow.c |  47 ++--
 block/qcow2-cache.c  |  11 +-
 block/qcow2-cluster.c|  41 ++--
 block/qcow2-refcount.c   |  45 ++--
 block/qcow2-snapshot.c   |  30 +--
 block/qcow2.c|  68 +++---
 block/qcow2.h|   2 -
 block/qed-table.c|   4 +-
 block/qed.c  |  51 ++--
 block/quorum.c   |  65 ++---
 block/raw-posix.c|  11 +-
 block/raw_bsd.c  |  40 +--
 block/snapshot.c |  12 +-
 block/stream.c   |  34 +--
 block/vdi.c  |  17 +-
 block/vhdx-log.c |  25 +-
 block/vhdx.c |  36 +--
 block/vmdk.c | 133 +-
 block/vpc.c  |  34 +--
 block/vvfat.c|  19 +-
 blockdev.c   |   8 +-
 blockjob.c   |  15 +-
 include/block/block.h|  15 +-
 include/block/block_int.h|  20 +-
 include/block/blockjob.h |   8 +
 include/qemu-common.h|   8 +
 include/qemu/queue.h |   6 -
 qemu-img.c   |  20 +-
 qemu-nbd.c   |   8 -
 qmp-commands.hx  |  29 ++-
 tests/qemu-iotests/041   |   4 +-
 tests/qemu-iotests/051   |   3 +-
 tests/qemu-iotests/051.out   |   2 +-
 tests/qemu-iotests/059.out   |  12 +-
 tests/qemu-iotests/061   |   8 +-
 tests/qemu-iotests/061.out   |   4 +-
 tests/qemu-iotests/067   |   3 +-
 tests/qemu-iotests/067.out   |   5 +
 tests/qemu-iotests/081   |   3 +-
 tests/qemu-iotests/081.out   |   2 +-
 tests/qemu-iotests/096   |  69 ++
 tests/qemu-iotests/096.out   |   5 +
 tests/qemu-iotests/common.filter |   5 +
 tests/qemu-iotests/group |   1 +
 util/id.c|  37 +++
 56 files changed, 960 insertions(+), 883 deletions(-)
 create mode 100644 tests/qemu-iotests/096
 create mode 100644 tests/qemu-iotests/096.out