[PULL 00/31] Block patches

2020-02-22 Thread Stefan Hajnoczi
The following changes since commit 9ac5df20f51fabcba0d902025df4bd7ea987c158:

  Merge remote-tracking branch 
'remotes/pmaydell/tags/pull-target-arm-20200221-1' into staging (2020-02-21 
16:18:38 +)

are available in the Git repository at:

  https://github.com/stefanha/qemu.git tags/block-pull-request

for you to fetch changes up to e5c59355ae9f724777c61c859292ec9db2c8c2ab:

  fuzz: add documentation to docs/devel/ (2020-02-22 08:26:48 +)


Pull request

This pull request contains a virtio-blk/scsi performance optimization, event
loop scalability improvements, and a qtest-based device fuzzing framework.  I
am including the fuzzing patches because I have reviewed them and Thomas Huth
is currently away on leave.



Alexander Bulekov (22):
  softmmu: move vl.c to softmmu/
  softmmu: split off vl.c:main() into main.c
  module: check module wasn't already initialized
  fuzz: add FUZZ_TARGET module type
  qtest: add qtest_server_send abstraction
  libqtest: add a layer of abstraction to send/recv
  libqtest: make bufwrite rely on the TransportOps
  qtest: add in-process incoming command handler
  libqos: rename i2c_send and i2c_recv
  libqos: split qos-test and libqos makefile vars
  libqos: move useful qos-test funcs to qos_external
  fuzz: add fuzzer skeleton
  exec: keep ram block across fork when using qtest
  main: keep rcu_atfork callback enabled for qtest
  fuzz: support for fork-based fuzzing.
  fuzz: add support for qos-assisted fuzz targets
  fuzz: add target/fuzz makefile rules
  fuzz: add configure flag --enable-fuzzing
  fuzz: add i440fx fuzz targets
  fuzz: add virtio-net fuzz target
  fuzz: add virtio-scsi fuzz target
  fuzz: add documentation to docs/devel/

Denis Plotnikov (1):
  virtio: increase virtqueue size for virtio-scsi and virtio-blk

Paolo Bonzini (1):
  rcu_queue: add QSLIST functions

Stefan Hajnoczi (7):
  aio-posix: avoid reacquiring rcu_read_lock() when polling
  util/async: make bh_aio_poll() O(1)
  aio-posix: fix use after leaving scope in aio_poll()
  aio-posix: don't pass ns timeout to epoll_wait()
  qemu/queue.h: add QLIST_SAFE_REMOVE()
  aio-posix: make AioHandler deletion O(1)
  aio-posix: make AioHandler dispatch O(1) with epoll

 MAINTAINERS |  11 +-
 Makefile|  15 +-
 Makefile.objs   |   2 -
 Makefile.target |  19 ++-
 block.c |   5 +-
 chardev/spice.c |   4 +-
 configure   |  39 +
 docs/devel/fuzzing.txt  | 116 ++
 exec.c  |  12 +-
 hw/block/virtio-blk.c   |   2 +-
 hw/core/machine.c   |   2 +
 hw/scsi/virtio-scsi.c   |   2 +-
 include/block/aio.h |  26 ++-
 include/qemu/module.h   |   4 +-
 include/qemu/queue.h|  32 +++-
 include/qemu/rcu_queue.h|  47 ++
 include/sysemu/qtest.h  |   4 +
 include/sysemu/sysemu.h |   4 +
 qtest.c |  31 +++-
 scripts/checkpatch.pl   |   2 +-
 scripts/get_maintainer.pl   |   3 +-
 softmmu/Makefile.objs   |   3 +
 softmmu/main.c  |  53 +++
 vl.c => softmmu/vl.c|  48 +++---
 tests/Makefile.include  |   2 +
 tests/qtest/Makefile.include|  72 +
 tests/qtest/fuzz/Makefile.include   |  18 +++
 tests/qtest/fuzz/fork_fuzz.c|  55 +++
 tests/qtest/fuzz/fork_fuzz.h|  23 +++
 tests/qtest/fuzz/fork_fuzz.ld   |  37 +
 tests/qtest/fuzz/fuzz.c | 179 +
 tests/qtest/fuzz/fuzz.h |  95 +++
 tests/qtest/fuzz/i440fx_fuzz.c  | 193 ++
 tests/qtest/fuzz/qos_fuzz.c | 234 +++
 tests/qtest/fuzz/qos_fuzz.h |  33 
 tests/qtest/fuzz/virtio_net_fuzz.c  | 198 +++
 tests/qtest/fuzz/virtio_scsi_fuzz.c | 213 +
 tests/qtest/libqos/i2c.c|  10 +-
 tests/qtest/libqos/i2c.h|   4 +-
 tests/qtest/libqos/qos_external.c   | 168 
 tests/qtest/libqos/qos_external.h   |  28 
 tests/qtest/libqtest.c  | 119 --
 tests/qtest/libqtest.h  |   4 +
 tests/qtest/pca9552-test.c  |  10 +-
 tests/qtest/qos-test.c  | 132 +---
 tests/test-aio.c|   3 +-
 tests/test-rcu-list.c   |  16 ++
 tests/test-rcu-slist.c  |   2 +
 util/aio-posix.c| 187 +++---
 util/async.c| 237 
 util/module.c   |   7 +
 51 files changed, 2365 insertions(+), 400 deletions(-)
 creat

