Re: [PATCH 0/2] replace sysconf(_SC_PAGESIZE) with qemu_real_host_page_size

2019-11-08 Thread Wei Yang
On Tue, Oct 15, 2019 at 11:13:48AM +0800, Wei Yang wrote: >This is a following up patch to cleanup page size, suggested by >"Dr. David Alan Gilbert" . > >Patch 2 does the job, while during the cleanup I found test-mmap.c has quite a >lot code style problem. To make the code looks good, patch 1 is i

Re: [RFC v5 024/126] error: auto propagated local_err

2019-11-08 Thread Eric Blake
On 11/8/19 3:10 PM, Marc-André Lureau wrote: +/* + * ERRP_AUTO_PROPAGATE + * + * This macro is created to be the first line of a function with Error **errp + * OUT parameter. It's needed only in cases where we want to use error_prepend, + * error_append_hint or dereference *errp. It's still safe

Re: [RFC v5 026/126] python: add commit-per-subsystem.py

2019-11-08 Thread Marc-André Lureau
Hi On Fri, Oct 11, 2019 at 9:11 PM Vladimir Sementsov-Ogievskiy wrote: > > Add script to automatically commit tree-wide changes per-subsystem. Oh interesting! I guess it could use a --help or a larger commit message to explain a bit what it does (I imagine from the rest of the series, but someon

Re: [RFC v5 024/126] error: auto propagated local_err

2019-11-08 Thread Marc-André Lureau
On Fri, Oct 11, 2019 at 10:11 PM Vladimir Sementsov-Ogievskiy wrote: > > Here is introduced ERRP_AUTO_PROPAGATE macro, to be used at start of > functions with errp OUT parameter. > > It has three goals: > > 1. Fix issue with error_fatal & error_prepend/error_append_hint: user > can't see this addi

Re: [PATCH v2 0/1] virtio: fix IO request length in virtio SCSI/block

2019-11-08 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191108134249.19004-1-dplotni...@virtuozzo.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEG

Re: [RFC v5 000/126] error: auto propagated local_err

2019-11-08 Thread Marc-André Lureau
Hi On Fri, Nov 8, 2019 at 7:31 PM Vladimir Sementsov-Ogievskiy wrote: > > Finally, what is the plan? > > Markus what do you think? > > Now a lot of patches are reviewed, but a lot of are not. > > Is there any hope that all patches will be reviewed? Should I resend the > whole series, or may be re

Re: [RFC PATCH 12/18] stubs: Update monitor stubs for qemu-storage-daemon

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > Before we can add the monitor to qemu-storage-daemon, we need to add a > few monitor stubs, I can see just one: monitor_fdsets_cleanup(). >and we need to make sure that stubs that are actually > implemented in the monitor core aren't linked so that we do

Re: [RFC PATCH 10/18] qemu-storage-daemon: Add --chardev option

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > This adds a --chardev option to the storage daemon that works the same > as the -chardev option of the system emulator. > > Signed-off-by: Kevin Wolf > --- > qemu-storage-daemon.c | 19 +++ > Makefile | 2 +- > 2 files changed, 20 insertions(+)

Re: [PATCH v2 3/3] trace: Forbid dynamic field width in event format

2019-11-08 Thread Eric Blake
On 11/8/19 8:40 AM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: +++ b/scripts/tracetool/__init__.py @@ -206,6 +206,7 @@ class Event(object):

Re: [PATCH v2 2/3] hw/mips/gt64xxx: Remove dynamic field width from trace events

2019-11-08 Thread Eric Blake
On 11/8/19 8:40 AM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu

Re: [RFC PATCH 09/18] qemu-storage-daemon: Add main loop

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > Instead of exiting after processing all command line options, start a > main loop and keep processing events until exit is requested with a > signal (e.g. SIGINT). > > Now qemu-storage-daemon can be used as an alternative for qemu-nbd that > provides a few features that were

Re: [RFC PATCH 08/18] qemu-storage-daemon: Add --export option

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > Am 06.11.2019 um 14:11 hat Max Reitz geschrieben: >> On 17.10.19 15:01, Kevin Wolf wrote: >> > Add a --export option to qemu-storage-daemon to export a block node. For >> > now, only NBD exports are implemented. Apart from the 'type' option >> > (which is the implied key), it

Re: [PATCH v2 1/3] hw/block/pflash: Remove dynamic field width from trace events

2019-11-08 Thread Eric Blake
On 11/8/19 8:40 AM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu

Re: [RFC PATCH v2 14/26] qcow2: Add subcluster support to qcow2_get_cluster_offset()

2019-11-08 Thread Alberto Garcia
On Mon 04 Nov 2019 03:58:57 PM CET, Max Reitz wrote: > OTOH, what I don’t like so far about this series is that the “cluster > logic” is still everywhere when I think it should just be about > subclusters now. (Except in few places where it must be about > clusters as in something that can have a

Re: [RFC PATCH 06/18] qemu-storage-daemon: Add --nbd-server option

2019-11-08 Thread Markus Armbruster
Max Reitz writes: > On 17.10.19 15:01, Kevin Wolf wrote: >> Add a --nbd-server option to qemu-storage-daemon to start the built-in >> NBD server right away. It maps the arguments for nbd-server-start to the >> command line. > > Well, it doesn’t quite, because nbd-server-start takes a > SocketAddr

Re: [Qemu-devel] [PATCH v2 08/11] block/crypto: implement blockdev-amend

2019-11-08 Thread Maxim Levitsky
On Mon, 2019-10-07 at 09:58 +0200, Markus Armbruster wrote: > Maxim Levitsky writes: > > > Signed-off-by: Maxim Levitsky > > Reviewed-by: Daniel P. Berrangé > > --- > > [...] > > diff --git a/qapi/block-core.json b/qapi/block-core.json > > index 7900914506..4a6db98938 100644 > > --- a/qapi/blo

Re: [PATCH v3 01/22] iotests: s/qocw2/qcow2/

2019-11-08 Thread Maxim Levitsky
On Thu, 2019-11-07 at 17:36 +0100, Max Reitz wrote: > Probably due to blind copy-pasting, we have several instances of "qocw2" > in our iotests. Fix them. > > Reported-by: Maxim Levitsky > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/060 | 2 +- > tests/qemu-iotests/061 | 2 +- > tests/

Re: [Qemu-devel] [PATCH v2 07/11] block: add x-blockdev-amend qmp command

2019-11-08 Thread Maxim Levitsky
On Mon, 2019-10-07 at 09:53 +0200, Markus Armbruster wrote: > Maxim Levitsky writes: > > > Signed-off-by: Maxim Levitsky > > --- > > [...] > > diff --git a/qapi/block-core.json b/qapi/block-core.json > > index e6edd641f1..7900914506 100644 > > --- a/qapi/block-core.json > > +++ b/qapi/block-cor

Re: [RFC PATCH v2 13/26] qcow2: Add subcluster support to calculate_l2_meta()

2019-11-08 Thread Alberto Garcia
On Mon 04 Nov 2019 03:21:41 PM CET, Max Reitz wrote: >> If an image has subclusters then there are more copy-on-write >> scenarios that we need to consider. Let's say we have a write request >> from the middle of subcluster #3 until the end of the cluster: >> >>- If the cluster is new, then su

Re: [PATCH v2 09/11] block/qcow2: implement blockdev-amend

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 21:03 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > Currently only for changing crypto parameters > > Yep, that elegantly avoids most of the problems we’d have otherwise. :-) > > > Signed-off-by: Maxim Levitsky > > --- > > block/qcow2.c| 71

Re: [PATCH for-5.0 v4 3/5] blkdebug: Allow taking/unsharing permissions

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
08.11.2019 15:34, Max Reitz wrote: > Sometimes it is useful to be able to add a node to the block graph that > takes or unshare a certain set of permissions for debugging purposes. > This patch adds this capability to blkdebug. > > (Note that you cannot make blkdebug release or share permissions t

Re: [PATCH v2 09/11] block/qcow2: implement blockdev-amend

2019-11-08 Thread Maxim Levitsky
On Mon, 2019-10-07 at 10:04 +0200, Markus Armbruster wrote: > Max Reitz writes: > > > On 13.09.19 00:30, Maxim Levitsky wrote: > > > Currently only for changing crypto parameters > > > > Yep, that elegantly avoids most of the problems we’d have otherwise. :-) > > > > > Signed-off-by: Maxim Levi

Re: [RFC v5 000/126] error: auto propagated local_err

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
Finally, what is the plan? Markus what do you think? Now a lot of patches are reviewed, but a lot of are not. Is there any hope that all patches will be reviewed? Should I resend the whole series, or may be reduce it to reviewed subsystems only? 11.10.2019 19:03, Vladimir Sementsov-Ogievskiy wr

Re: [PATCH v2 00/11] RFC crypto/luks: encryption key managment using amend interface

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 21:10 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > This patch series is continuation of my work to add encryption > > key managment to luks/qcow2 with luks. > > > > This is second version of this patch set. > > The changes are mostly addressing the r

[PATCH v2 2/3] hw/mips/gt64xxx: Remove dynamic field width from trace events

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu-Daudé --- v2: Do not update qemu_log_mask() --- h

[PATCH v2 3/3] trace: Forbid dynamic field width in event format

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: $ make [...] GEN hw/block/trace.h Traceback (most recent call last): File "scripts/tracetool.py", line 152, in mai

[PATCH v2 1/3] hw/block/pflash: Remove dynamic field width from trace events

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 8 h

[PATCH v2 0/3] hw: Remove dynamic field width from trace events

2019-11-08 Thread Philippe Mathieu-Daudé
Eric noted in [1] the dtrace via stap backend can not support the dynamic '*' width format. I'd really like to use dynamic width in trace event because the read/write accesses are easier to read but it is not a priority. Since next release is close, time to fix LP#1844817 [2]. Since v1: - Do not u

Re: [PATCH 2/3] hw/mips/gt64xxx: Remove dynamic field width from trace event

2019-11-08 Thread Philippe Mathieu-Daudé
On 11/8/19 3:26 PM, Philippe Mathieu-Daudé wrote: Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu

Re: [PATCH 1/2] block: Remove 'backing': null from bs->{explicit_, }options

2019-11-08 Thread Alberto Garcia
On Fri 08 Nov 2019 09:53:11 AM CET, Kevin Wolf wrote: > bs->options and bs->explicit_options shouldn't contain any options for > child nodes. bdrv_open_inherited() takes care to remove any options that > match a child name after opening the image and the same is done when > reopening. > > However,

Re: [PATCH 2/2] iotests: Test multiple blockdev-snapshot calls

2019-11-08 Thread Alberto Garcia
On Fri 08 Nov 2019 09:53:12 AM CET, Kevin Wolf wrote: > +# Test large write to a qcow2 image This doesn't belong here I guess :) I wonder if this test could go in 245 instead. Berto

[PATCH 3/3] trace: Forbid dynamic field width in event format

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), forbid them. Add a check to refuse field width in new formats: $ make [...] GEN hw/block/trace.h Traceback (most recent call last): File "scripts/tracetool.py", line 152, in mai

[PATCH 1/3] hw/block/pflash: Remove dynamic field width from trace event

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu-Daudé --- hw/block/pflash_cfi01.c | 8 h

[PATCH 2/3] hw/mips/gt64xxx: Remove dynamic field width from trace event

2019-11-08 Thread Philippe Mathieu-Daudé
Since not all trace backends support dynamic field width in format (dtrace via stap does not), replace by a static field width instead. Reported-by: Eric Blake Buglink: https://bugs.launchpad.net/qemu/+bug/1844817 Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/gt64xxx_pci.c | 34

[PATCH 0/3] hw: Remove dynamic field width from trace event

2019-11-08 Thread Philippe Mathieu-Daudé
Eric noted in [1] the dtrace via stap backend can not support the dynamic '*' width format. I'd really like to use dynamic width in trace event because the read/write accesses are easier to read but it is not a priority. Since next release is close, time to fix LP#1844817 [2]. [1] https://lists.gn

Re: [PATCH v2 1/1] virtio: make seg_max virtqueue size dependent

2019-11-08 Thread Michael S. Tsirkin
On Fri, Nov 08, 2019 at 04:42:49PM +0300, Denis Plotnikov wrote: > seg_max has a restriction to be less or equal to virtqueue size > according to Virtio 1.0 specification > > Although seg_max can't be set directly, it's worth to express this > dependancy directly in the code for sanity purpose. >

Re: [PATCH v2 2/2] qapi: deprecate implicit filters

2019-11-08 Thread Peter Krempa
On Fri, Nov 08, 2019 at 13:56:03 +, Vladimir Sementsov-Ogievskiy wrote: > 08.11.2019 16:27, Peter Krempa wrote: > > On Fri, Nov 08, 2019 at 13:16:55 +0300, Vladimir Sementsov-Ogievskiy wrote: [...] > > Note that 'block-commit' and 'drive-mirror' commands are used by libvirt > > in the pre-blo

Re: [PATCH for-5.0 v4 2/5] block: Use bdrv_qapi_perm_to_blk_perm()

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
08.11.2019 15:34, Max Reitz wrote: > We can save some LoC in xdbg_graph_add_edge() by using > bdrv_qapi_perm_to_blk_perm(). > > Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy > --- > block.c | 29 - > 1 file changed, 8 insertions(+), 21 deleti

Re: [PATCH for-5.0 v4 1/5] block: Add bdrv_qapi_perm_to_blk_perm()

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
08.11.2019 15:34, Max Reitz wrote: > We need some way to correlate QAPI BlockPermission values with > BLK_PERM_* flags. We could: > > (1) have the same order in the QAPI definition as the the BLK_PERM_* > flags are in LSb-first order. However, then there is no guarantee > that they act

Re: [PATCH v3] iotests: Test NBD client reconnection

2019-11-08 Thread Roman Kagan
On Fri, Nov 08, 2019 at 01:49:50PM +, Vladimir Sementsov-Ogievskiy wrote: > 01.11.2019 19:54, Andrey Shinkevich wrote: > > +def check_proc_NBD(proc, connector): > > +try: > > +exitcode = proc.wait(timeout=10) > > + > > +if exitcode < 0: > > +log('NBD {}: EXIT SIG

Re: [PATCH v2 2/2] qapi: deprecate implicit filters

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
08.11.2019 16:27, Peter Krempa wrote: > On Fri, Nov 08, 2019 at 13:16:55 +0300, Vladimir Sementsov-Ogievskiy wrote: >> To get rid of implicit filters related workarounds in future let's >> deprecate them now. >> >> Deprecation warning breaks some bash iotests output, so fix it here >> too: in most

Re: [PATCH v3] iotests: Test NBD client reconnection

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
01.11.2019 19:54, Andrey Shinkevich wrote: > The test for an NBD client. The NBD server is disconnected after the > client write request. The NBD client should reconnect and complete > the write operation. > > Suggested-by: Denis V. Lunev > Suggested-by: Vladimir Sementsov-Ogievskiy > Signed-off

[PATCH v2 0/1] virtio: fix IO request length in virtio SCSI/block

2019-11-08 Thread Denis Plotnikov
v2: * the standalone patch to make seg_max virtqueue size dependent * other patches are postponed v1: the initial series Denis Plotnikov (1): virtio: make seg_max virtqueue size dependent hw/block/virtio-blk.c | 2 +- hw/scsi/virtio-scsi.c | 2 +- 2 files changed, 2 insertions(+), 2 d

[PATCH v2 1/1] virtio: make seg_max virtqueue size dependent

2019-11-08 Thread Denis Plotnikov
seg_max has a restriction to be less or equal to virtqueue size according to Virtio 1.0 specification Although seg_max can't be set directly, it's worth to express this dependancy directly in the code for sanity purpose. Signed-off-by: Denis Plotnikov --- hw/block/virtio-blk.c | 2 +- hw/scsi/v

Re: [PATCH v2 07/11] block: add x-blockdev-amend qmp command

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-11-08 at 11:36 +0100, Max Reitz wrote: > On 08.11.19 10:26, Maxim Levitsky wrote: > > On Fri, 2019-10-04 at 20:53 +0200, Max Reitz wrote: > > > On 13.09.19 00:30, Maxim Levitsky wrote: > > > > Signed-off-by: Maxim Levitsky > > > > --- > > > > block/Makefile.objs | 2 +- > > >

Re: [PATCH v2 1/2] qapi: add filter-node-name option to drive-mirror

2019-11-08 Thread Peter Krempa
On Fri, Nov 08, 2019 at 13:16:54 +0300, Vladimir Sementsov-Ogievskiy wrote: > To correspond to blockdev-mirror command and make it possible to > deprecate implicit filters in the next commit. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > qapi/block-core.json | 7 +++ > blockdev.c

Re: [RFC PATCH 05/18] qemu-storage-daemon: Add --blockdev option

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > This adds a --blockdev option to the storage daemon that works the same > as the -blockdev option of the system emulator. > > In order to be able to link with blockdev.o, we also need to change > stream.o from common-obj to block-obj, which is where all other block > jobs alr

Re: [PATCH v2 2/2] qapi: deprecate implicit filters

2019-11-08 Thread Peter Krempa
On Fri, Nov 08, 2019 at 13:16:55 +0300, Vladimir Sementsov-Ogievskiy wrote: > To get rid of implicit filters related workarounds in future let's > deprecate them now. > > Deprecation warning breaks some bash iotests output, so fix it here > too: in most of cases just add filter-node-name in test.

Re: [PATCH v2 05/11] block/crypto: implement the encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-11-08 at 14:12 +0100, Max Reitz wrote: > On 08.11.19 12:04, Maxim Levitsky wrote: > > On Fri, 2019-11-08 at 11:49 +0100, Max Reitz wrote: > > > On 08.11.19 10:30, Maxim Levitsky wrote: > > > > On Fri, 2019-10-04 at 20:41 +0200, Max Reitz wrote: > > > > > On 13.09.19 00:30, Maxim Levits

Re: [PATCH v2 05/11] block/crypto: implement the encryption key management

2019-11-08 Thread Max Reitz
On 08.11.19 12:04, Maxim Levitsky wrote: > On Fri, 2019-11-08 at 11:49 +0100, Max Reitz wrote: >> On 08.11.19 10:30, Maxim Levitsky wrote: >>> On Fri, 2019-10-04 at 20:41 +0200, Max Reitz wrote: On 13.09.19 00:30, Maxim Levitsky wrote: > This implements the encryption key management >

Re: [PATCH v2 0/2] Deprecate implicit filters

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-11-08 at 13:16 +0300, Vladimir Sementsov-Ogievskiy wrote: > v2: > Don't deprecate drive-backup, it is unrelated thing and will be resent > in separate. > Don't deprecate drive-mirror. Instead add filter-node-name to > drive-mirror to behave like blockdev-mirror > Fix all broken iotests

[PATCH for-5.0 v4 5/5] iotests: Add test for failing mirror complete

2019-11-08 Thread Max Reitz
Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy Tested-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow --- tests/qemu-iotests/041 | 44 ++ tests/qemu-iotests/041.out | 4 ++-- 2 files changed, 46 insertions(+), 2 deletions(-)

[PATCH for-5.0 v4 1/5] block: Add bdrv_qapi_perm_to_blk_perm()

2019-11-08 Thread Max Reitz
We need some way to correlate QAPI BlockPermission values with BLK_PERM_* flags. We could: (1) have the same order in the QAPI definition as the the BLK_PERM_* flags are in LSb-first order. However, then there is no guarantee that they actually match (e.g. when someone modifies the QAPI

[PATCH for-5.0 v4 3/5] blkdebug: Allow taking/unsharing permissions

2019-11-08 Thread Max Reitz
Sometimes it is useful to be able to add a node to the block graph that takes or unshare a certain set of permissions for debugging purposes. This patch adds this capability to blkdebug. (Note that you cannot make blkdebug release or share permissions that it needs to take or cannot share, because

[PATCH for-5.0 v4 0/5] iotests: Test failing mirror complete

2019-11-08 Thread Max Reitz
Hi, v3 of this series was this: https://lists.nongnu.org/archive/html/qemu-block/2019-10/msg00868.html In the meantime, I’ve merged the first patch, so the subject of the series has changed. In v4, I’ve tried to address Vladimir’s concern of how to map QAPI BlockPermission values to BLK_PERM_*

[PATCH for-5.0 v4 2/5] block: Use bdrv_qapi_perm_to_blk_perm()

2019-11-08 Thread Max Reitz
We can save some LoC in xdbg_graph_add_edge() by using bdrv_qapi_perm_to_blk_perm(). Signed-off-by: Max Reitz --- block.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/block.c b/block.c index 066433f3e2..ae279ff21f 100644 --- a/block.c +++ b/b

[PATCH for-5.0 v4 4/5] iotests: Add @error to wait_until_completed

2019-11-08 Thread Max Reitz
Callers can use this new parameter to expect failure during the completion process. Signed-off-by: Max Reitz Reviewed-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v2 0/2] Deprecate implicit filters

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
Something strange, I don't think it related to patchset. 08.11.2019 15:00, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20191108101655.10611-1-vsement...@virtuozzo.com/ > > > > Hi, > > This series failed the docker-mingw@fedora build test. Please find the > testing

Re: [PATCH v2 0/2] Deprecate implicit filters

2019-11-08 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191108101655.10611-1-vsement...@virtuozzo.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGI

Re: [PATCH v2 02/11] qcrypto-luks: extend the create options for upcoming encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-11-08 at 11:48 +0100, Max Reitz wrote: > On 08.11.19 10:28, Maxim Levitsky wrote: > > On Fri, 2019-10-04 at 19:42 +0200, Max Reitz wrote: > > > On 13.09.19 00:30, Maxim Levitsky wrote: > > > > Now you can specify which slot to put the encryption key to > > > > Plus add 'active' option

Re: [PATCH] iotests: Fix "no qualified output" error path

2019-11-08 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191108085713.27551-1-kw...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!

Re: [PATCH v2 05/11] block/crypto: implement the encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-11-08 at 11:49 +0100, Max Reitz wrote: > On 08.11.19 10:30, Maxim Levitsky wrote: > > On Fri, 2019-10-04 at 20:41 +0200, Max Reitz wrote: > > > On 13.09.19 00:30, Maxim Levitsky wrote: > > > > This implements the encryption key management > > > > using the generic code in qcrypto layer

Re: [PATCH v2 05/11] block/crypto: implement the encryption key management

2019-11-08 Thread Max Reitz
On 08.11.19 10:30, Maxim Levitsky wrote: > On Fri, 2019-10-04 at 20:41 +0200, Max Reitz wrote: >> On 13.09.19 00:30, Maxim Levitsky wrote: >>> This implements the encryption key management >>> using the generic code in qcrypto layer >>> (currently only for qemu-img amend) >>> >>> This code adds ano

Re: [PATCH v2 02/11] qcrypto-luks: extend the create options for upcoming encryption key management

2019-11-08 Thread Max Reitz
On 08.11.19 10:28, Maxim Levitsky wrote: > On Fri, 2019-10-04 at 19:42 +0200, Max Reitz wrote: >> On 13.09.19 00:30, Maxim Levitsky wrote: >>> Now you can specify which slot to put the encryption key to >>> Plus add 'active' option which will let user erase the key secret >>> instead of adding it.

Re: [PATCH v2 07/11] block: add x-blockdev-amend qmp command

2019-11-08 Thread Max Reitz
On 08.11.19 10:26, Maxim Levitsky wrote: > On Fri, 2019-10-04 at 20:53 +0200, Max Reitz wrote: >> On 13.09.19 00:30, Maxim Levitsky wrote: >>> Signed-off-by: Maxim Levitsky >>> --- >>> block/Makefile.objs | 2 +- >>> block/amend.c | 116 ++ >

[PATCH v2 2/2] qapi: deprecate implicit filters

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
To get rid of implicit filters related workarounds in future let's deprecate them now. Deprecation warning breaks some bash iotests output, so fix it here too: in most of cases just add filter-node-name in test. In 161 add FIXME and deprecation warning into 161.out. In 249, the test case is chan

[PATCH v2 0/2] Deprecate implicit filters

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
v2: Don't deprecate drive-backup, it is unrelated thing and will be resent in separate. Don't deprecate drive-mirror. Instead add filter-node-name to drive-mirror to behave like blockdev-mirror Fix all broken iotests. Vladimir Sementsov-Ogievskiy (2): qapi: add filter-node-name option to drive-m

[PATCH v2 1/2] qapi: add filter-node-name option to drive-mirror

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
To correspond to blockdev-mirror command and make it possible to deprecate implicit filters in the next commit. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/block-core.json | 7 +++ blockdev.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/qapi/block-

Re: [PATCH] iotests: Fix "no qualified output" error path

2019-11-08 Thread Max Reitz
On 08.11.19 09:57, Kevin Wolf wrote: > The variable for error messages to be displayed is $results, not > $reason. Fix 'check' to print the "no qualified output" error message > again instead of having a failure without any message telling the user > why it failed. > > Signed-off-by: Kevin Wolf >

Re: [PATCH v2 02/11] qcrypto-luks: extend the create options for upcoming encryption key management

2019-11-08 Thread Maxim Levitsky
On Thu, 2019-10-10 at 15:44 +0200, Kevin Wolf wrote: > Am 13.09.2019 um 00:30 hat Maxim Levitsky geschrieben: > > Now you can specify which slot to put the encryption key to > > Plus add 'active' option which will let user erase the key secret > > instead of adding it. > > Check that active=true i

Re: [PATCH v3 00/22] iotests: Allow ./check -o data_file

2019-11-08 Thread Max Reitz
On 07.11.19 22:10, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20191107163708.833192-1-mre...@redhat.com/ > > > > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Subject: [PATCH v3 00/22] iotests: Allow ./che

Re: [PATCH v1 2/4] virtio: make seg_max virtqueue size dependent

2019-11-08 Thread Michael S. Tsirkin
On Fri, Nov 08, 2019 at 07:43:22AM +, Denis Plotnikov wrote: > The 1st patch from the series seems to be useless. The patch extending > queue length by adding machine type may break vm-s which use seabios > with max queue size = 128. > > Looks like only this patch doesn't break anything and

[PATCH 3/4 V2] hw/scsi: add SCSI COMPARE_AND_WRITE support

2019-11-08 Thread Yaowei Bai
This patch emulates COMPARE_AND_WRITE command with the BDRV_REQ_COMPARE_AND_WRITE flag introduced by last patch. It matches the SBC-4 standard except the FUA bit support, it'll be finished in the next patch. Note that cmd->xfer is set 2 * the number got by scsi_data_cdb_xfer so we could touch the

[PATCH 2/4 V2] block/rbd: implement bdrv_aio_compare_and_write interface

2019-11-08 Thread Yaowei Bai
This patch adds librbd's SCSI COMPARE_AND_WRITE command interface support with bdrv_aio_compare_and_write function pointer. Note currently when a miscompare happens a mismatch offset of 0 is always reported rather than the actual mismatch offset. This should not be a big issue contemporarily and wi

[PATCH 0/4 V2] SCSI COMPARE_AND_WRITE command support

2019-11-08 Thread Yaowei Bai
Recently ceph/librbd added several interfaces to handle SCSI commands like COMPARE_AND_WRITE directly. However they were only be used in special scenarios, i.e. ISCSI. That involves more software components which makes the IO path longer and could bring more potential issues. Actually we're maintai

[PATCH 1/4 V2] block: add SCSI COMPARE_AND_WRITE support

2019-11-08 Thread Yaowei Bai
Some storages(i.e. librbd) already have interfaces to handle some SCSI commands directly. This patch adds COMPARE_AND_WRITE command support through the write path in the block io layer by introducing a new element BDRV_REQ_COMPARE_AND_WRITE into BdrvRequestFlags which indicates a COMPARE_AND_WRITE

[PATCH 4/4 V2] scsi-disk: add FUA support for COMPARE_AND_WRITE

2019-11-08 Thread Yaowei Bai
It is implemented in the blk_aio_pwritev's callback function in a way similar to its emulation in scsi_write_do_fua function Signed-off-by: Yaowei Bai --- hw/scsi/scsi-disk.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index f9a0267..

Re: Deprecating stuff for 4.2

2019-11-08 Thread Vladimir Sementsov-Ogievskiy
08.11.2019 9:41, Markus Armbruster wrote: > Vladimir Sementsov-Ogievskiy writes: > >> 07.11.2019 21:52, Philippe Mathieu-Daudé wrote: > [...] >>> Pre-release period, time to deprecate some stuffs :) >>> >>> How should we proceed? Do you have something in mind? >>> >>> There are older threads abou

Re: [PATCH v2 05/11] block/crypto: implement the encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 20:41 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > This implements the encryption key management > > using the generic code in qcrypto layer > > (currently only for qemu-img amend) > > > > This code adds another 'write_func' because the initializatio

Re: [PATCH v2 11/11] iotests : add tests for encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 21:11 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > Note that currently I add tests 300-302, which are > > placeholders to ease the rebase. In final version > > of these patches I will update these. > > > > Signed-off-by: Maxim Levitsky > > --- > >

Re: [PATCH v2 02/11] qcrypto-luks: extend the create options for upcoming encryption key management

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 19:42 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > Now you can specify which slot to put the encryption key to > > Plus add 'active' option which will let user erase the key secret > > instead of adding it. > > Check that active=true it when creating

Re: [Qemu-devel] [PATCH v2 02/11] qcrypto-luks: extend the create options for upcoming encryption key management

2019-11-08 Thread Maxim Levitsky
On Mon, 2019-10-07 at 09:49 +0200, Markus Armbruster wrote: > Quick QAPI schema review only. > > Maxim Levitsky writes: > > > Now you can specify which slot to put the encryption key to > > Plus add 'active' option which will let user erase the key secret > > instead of adding it. > > Check tha

Re: [PATCH v2 07/11] block: add x-blockdev-amend qmp command

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 20:53 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > Signed-off-by: Maxim Levitsky > > --- > > block/Makefile.objs | 2 +- > > block/amend.c | 116 ++ > > include/block/block_int.h | 23 ++--

Re: [PATCH v2 07/11] block: add x-blockdev-amend qmp command

2019-11-08 Thread Maxim Levitsky
On Fri, 2019-10-04 at 20:53 +0200, Max Reitz wrote: > On 13.09.19 00:30, Maxim Levitsky wrote: > > Signed-off-by: Maxim Levitsky > > --- > > block/Makefile.objs | 2 +- > > block/amend.c | 116 ++ > > include/block/block_int.h | 23 ++--

Re: [RFC PATCH 04/18] stubs: Add blk_by_qdev_id()

2019-11-08 Thread Markus Armbruster
Kevin Wolf writes: > blockdev.c uses the blk_by_qdev_id() function, so before we can use the > file in tools (i.e. outside of the system emulator), we need to add a > stub for it. The function always returns an error. > > Signed-off-by: Kevin Wolf > --- > stubs/blk-by-qdev-id.c | 9 + >

Re: [RFC PATCH 18/18] qemu-storage-daemon: Add --monitor option

2019-11-08 Thread Markus Armbruster
Quick observation: --help fails to mention --monitor.

[PATCH] iotests: Fix "no qualified output" error path

2019-11-08 Thread Kevin Wolf
The variable for error messages to be displayed is $results, not $reason. Fix 'check' to print the "no qualified output" error message again instead of having a failure without any message telling the user why it failed. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/check | 2 +- 1 file chang

[PATCH 2/2] iotests: Test multiple blockdev-snapshot calls

2019-11-08 Thread Kevin Wolf
Test that doing a second blockdev-snapshot doesn't make the first overlay's backing file go away. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/273 | 76 + tests/qemu-iotests/273.out | 337 + tests/qemu-iotests/group | 1 + 3 files changed,

[PATCH 0/2] block: Fix multiple blockdev-snapshot calls

2019-11-08 Thread Kevin Wolf
Kevin Wolf (2): block: Remove 'backing': null from bs->{explicit_,}options iotests: Test multiple blockdev-snapshot calls block.c| 2 + tests/qemu-iotests/273 | 76 + tests/qemu-iotests/273.out | 337 + tests/qemu-iotests/

[PATCH 1/2] block: Remove 'backing': null from bs->{explicit_, }options

2019-11-08 Thread Kevin Wolf
bs->options and bs->explicit_options shouldn't contain any options for child nodes. bdrv_open_inherited() takes care to remove any options that match a child name after opening the image and the same is done when reopening. However, we miss the case of 'backing': null, which is a child option, but

Re: [Qemu-devel] Exposing feature deprecation to machine clients

2019-11-08 Thread Max Reitz
On 07.11.19 20:13, Vladimir Sementsov-Ogievskiy wrote: > 07.11.2019 21:52, Philippe Mathieu-Daudé wrote: >> Hi Markus, >> >> On 8/15/19 7:40 PM, John Snow wrote: >>> On 8/15/19 10:16 AM, Markus Armbruster wrote: John Snow writes: >> [...] > I asked Markus this not too long ago; do we want