[PULL 00/31] Block patches

2020-07-06 Thread Max Reitz
The following changes since commit eb6490f544388dd24c0d054a96dd304bc7284450:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200703' 
into staging (2020-07-04 16:08:41 +0100)

are available in the Git repository at:

  https://github.com/XanClic/qemu.git tags/pull-block-2020-07-06

for you to fetch changes up to 365fed5111b06d31c1632af63c7528dfe49d62a2:

  qed: Simplify backing reads (2020-07-06 10:34:14 +0200)


Block patches for 5.1:
- LUKS keyslot amendment
  (+ patches to make the iotests pass on non-Linux systems, and to keep
 the tests passing for qcow v1, and to skip LUKS tests (including
 qcow2 LUKS) when the built qemu does not support it)
- Refactoring in the block layer: Drop the basically unnecessary
  unallocated_blocks_are_zero field from BlockDriverInfo
- Fix qcow2 preallocation when the image size is not a multiple of the
  cluster size
- Fix in block-copy code


Alberto Garcia (1):
  qcow2: Fix preallocation on images with unaligned sizes

Eric Blake (1):
  qed: Simplify backing reads

Max Reitz (5):
  iotests: Make _filter_img_create more active
  iotests/common.rc: Add _require_working_luks
  iotests.py: Add qemu_img_pipe_and_status()
  iotests.py: Add (verify|has)_working_luks()
  iotests: Check whether luks works

Maxim Levitsky (14):
  iotests: filter few more luks specific create options
  qcrypto/core: add generic infrastructure for crypto options amendment
  qcrypto/luks: implement encryption key management
  block/amend: add 'force' option
  block/amend: separate amend and create options for qemu-img
  block/amend: refactor qcow2 amend options
  block/crypto: rename two functions
  block/crypto: implement the encryption key management
  block/qcow2: extend qemu-img amend interface with crypto options
  iotests: qemu-img tests for luks key management
  block/core: add generic infrastructure for x-blockdev-amend qmp
command
  block/crypto: implement blockdev-amend
  block/qcow2: implement blockdev-amend
  iotests: add tests for blockdev-amend

Vladimir Sementsov-Ogievskiy (10):
  block/block-copy: block_copy_dirty_clusters: fix failure check
  qemu-img: convert: don't use unallocated_blocks_are_zero
  block: inline bdrv_unallocated_blocks_are_zero()
  block/vdi: return ZERO block-status when appropriate
  block/vpc: return ZERO block-status when appropriate
  block/crypto: drop unallocated_blocks_are_zero
  block/iscsi: drop unallocated_blocks_are_zero
  block/file-posix: drop unallocated_blocks_are_zero
  block/vhdx: drop unallocated_blocks_are_zero
  block: drop unallocated_blocks_are_zero

 docs/tools/qemu-img.rst  |   5 +-
 qapi/block-core.json |  68 +
 qapi/crypto.json |  73 +-
 qapi/job.json|   4 +-
 block/crypto.h   |  37 +++
 block/qed.h  |   1 -
 crypto/blockpriv.h   |   8 +
 include/block/block.h|   7 +-
 include/block/block_int.h|  36 ++-
 include/crypto/block.h   |  22 ++
 block.c  |  19 +-
 block/amend.c| 113 +
 block/block-copy.c   |   4 +-
 block/crypto.c   | 207 +--
 block/file-posix.c   |   3 -
 block/io.c   |   8 +-
 block/iscsi.c|   1 -
 block/qcow2.c| 350 +++---
 block/qed.c  |  65 +
 block/vdi.c  |   3 +-
 block/vhdx.c |   3 -
 block/vpc.c  |   3 +-
 crypto/block-luks.c  | 416 ++-
 crypto/block.c   |  29 +++
 qemu-img.c   |  48 ++--
 block/Makefile.objs  |   2 +-
 qemu-img-cmds.hx |   4 +-
 tests/qemu-iotests/049.out   | 102 
 tests/qemu-iotests/061.out   |  12 +-
 tests/qemu-iotests/082.out   | 185 --
 tests/qemu-iotests/085.out   |  38 +--
 tests/qemu-iotests/087   |   1 +
 tests/qemu-iotests/087.out   |   6 +-
 tests/qemu-iotests/112.out   |   2 +-
 tests/qemu-iotests/125   |  24 ++
 tests/qemu-iotests/125.out   |   9 +
 tests/qemu-iotests/134.out   |   2 +-
 tests/qemu-iotests/141   |   2 +-
 tests/qemu-iotests/144.out   |   4 +-
 tests/qemu-iotests/146   |  60 +++--
 tests/qemu-iotests/146.out   | 405 --
 tests/qemu-iotests/153   |   9 +-
 tests/qemu-iotests/158.out   |   4 +-
 tests/qemu-iotests/178   |   1 +
 tests/qemu-iotests/182.out   |   2 +-
 tests/qemu-iotests/185.out   |   8 +-
 tests/qemu-iotests/188   |   1 +
 tests/qemu-iotests/188.out   |   2 +-
 tests/qemu-iotests/189   |   1 +
 tests/qemu-iotests/189.out   |  

Re: [PULL 00/31] Block patches

2020-02-22 Thread no-reply
Patchew URL: 
https://patchew.org/QEMU/20200222085030.1760640-1-stefa...@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [PULL 00/31] Block patches
Message-id: 20200222085030.1760640-1-stefa...@redhat.com
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
 * [new tag] patchew/20200222085030.1760640-1-stefa...@redhat.com -> 
patchew/20200222085030.1760640-1-stefa...@redhat.com
Switched to a new branch 'test'
dc382b1 fuzz: add documentation to docs/devel/
003bbd0 fuzz: add virtio-scsi fuzz target
e8802f9 fuzz: add virtio-net fuzz target
69e13ad fuzz: add i440fx fuzz targets
4083dcb fuzz: add configure flag --enable-fuzzing
c3d2240 fuzz: add target/fuzz makefile rules
7c4d2fb fuzz: add support for qos-assisted fuzz targets
8518c8d fuzz: support for fork-based fuzzing.
6a286ed main: keep rcu_atfork callback enabled for qtest
ed941c7 exec: keep ram block across fork when using qtest
e24313f fuzz: add fuzzer skeleton
408df07 libqos: move useful qos-test funcs to qos_external
d7daac7 libqos: split qos-test and libqos makefile vars
4bceb01 libqos: rename i2c_send and i2c_recv
4ea92f2 qtest: add in-process incoming command handler
0adfc33 libqtest: make bufwrite rely on the TransportOps
780da9f libqtest: add a layer of abstraction to send/recv
bcc084b qtest: add qtest_server_send abstraction
266c2c5 fuzz: add FUZZ_TARGET module type
66b6939 module: check module wasn't already initialized
009494e softmmu: split off vl.c:main() into main.c
28796ad softmmu: move vl.c to softmmu/
6b8a3f7 aio-posix: make AioHandler dispatch O(1) with epoll
b839357 aio-posix: make AioHandler deletion O(1)
5c9397d qemu/queue.h: add QLIST_SAFE_REMOVE()
8cd11b4 aio-posix: don't pass ns timeout to epoll_wait()
4252dd3 aio-posix: fix use after leaving scope in aio_poll()
e850ad8 util/async: make bh_aio_poll() O(1)
3ae8e2d rcu_queue: add QSLIST functions
b593eb3 aio-posix: avoid reacquiring rcu_read_lock() when polling
6fbbd86 virtio: increase virtqueue size for virtio-scsi and virtio-blk

=== OUTPUT BEGIN ===
1/31 Checking commit 6fbbd869010e (virtio: increase virtqueue size for 
virtio-scsi and virtio-blk)
2/31 Checking commit b593eb3a32e9 (aio-posix: avoid reacquiring rcu_read_lock() 
when polling)
3/31 Checking commit 3ae8e2d89202 (rcu_queue: add QSLIST functions)
WARNING: Block comments use a leading /* on a separate line
#29: FILE: include/qemu/queue.h:217:
+} while (/*CONSTCOND*/0)

WARNING: Block comments use a leading /* on a separate line
#64: FILE: include/qemu/rcu_queue.h:278:
+} while (/*CONSTCOND*/0)

WARNING: Block comments use a leading /* on a separate line
#69: FILE: include/qemu/rcu_queue.h:283:
+} while (/*CONSTCOND*/0)

WARNING: Block comments use a leading /* on a separate line
#73: FILE: include/qemu/rcu_queue.h:287:
+} while (/*CONSTCOND*/0)

WARNING: Block comments use a leading /* on a separate line
#86: FILE: include/qemu/rcu_queue.h:300:
+} while (/*CONSTCOND*/0)

ERROR: code indent should never use tabs
#144: FILE: tests/test-rcu-list.c:155:
+^I QSLIST_REMOVE_RCU(&Q_list_head, el, list_element, f)$

WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#156: 
new file mode 100644

total: 1 errors, 6 warnings, 119 lines checked

Patch 3/31 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

4/31 Checking commit e850ad83574b (util/async: make bh_aio_poll() O(1))
5/31 Checking commit 4252dd376d4c (aio-posix: fix use after leaving scope in 
aio_poll())
6/31 Checking commit 8cd11b46c0f8 (aio-posix: don't pass ns timeout to 
epoll_wait())
7/31 Checking commit 5c9397dad943 (qemu/queue.h: add QLIST_SAFE_REMOVE())
WARNING: Block comments use a leading /* on a separate line
#70: FILE: include/qemu/queue.h:159:
+} while (/*CONSTCOND*/0)

total: 0 errors, 1 warnings, 41 lines checked

Patch 7/31 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
8/31 Checking commit b83935774545 (aio-posix: make AioHandler deletion O(1))
9/31 Checking commit 6b8a3f79ba86 (aio-posix: make AioHandler dispatch O(1) 
with epoll)
10/31 Checking commit 28796ad5d822 (softmmu: move vl.c to softmmu/)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#83: 
new file mode 100644

total: 0 errors, 1 warnings, 42 lines checked

Patch 10/31 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
11/31 Checking comm

Re: [PULL 00/31] Block patches

2020-02-24 Thread Stefan Hajnoczi
On Sat, Feb 22, 2020 at 01:13:32AM -0800, no-re...@patchew.org wrote:
> This series seems to have some coding style problems. See output below for
> more information:

The checkpatch warnings are benign:

 * The include/qemu/queue.h coding style warnings are because this is
   code imported to QEMU from elsewhere (BSD?).

 * The 80 character line warnings can be fixed by Alex in a follow-up
   patch.

 * MAINTAINERS changes have been made, but the check is known to report
   false positives (especially if a wildcard M: line is added and then
   new files are introduced later in the series).

Stefan


signature.asc
Description: PGP signature


Re: [PULL 00/31] Block patches

2020-02-24 Thread Peter Maydell
On Sat, 22 Feb 2020 at 08:50, Stefan Hajnoczi  wrote:
>
> The following changes since commit 9ac5df20f51fabcba0d902025df4bd7ea987c158:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20200221-1' into staging (2020-02-21 
> 16:18:38 +)
>
> are available in the Git repository at:
>
>   https://github.com/stefanha/qemu.git tags/block-pull-request
>
> for you to fetch changes up to e5c59355ae9f724777c61c859292ec9db2c8c2ab:
>
>   fuzz: add documentation to docs/devel/ (2020-02-22 08:26:48 +)
>
> 
> Pull request
>
> This pull request contains a virtio-blk/scsi performance optimization, event
> loop scalability improvements, and a qtest-based device fuzzing framework.  I
> am including the fuzzing patches because I have reviewed them and Thomas Huth
> is currently away on leave.


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM



Re: [PULL 00/31] Block patches

2020-07-06 Thread no-reply
Patchew URL: 
https://patchew.org/QEMU/20200706100432.2301919-1-mre...@redhat.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [PULL 00/31] Block patches
Type: series
Message-id: 20200706100432.2301919-1-mre...@redhat.com

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 * [new tag] patchew/20200706100432.2301919-1-mre...@redhat.com -> 
patchew/20200706100432.2301919-1-mre...@redhat.com
Switched to a new branch 'test'
61a6805 qed: Simplify backing reads
8160191 block: drop unallocated_blocks_are_zero
d59b973 block/vhdx: drop unallocated_blocks_are_zero
fc425f8 block/file-posix: drop unallocated_blocks_are_zero
ee4e5f6 block/iscsi: drop unallocated_blocks_are_zero
9aacd22 block/crypto: drop unallocated_blocks_are_zero
4d6c6ad block/vpc: return ZERO block-status when appropriate
42d9c04 block/vdi: return ZERO block-status when appropriate
f73a13e block: inline bdrv_unallocated_blocks_are_zero()
d5d6d75 qemu-img: convert: don't use unallocated_blocks_are_zero
ecc887e iotests: add tests for blockdev-amend
ee66938 block/qcow2: implement blockdev-amend
9254299 block/crypto: implement blockdev-amend
f905f40 block/core: add generic infrastructure for x-blockdev-amend qmp command
5737d94 iotests: qemu-img tests for luks key management
1981eea block/qcow2: extend qemu-img amend interface with crypto options
75ebd25 block/crypto: implement the encryption key management
381affe block/crypto: rename two functions
37d5645 block/amend: refactor qcow2 amend options
2057114 block/amend: separate amend and create options for qemu-img
01ead3a block/amend: add 'force' option
23c67be qcrypto/luks: implement encryption key management
255ed50 qcrypto/core: add generic infrastructure for crypto options amendment
2267d63 iotests: Check whether luks works
a28c683 iotests.py: Add (verify|has)_working_luks()
e4821d5 iotests.py: Add qemu_img_pipe_and_status()
e9500aa iotests/common.rc: Add _require_working_luks
b3b46b5 iotests: filter few more luks specific create options
f872aeb iotests: Make _filter_img_create more active
d327a4c qcow2: Fix preallocation on images with unaligned sizes
9e289b8 block/block-copy: block_copy_dirty_clusters: fix failure check

=== OUTPUT BEGIN ===
1/31 Checking commit 9e289b8e0d77 (block/block-copy: block_copy_dirty_clusters: 
fix failure check)
2/31 Checking commit d327a4c43167 (qcow2: Fix preallocation on images with 
unaligned sizes)
3/31 Checking commit f872aebcf148 (iotests: Make _filter_img_create more active)
4/31 Checking commit b3b46b52bfec (iotests: filter few more luks specific 
create options)
5/31 Checking commit e9500aa71b58 (iotests/common.rc: Add _require_working_luks)
6/31 Checking commit e4821d5b92da (iotests.py: Add qemu_img_pipe_and_status())
7/31 Checking commit a28c683849bf (iotests.py: Add (verify|has)_working_luks())
8/31 Checking commit 2267d63fda82 (iotests: Check whether luks works)
9/31 Checking commit 255ed5095c89 (qcrypto/core: add generic infrastructure for 
crypto options amendment)
10/31 Checking commit 23c67bedd6e4 (qcrypto/luks: implement encryption key 
management)
11/31 Checking commit 01ead3a1b6b0 (block/amend: add 'force' option)
12/31 Checking commit 2057114b7a98 (block/amend: separate amend and create 
options for qemu-img)
ERROR: Macros with multiple statements should be enclosed in a do - while loop
#34: FILE: block/qcow2.c:5663:
+#define QCOW_COMMON_OPTIONS \
+{   \
+.name = BLOCK_OPT_SIZE, \
+.type = QEMU_OPT_SIZE,  \
+.help = "Virtual disk size" \
+},  \
+{   \
+.name = BLOCK_OPT_COMPAT_LEVEL, \
+.type = QEMU_OPT_STRING,\
+.help = "Compatibility level (v2 [0.10] or v3 [1.1])"   \
+},  \
+{   \
+.name = BLOCK_OPT_BACKING_FILE, \
+.type = QEMU_OPT_STRING,\
+.help = "File name of a base image" \
+},  \
+{   \
+.name = BLOCK_OPT_BACKI

Re: [PULL 00/31] Block patches

2020-07-07 Thread Peter Maydell
On Mon, 6 Jul 2020 at 11:04, Max Reitz  wrote:
>
> The following changes since commit eb6490f544388dd24c0d054a96dd304bc7284450:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20200703' into staging (2020-07-04 
> 16:08:41 +0100)
>
> are available in the Git repository at:
>
>   https://github.com/XanClic/qemu.git tags/pull-block-2020-07-06
>
> for you to fetch changes up to 365fed5111b06d31c1632af63c7528dfe49d62a2:
>
>   qed: Simplify backing reads (2020-07-06 10:34:14 +0200)
>
> 
> Block patches for 5.1:
> - LUKS keyslot amendment
>   (+ patches to make the iotests pass on non-Linux systems, and to keep
>  the tests passing for qcow v1, and to skip LUKS tests (including
>  qcow2 LUKS) when the built qemu does not support it)
> - Refactoring in the block layer: Drop the basically unnecessary
>   unallocated_blocks_are_zero field from BlockDriverInfo
> - Fix qcow2 preallocation when the image size is not a multiple of the
>   cluster size
> - Fix in block-copy code
>



Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
for any user-visible changes.

-- PMM



Re: [PULL 00/31] Block patches

2020-07-08 Thread Kevin Wolf
Am 08.07.2020 um 17:11 hat Maxim Levitsky geschrieben:
> On Tue, 2020-07-07 at 21:40 +0100, Peter Maydell wrote:
> > Applied, thanks.
> > 
> > Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
> > for any user-visible changes.
> 
> Since this includes my luks patches, I guess I need to add them to this 
> changelog.
> How do I get an account on the wiki?

For the record, I contacted Maxim on IRC and created an account for him.

Kevin




Re: [PULL 00/31] Block patches

2020-07-08 Thread Maxim Levitsky
On Wed, 2020-07-08 at 18:11 +0300, Maxim Levitsky wrote:
> On Tue, 2020-07-07 at 21:40 +0100, Peter Maydell wrote:
> > On Mon, 6 Jul 2020 at 11:04, Max Reitz  wrote:
> > > The following changes since commit 
> > > eb6490f544388dd24c0d054a96dd304bc7284450:
> > > 
> > >   Merge remote-tracking branch 
> > > 'remotes/pmaydell/tags/pull-target-arm-20200703' into staging (2020-07-04 
> > > 16:08:41 +0100)
> > > 
> > > are available in the Git repository at:
> > > 
> > >   https://github.com/XanClic/qemu.git tags/pull-block-2020-07-06
> > > 
> > > for you to fetch changes up to 365fed5111b06d31c1632af63c7528dfe49d62a2:
> > > 
> > >   qed: Simplify backing reads (2020-07-06 10:34:14 +0200)
> > > 
> > > 
> > > Block patches for 5.1:
> > > - LUKS keyslot amendment
> > >   (+ patches to make the iotests pass on non-Linux systems, and to keep
> > >  the tests passing for qcow v1, and to skip LUKS tests (including
> > >  qcow2 LUKS) when the built qemu does not support it)
> > > - Refactoring in the block layer: Drop the basically unnecessary
> > >   unallocated_blocks_are_zero field from BlockDriverInfo
> > > - Fix qcow2 preallocation when the image size is not a multiple of the
> > >   cluster size
> > > - Fix in block-copy code
> > > 
> > 
> > Applied, thanks.
> > 
> > Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
> > for any user-visible changes.
> 
> Since this includes my luks patches, I guess I need to add them to this 
> changelog.
> How do I get an account on the wiki?

Kevin Wolf gave me an account, so I'll write today a short description in the 
changelog.
Thanks for everyone that helped me get this merged upstream!

Best regards,
Maxim Levitsky
> 
> Best regards,
>   Maxim Levitsky
> 
> > -- PMM
> > 





Re: [PULL 00/31] Block patches

2020-07-08 Thread Maxim Levitsky
On Tue, 2020-07-07 at 21:40 +0100, Peter Maydell wrote:
> On Mon, 6 Jul 2020 at 11:04, Max Reitz  wrote:
> > The following changes since commit eb6490f544388dd24c0d054a96dd304bc7284450:
> > 
> >   Merge remote-tracking branch 
> > 'remotes/pmaydell/tags/pull-target-arm-20200703' into staging (2020-07-04 
> > 16:08:41 +0100)
> > 
> > are available in the Git repository at:
> > 
> >   https://github.com/XanClic/qemu.git tags/pull-block-2020-07-06
> > 
> > for you to fetch changes up to 365fed5111b06d31c1632af63c7528dfe49d62a2:
> > 
> >   qed: Simplify backing reads (2020-07-06 10:34:14 +0200)
> > 
> > 
> > Block patches for 5.1:
> > - LUKS keyslot amendment
> >   (+ patches to make the iotests pass on non-Linux systems, and to keep
> >  the tests passing for qcow v1, and to skip LUKS tests (including
> >  qcow2 LUKS) when the built qemu does not support it)
> > - Refactoring in the block layer: Drop the basically unnecessary
> >   unallocated_blocks_are_zero field from BlockDriverInfo
> > - Fix qcow2 preallocation when the image size is not a multiple of the
> >   cluster size
> > - Fix in block-copy code
> > 
> 
> 
> Applied, thanks.
> 
> Please update the changelog at https://wiki.qemu.org/ChangeLog/5.1
> for any user-visible changes.

Since this includes my luks patches, I guess I need to add them to this 
changelog.
How do I get an account on the wiki?

Best regards,
Maxim Levitsky

> 
> -- PMM
> 





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

2011-09-06 Thread Kevin Wolf
The following changes since commit f69539b14bdba7a5cd22e1f4bed439b476b17286:

  apb_pci: convert PCI space to memory API (2011-09-04 09:28:04 +)

are available in the git repository at:
  git://repo.or.cz/qemu/kevin.git for-anthony

Fam Zheng (8):
  VMDK: enable twoGbMaxExtentFlat
  VMDK: add twoGbMaxExtentSparse support
  VMDK: separate vmdk_read_extent/vmdk_write_extent
  VMDK: Opening compressed extent.
  VMDK: read/write compressed extent
  VMDK: creating streamOptimized subformat
  VMDK: bugfix, open Haiku vmdk image
  VMDK: bugfix, opening vSphere 4 exported image

Frediano Ziglio (1):
  linux aio: some comments

Kevin Wolf (3):
  qcow2: Properly initialise QcowL2Meta
  qcow2: Fix error cases to run depedent requests
  async: Allow nested qemu_bh_poll calls

Markus Armbruster (14):
  block: Attach non-qdev devices as well
  block: Generalize change_cb() to BlockDevOps
  block: Split change_cb() into change_media_cb(), resize_cb()
  ide: Update command code definitions as per ACS-2 Table B.2
  ide: Clean up case label indentation in ide_exec_cmd()
  ide: Give vmstate structs internal linkage where possible
  block/raw: Fix to forward method bdrv_media_changed()
  block: Leave tracking media change to device models
  fdc: Make media change detection more robust
  block: Clean up bdrv_flush_all()
  savevm: Include writable devices with removable media
  xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD"
  spitz tosa: Simplify "drive is suitable for microdrive" test
  block: Declare qemu_blockalign() in block.h, not block_int.h

Paolo Bonzini (5):
  scsi: execute SYNCHRONIZE_CACHE asynchronously
  scsi: fix accounting of writes
  scsi: refine constants for READ CAPACITY 16
  scsi: fill in additional sense length correctly
  scsi: improve MODE SENSE emulation

 async.c  |   24 +++-
 block.c  |  104 ---
 block.h  |   28 +++-
 block/qcow2.c|   12 +-
 block/raw-posix.c|4 +
 block/raw.c  |7 +
 block/vmdk.c |  346 +++---
 block_int.h  |   14 +--
 blockdev.c   |5 +-
 hw/fdc.c |   46 
 hw/ide/core.c|   35 +++---
 hw/ide/internal.h|  171 +
 hw/ide/piix.c|7 +-
 hw/pflash_cfi01.c|1 +
 hw/pflash_cfi02.c|1 +
 hw/qdev-properties.c |6 +-
 hw/scsi-bus.c|6 +-
 hw/scsi-defs.h   |8 +-
 hw/scsi-disk.c   |  157 +--
 hw/sd.c  |   14 +-
 hw/spitz.c   |   10 +-
 hw/tosa.c|   10 +-
 hw/usb-msd.c |2 +-
 hw/virtio-blk.c  |   12 +-
 hw/xen_disk.c|1 +
 linux-aio.c  |1 +
 savevm.c |4 +-
 27 files changed, 652 insertions(+), 384 deletions(-)



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

2014-04-30 Thread Kevin Wolf
The following changes since commit e2da502c003b9a91b4aea7684959192bd07c1f1d:

  Merge remote-tracking branch 'remotes/otubo/seccomp' into staging (2014-04-28 
14:14:35 +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 b7079df4100069959f4e9d90d5cb5ba7d4ebbf1a:

  curl: Fix hang reading from slow connections (2014-04-30 16:34:21 +0200)


Block patches


Fam Zheng (3):
  mirror: Use DIV_ROUND_UP
  mirror: Fix resource leak when bdrv_getlength fails
  mirror: Check for bdrv_get_info result

Jeff Cody (5):
  block: fix qemu-img --help invocation
  block: Add '--version' option to qemu-img
  block: Ignore duplicate or NULL format_name in bdrv_iterate_format
  block: qemu-iotests - fix image cleanup when using spaced pathnames
  block: qemu-iotests: make test 019 and 086 work with spaced pathnames

Kevin Wolf (6):
  block: Create bdrv_inherited_flags()
  block: Create bdrv_backing_flags()
  block: Remove BDRV_O_COPY_ON_READ for bs->file
  block: Unlink temporary files in raw-posix/win32
  Revert "block: another bdrv_append fix"
  block: Fix open_flags in bdrv_reopen()

Matthew Booth (8):
  curl: Fix long line
  curl: Remove unnecessary use of goto
  curl: Fix return from curl_read_cb with invalid state
  curl: Remove erroneous sleep waiting for curl completion
  curl: Remove unnecessary explicit calls to internal event handler
  curl: Eliminate unnecessary use of curl_multi_socket_all
  curl: Ensure all informationals are checked for completion
  curl: Fix hang reading from slow connections

Max Reitz (9):
  qcow2: Fix discard
  iotests: Discarding compressed clusters on qcow2
  block: Use error_abort in bdrv_image_info_specific_dump()
  qcow2: Avoid overflow in alloc_clusters_noref()
  block: Use correct width in format strings
  qcow2: Catch bdrv_getlength() error
  qcow2: Check min_size in qcow2_grow_l1_table()
  block/bochs: Fix error handling for seek_to_sector()
  block/vdi: Error out immediately in vdi_create()

 block.c  | 108 --
 block/bochs.c|  23 ---
 block/cow.c  |   2 +-
 block/curl.c | 153 ++-
 block/dmg.c  |   8 +--
 block/mirror.c   |  11 ++--
 block/qapi.c |   3 +-
 block/qcow.c |   3 +-
 block/qcow2-cluster.c|  33 +++---
 block/qcow2-refcount.c   |  12 
 block/qcow2.c|  12 ++--
 block/raw-posix.c|   5 +-
 block/raw-win32.c|   3 +
 block/sheepdog.c |   6 +-
 block/vdi.c  |  28 
 include/block/block.h|   1 +
 include/block/block_int.h|   1 -
 qemu-img.c   |  26 ++--
 tests/qemu-iotests/019   |   2 +-
 tests/qemu-iotests/086   |   8 +--
 tests/qemu-iotests/090   |  61 +
 tests/qemu-iotests/090.out   |  12 
 tests/qemu-iotests/common.rc |   4 +-
 tests/qemu-iotests/group |   1 +
 24 files changed, 355 insertions(+), 171 deletions(-)
 create mode 100755 tests/qemu-iotests/090
 create mode 100644 tests/qemu-iotests/090.out



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

2011-09-08 Thread Anthony Liguori

On 09/06/2011 10:39 AM, Kevin Wolf wrote:

The following changes since commit f69539b14bdba7a5cd22e1f4bed439b476b17286:

   apb_pci: convert PCI space to memory API (2011-09-04 09:28:04 +)

are available in the git repository at:
   git://repo.or.cz/qemu/kevin.git for-anthony



Pulled.  Thanks.

Regards,

Anthony Liguori



Fam Zheng (8):
   VMDK: enable twoGbMaxExtentFlat
   VMDK: add twoGbMaxExtentSparse support
   VMDK: separate vmdk_read_extent/vmdk_write_extent
   VMDK: Opening compressed extent.
   VMDK: read/write compressed extent
   VMDK: creating streamOptimized subformat
   VMDK: bugfix, open Haiku vmdk image
   VMDK: bugfix, opening vSphere 4 exported image

Frediano Ziglio (1):
   linux aio: some comments

Kevin Wolf (3):
   qcow2: Properly initialise QcowL2Meta
   qcow2: Fix error cases to run depedent requests
   async: Allow nested qemu_bh_poll calls

Markus Armbruster (14):
   block: Attach non-qdev devices as well
   block: Generalize change_cb() to BlockDevOps
   block: Split change_cb() into change_media_cb(), resize_cb()
   ide: Update command code definitions as per ACS-2 Table B.2
   ide: Clean up case label indentation in ide_exec_cmd()
   ide: Give vmstate structs internal linkage where possible
   block/raw: Fix to forward method bdrv_media_changed()
   block: Leave tracking media change to device models
   fdc: Make media change detection more robust
   block: Clean up bdrv_flush_all()
   savevm: Include writable devices with removable media
   xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD"
   spitz tosa: Simplify "drive is suitable for microdrive" test
   block: Declare qemu_blockalign() in block.h, not block_int.h

Paolo Bonzini (5):
   scsi: execute SYNCHRONIZE_CACHE asynchronously
   scsi: fix accounting of writes
   scsi: refine constants for READ CAPACITY 16
   scsi: fill in additional sense length correctly
   scsi: improve MODE SENSE emulation

  async.c  |   24 +++-
  block.c  |  104 ---
  block.h  |   28 +++-
  block/qcow2.c|   12 +-
  block/raw-posix.c|4 +
  block/raw.c  |7 +
  block/vmdk.c |  346 +++---
  block_int.h  |   14 +--
  blockdev.c   |5 +-
  hw/fdc.c |   46 
  hw/ide/core.c|   35 +++---
  hw/ide/internal.h|  171 +
  hw/ide/piix.c|7 +-
  hw/pflash_cfi01.c|1 +
  hw/pflash_cfi02.c|1 +
  hw/qdev-properties.c |6 +-
  hw/scsi-bus.c|6 +-
  hw/scsi-defs.h   |8 +-
  hw/scsi-disk.c   |  157 +--
  hw/sd.c  |   14 +-
  hw/spitz.c   |   10 +-
  hw/tosa.c|   10 +-
  hw/usb-msd.c |2 +-
  hw/virtio-blk.c  |   12 +-
  hw/xen_disk.c|1 +
  linux-aio.c  |1 +
  savevm.c |4 +-
  27 files changed, 652 insertions(+), 384 deletions(-)







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

2014-05-02 Thread Peter Maydell
On 30 April 2014 19:23, Kevin Wolf  wrote:
> The following changes since commit e2da502c003b9a91b4aea7684959192bd07c1f1d:
>
>   Merge remote-tracking branch 'remotes/otubo/seccomp' into staging 
> (2014-04-28 14:14:35 +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 b7079df4100069959f4e9d90d5cb5ba7d4ebbf1a:
>
>   curl: Fix hang reading from slow connections (2014-04-30 16:34:21 +0200)
>
> 
> Block patches

Applied, thanks.

-- PMM