Re: [Qemu-block] [Qemu-devel] [PATCH] nbd/client: add x-block-status hack for testing server

2018-06-20 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20180621032539.134944-1-ebl...@redhat.com Subject: [Qemu-devel] [PATCH] nbd/client: add

Re: [Qemu-block] [Qemu-devel] [PATCH] [RFC v2] aio: properly bubble up errors from initialization

2018-06-20 Thread Nishanth Aravamudan
On 20.06.2018 [12:34:52 -0700], Nishanth Aravamudan wrote: > On 20.06.2018 [11:57:42 +0200], Kevin Wolf wrote: > > Am 20.06.2018 um 00:54 hat Nishanth Aravamudan geschrieben: > > > On 19.06.2018 [15:35:57 -0700], Nishanth Aravamudan wrote: > > > > On 19.06.2018 [13:14:51 -0700], Nishanth

[Qemu-block] [PATCH] nbd/client: add x-block-status hack for testing server

2018-06-20 Thread Eric Blake
In order to test that the NBD server is properly advertising dirty bitmaps, we need a bare minimum client that can request and read the context. This patch is a hack (hence the use of the x- prefix) that serves two purposes: first, it lets the client pass a request of more than one context at a

[Qemu-block] [PULL 4/7] nbd/server: add nbd_meta_empty_or_pattern helper

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Add nbd_meta_pattern() and nbd_meta_empty_or_pattern() helpers for metadata query parsing. nbd_meta_pattern() will be reused for the "qemu" namespace in following patches. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id:

[Qemu-block] [PULL 5/7] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Handle a new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With the new metadata context negotiated, BLOCK_STATUS query will reply with dirty-bitmap data, converted to extents. The new public function nbd_export_bitmap selects

[Qemu-block] [PULL 7/7] docs/interop: add nbd.txt

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Describe new metadata namespace: "qemu". Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-7-vsement...@virtuozzo.com> Reviewed-by: Eric Blake [eblake: grammar tweaks] Signed-off-by: Eric Blake --- docs/interop/nbd.txt | 38

[Qemu-block] [PULL 6/7] qapi: new qmp command nbd-server-add-bitmap

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy For now, the actual command ix x-nbd-server-add-bitmap, reflecting the fact that we are still working on libvirt code that proves the command works as needed, and also the fact that we may remove bitmap-export-name (and just require that the exported name be

[Qemu-block] [PULL 2/7] nbd/server: fix trace

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Return code = 1 doesn't mean that we parsed base:allocation. Use correct traces in both -parsed and -skipped cases. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-2-vsement...@virtuozzo.com> Reviewed-by: Eric Blake [eblake:

[Qemu-block] [PULL 3/7] nbd/server: refactor NBDExportMetaContexts

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Use NBDExport pointer instead of just export name: there is no need to store a duplicated name in the struct; moreover, NBDExport will be used further. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-3-vsement...@virtuozzo.com>

Re: [Qemu-block] [Qemu-devel] [PATCH v2 03/10] qcow2/bitmap: cache bm_list

2018-06-20 Thread John Snow
On 06/20/2018 09:04 AM, Vladimir Sementsov-Ogievskiy wrote: > 13.06.2018 05:06, John Snow wrote: >> We don't need to re-read this list every time, exactly. We can keep it >> cached >> and delete our copy when we flush to disk. >> >> Because we don't try to flush bitmaps on close if there's

Re: [Qemu-block] [PATCH v5 6/6] docs/interop: add nbd.txt

2018-06-20 Thread John Snow
On 06/20/2018 10:16 AM, Vladimir Sementsov-Ogievskiy wrote: > 20.06.2018 14:33, Eric Blake wrote: >> On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: >>> Describe new metadata namespace: "qemu". >>> >>> Signed-off-by: Vladimir Sementsov-Ogievskiy >>> --- >>>   docs/interop/nbd.txt |

Re: [Qemu-block] [Qemu-devel] [PATCH] [RFC v2] aio: properly bubble up errors from initialization

2018-06-20 Thread Nishanth Aravamudan
On 20.06.2018 [11:57:42 +0200], Kevin Wolf wrote: > Am 20.06.2018 um 00:54 hat Nishanth Aravamudan geschrieben: > > On 19.06.2018 [15:35:57 -0700], Nishanth Aravamudan wrote: > > > On 19.06.2018 [13:14:51 -0700], Nishanth Aravamudan wrote: > > > > On 19.06.2018 [14:35:33 -0500], Eric Blake wrote:

Re: [Qemu-block] [PATCH v5 5/6] qapi: new qmp command nbd-server-add-bitmap

2018-06-20 Thread Eric Blake
On 06/20/2018 09:13 AM, Vladimir Sementsov-Ogievskiy wrote: 20.06.2018 14:26, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy ---   qapi/block.json | 23 +++   blockdev-nbd.c  | 23

Re: [Qemu-block] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
On 06/20/2018 12:04 PM, Vladimir Sementsov-Ogievskiy wrote: 20.06.2018 19:27, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With new metadata context negotiated,

Re: [Qemu-block] [PATCH] block/qcow2: fix logic around dirty_bitmaps_loaded

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 20:17, Vladimir Sementsov-Ogievskiy wrote: 13.06.2018 01:18, John Snow wrote: On 06/12/2018 06:11 PM, John Snow wrote: On 06/12/2018 01:26 PM, Vladimir Sementsov-Ogievskiy wrote: First: this variable was introduced to handle reopens. We need it on following qcow2_do_open, to

Re: [Qemu-block] [PATCH] block/qcow2: fix logic around dirty_bitmaps_loaded

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
13.06.2018 01:18, John Snow wrote: On 06/12/2018 06:11 PM, John Snow wrote: On 06/12/2018 01:26 PM, Vladimir Sementsov-Ogievskiy wrote: First: this variable was introduced to handle reopens. We need it on following qcow2_do_open, to don't try loading bitmaps again. So, we are fixing

Re: [Qemu-block] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 19:27, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With new metadata context negotiated, BLOCK_STATUS query will reply with dirty-bitmap data, converted to

Re: [Qemu-block] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With new metadata context negotiated, BLOCK_STATUS query will reply with dirty-bitmap data, converted to extents. New public function

Re: [Qemu-block] [PATCH] qapi: drop x- from x-block-latency-histogram-set

2018-06-20 Thread John Snow
On 06/20/2018 11:28 AM, Vladimir Sementsov-Ogievskiy wrote: > 20.06.2018 18:27, Vladimir Sementsov-Ogievskiy wrote: >> Libvirt part is ready, let's drop x- prefix. > > libvirt patches will be sent soon I hope. > OK, can you ping this patch with a link to the series when it is posted? Thank

Re: [Qemu-block] [Qemu-devel] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
On 06/20/2018 10:43 AM, Eric Blake wrote: On 06/20/2018 06:24 AM, Eric Blake wrote: +/* Set several extents, describing region of given @length with given @flags. + * Do not set more than @nb_extents, return number of set extents. + */ +static unsigned add_extents(NBDExtent *extents, unsigned

Re: [Qemu-block] [Qemu-devel] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
On 06/20/2018 06:24 AM, Eric Blake wrote: +/* Set several extents, describing region of given @length with given @flags. + * Do not set more than @nb_extents, return number of set extents. + */ +static unsigned add_extents(NBDExtent *extents, unsigned nb_extents, +   

Re: [Qemu-block] [PATCH] qapi: drop x- from x-block-latency-histogram-set

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 18:27, Vladimir Sementsov-Ogievskiy wrote: Libvirt part is ready, let's drop x- prefix. libvirt patches will be sent soon I hope. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/block-core.json | 4 ++-- blockdev.c | 2 +- 2 files changed, 3 insertions(+), 3

[Qemu-block] [PATCH] qapi: drop x- from x-block-latency-histogram-set

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
Libvirt part is ready, let's drop x- prefix. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/block-core.json | 4 ++-- blockdev.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index cc3ede0630..dfaa050651 100644

[Qemu-block] [PATCH v2 3/3] qcow2: add compress threads

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
Do data compression in separate threads. This significantly improve performance for qemu-img convert with -W (allow async writes) and -c (compressed) options. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2.h | 3 +++ block/qcow2.c | 62

[Qemu-block] [PATCH v2 0/3] qcow2 compress threads

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
Hi all! Here are compress threads for qcow2, to increase performance of compressed writes. v2 changes: 02: fix typo in commit msg keep "qemu/osdep.h" to be the first included header, fix comment style === I've created the following test: []# cat ../gen.sh #!/bin/bash echo

[Qemu-block] [PATCH v2 1/3] qemu-img: allow compressed not-in-order writes

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
No reason to forbid them, and they are needed to improve performance with compress-threads in further patches. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qemu-img.c | 5 - 1 file changed, 5 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index e1a506f7f6..7651d8172c 100644 ---

Re: [Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Dr. David Alan Gilbert
* Daniel P. Berrangé (berra...@redhat.com) wrote: > On Wed, Jun 20, 2018 at 03:22:53PM +0100, Dr. David Alan Gilbert wrote: > > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > > From: "Daniel P. Berrange" > > > > > > Currently any client which can complete the TLS handshake is able to use

[Qemu-block] [PATCH v2 2/3] qcow2: refactor data compression

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
Make a separate function for compression to be parallelized later. - use .avail_out field instead of .next_out to calculate size of compressed data. It looks more natural and it allows to keep dest to be void pointer - set avail_out to be at least one byte less than input, to be sure

Re: [Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Eric Blake
On 06/20/2018 09:22 AM, Dr. David Alan Gilbert wrote: For example to setup authorization that only allows connection from a client whose x509 certificate distinguished name is CN=laptop.example.com,O=Example Org,L=London,ST=London,C=GB use: qemu-nbd --object

Re: [Qemu-block] bug in reopen arch

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
Kevin? 15.06.2018 21:42, Vladimir Sementsov-Ogievskiy wrote: 14.06.2018 13:46, Kevin Wolf wrote: Am 12.06.2018 um 20:57 hat Vladimir Sementsov-Ogievskiy geschrieben: Hi all! I've faced the following problem: 1. create image with dirty bitmap, a.qcow2 (start qemu and run qmp

Re: [Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Daniel P . Berrangé
On Wed, Jun 20, 2018 at 03:22:53PM +0100, Dr. David Alan Gilbert wrote: > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > From: "Daniel P. Berrange" > > > > Currently any client which can complete the TLS handshake is able to use > > the NBD server. The server admin can turn on the

Re: [Qemu-block] [PATCH v5 5/6] qapi: new qmp command nbd-server-add-bitmap

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 14:26, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy ---   qapi/block.json | 23 +++   blockdev-nbd.c  | 23 +++   2 files changed, 46 insertions(+) I'm tempted to

Re: [Qemu-block] [PATCH v2 2/6] nbd: allow authorization with nbd-server-start QMP command

2018-06-20 Thread Eric Blake
On 06/20/2018 07:14 AM, Daniel P. Berrangé wrote: From: "Daniel P. Berrange" I thought you preferred the UTF-8 accent in your Author lines these days? Or is this because this patch has been sitting around in your local repo prior to the point where you switched your git config author

Re: [Qemu-block] [PATCH v2 2/6] nbd: allow authorization with nbd-server-start QMP command

2018-06-20 Thread Daniel P . Berrangé
On Wed, Jun 20, 2018 at 09:05:32AM -0500, Eric Blake wrote: > On 06/20/2018 07:14 AM, Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > I thought you preferred the UTF-8 accent in your Author lines these days? > Or is this because this patch has been sitting around in your local repo

Re: [Qemu-block] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 14:24, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: s/new/a new/ "qemu:dirty-bitmap:". With new metadata context negotiated, BLOCK_STATUS query will reply s/new/the new/ with

Re: [Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Daniel P . Berrangé
On Wed, Jun 20, 2018 at 08:58:40AM -0500, Eric Blake wrote: > On 06/20/2018 07:14 AM, Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > > > Currently any client which can complete the TLS handshake is able to use > > the NBD server. The server admin can turn on the 'verify-peer'

Re: [Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Eric Blake
On 06/20/2018 07:14 AM, Daniel P. Berrangé wrote: From: "Daniel P. Berrange" Currently any client which can complete the TLS handshake is able to use the NBD server. The server admin can turn on the 'verify-peer' option for the x509 creds to require the client to provide a x509 certificate.

Re: [Qemu-block] [PATCH v2 03/10] qcow2/bitmap: cache bm_list

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
20.06.2018 16:04, Vladimir Sementsov-Ogievskiy wrote: 13.06.2018 05:06, John Snow wrote: We don't need to re-read this list every time, exactly. We can keep it cached and delete our copy when we flush to disk. Because we don't try to flush bitmaps on close if there's nothing to flush, add a

Re: [Qemu-block] [PATCH v2 04/10] qcow2/bitmap: cache loaded bitmaps

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
13.06.2018 05:06, John Snow wrote: For bitmaps that we succeeded in loading, we can cache a reference to that object. This will let us iterate over the more convenient form of in-memory bitmaps for qemu-img bitmap manipulation tools. Signed-off-by: John Snow --- block/qcow2-bitmap.c | 2 ++

Re: [Qemu-block] [PATCH v2 03/10] qcow2/bitmap: cache bm_list

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
13.06.2018 05:06, John Snow wrote: We don't need to re-read this list every time, exactly. We can keep it cached and delete our copy when we flush to disk. Because we don't try to flush bitmaps on close if there's nothing to flush, add a new conditional to delete the state anyway for a clean

Re: [Qemu-block] [RFC PATCH 06/10] block: Allow changing the backing file on reopen

2018-06-20 Thread Alberto Garcia
On Wed 20 Jun 2018 12:58:55 PM CEST, Kevin Wolf wrote: > Am 19.06.2018 um 16:20 hat Alberto Garcia geschrieben: >> >> Wait, I think the description I gave is inaccurate: >> >> >> >> commit_complete() calls bdrv_drop_intermediate(), and that updates the >> >> backing image name

[Qemu-block] [PATCH v2 4/6] chardev: add support for authorization for TLS clients

2018-06-20 Thread Daniel P . Berrangé
From: "Daniel P. Berrange" Currently any client which can complete the TLS handshake is able to use a chardev server. The server admin can turn on the 'verify-peer' option for the x509 creds to require the client to provide a x509 certificate. This means the client will have to acquire a

[Qemu-block] [PATCH v2 6/6] monitor: deprecate acl_show, acl_reset, acl_policy, acl_add, acl_remove

2018-06-20 Thread Daniel P . Berrangé
The various ACL related commands are obsolete now that the QAuthZ framework for authorization is fully integrated throughout QEMU network services. Mark it as deprecated with no replacement to be provided. Authorization is now provided by using 'object_add' together with the 'tls-authz' or

[Qemu-block] [PATCH v2 3/6] migration: add support for a "tls-authz" migration parameter

2018-06-20 Thread Daniel P . Berrangé
From: "Daniel P. Berrange" The QEMU instance that runs as the server for the migration data transport (ie the target QEMU) needs to be able to configure access control so it can prevent unauthorized clients initiating an incoming migration. This adds a new 'tls-authz' migration parameter that is

Re: [Qemu-block] [PATCH v6 5/6] iotests: Add new test 214 for max compressed cluster offset

2018-06-20 Thread Alberto Garcia
On Tue 19 Jun 2018 08:51:36 PM CEST, Eric Blake wrote: > On 04/26/2018 07:10 AM, Alberto Garcia wrote: >> On Thu 26 Apr 2018 04:51:28 AM CEST, Eric Blake wrote: >>> If you have a capable file system (tmpfs is good, ext4 not so much; >>> run ./check with TEST_DIR pointing to a good location so as

[Qemu-block] [PATCH v2 2/6] nbd: allow authorization with nbd-server-start QMP command

2018-06-20 Thread Daniel P . Berrangé
From: "Daniel P. Berrange" As with the previous patch to qemu-nbd, the nbd-server-start QMP command also needs to be able to specify authorization when enabling TLS encryption. First the client must create a QAuthZ object instance using the 'object-add' command: { 'execute':

[Qemu-block] [PATCH v2 0/6] Add authorization support to all network services

2018-06-20 Thread Daniel P . Berrangé
This series builds on the core authorization framework: https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg04469.html enabling its use with the VNC, chardev, NBD and migration network servers. In combination with TLS x509 client certificates, this allows these services to whitelist

[Qemu-block] [PATCH v2 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Daniel P . Berrangé
From: "Daniel P. Berrange" Currently any client which can complete the TLS handshake is able to use the NBD server. The server admin can turn on the 'verify-peer' option for the x509 creds to require the client to provide a x509 certificate. This means the client will have to acquire a

[Qemu-block] [PATCH v2 5/6] vnc: allow specifying a custom authorization object name

2018-06-20 Thread Daniel P . Berrangé
From: "Daniel P. Berrange" The VNC server has historically had support for ACLs to check both the SASL username and the TLS x509 distinguished name. The VNC server was responsible for creating the initial ACL, and the client app was then responsible for populating it with rules using the HMP

Re: [Qemu-block] [PATCH v5 6/6] docs/interop: add nbd.txt

2018-06-20 Thread Eric Blake
On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Describe new metadata namespace: "qemu". Signed-off-by: Vladimir Sementsov-Ogievskiy --- docs/interop/nbd.txt | 37 + MAINTAINERS | 1 + 2 files changed, 38 insertions(+) create mode

Re: [Qemu-block] [PATCH v5 5/6] qapi: new qmp command nbd-server-add-bitmap

2018-06-20 Thread Eric Blake
On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/block.json | 23 +++ blockdev-nbd.c | 23 +++ 2 files changed, 46 insertions(+) I'm tempted to temporarily name this

Re: [Qemu-block] [PATCH v5 4/6] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: s/new/a new/ "qemu:dirty-bitmap:". With new metadata context negotiated, BLOCK_STATUS query will reply s/new/the new/ with dirty-bitmap data, converted to

Re: [Qemu-block] [RFC PATCH 06/10] block: Allow changing the backing file on reopen

2018-06-20 Thread Kevin Wolf
Am 19.06.2018 um 16:20 hat Alberto Garcia geschrieben: > >> Wait, I think the description I gave is inaccurate: > >> > >> commit_complete() calls bdrv_drop_intermediate(), and that updates the > >> backing image name (c->role->update_filename()). If we're doing this in > >> an intermediate node

Re: [Qemu-block] [PATCH 3/6] migration: add support for a "tls-authz" migration parameter

2018-06-20 Thread Juan Quintela
Daniel P. Berrangé wrote: > On Wed, Jun 20, 2018 at 12:03:45PM +0200, Juan Quintela wrote: >> Daniel P. Berrangé wrote: >> > From: "Daniel P. Berrange" >> >> . >> >> >> It is not just the fault of this patch, but as you are the one doing the >> tls bits on migration... >> >> >> > @@

Re: [Qemu-block] [PATCH 3/6] migration: add support for a "tls-authz" migration parameter

2018-06-20 Thread Daniel P . Berrangé
On Wed, Jun 20, 2018 at 12:03:45PM +0200, Juan Quintela wrote: > Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > . > > > It is not just the fault of this patch, but as you are the one doing the > tls bits on migration... > > > > @@ -1106,6 +1108,12 @@ static void > >

Re: [Qemu-block] [PATCH 3/6] migration: add support for a "tls-authz" migration parameter

2018-06-20 Thread Juan Quintela
Daniel P. Berrangé wrote: > From: "Daniel P. Berrange" . It is not just the fault of this patch, but as you are the one doing the tls bits on migration... > @@ -1106,6 +1108,12 @@ static void migrate_params_apply(MigrateSetParameters > *params, Error **errp) >

Re: [Qemu-block] [PATCH v2 02/10] qcow2/bitmap: avoid adjusting bm->flags for RO bitmaps

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
13.06.2018 05:06, John Snow wrote: Instead of always setting IN_USE, do this conditionally based on whether or not the bitmap is read-only. Eliminate the two-pass processing and move the second loop to the failure case. This will allow us to show the flags exactly as they appear on-disk for

Re: [Qemu-block] [Qemu-devel] [PATCH] [RFC v2] aio: properly bubble up errors from initialization

2018-06-20 Thread Kevin Wolf
Am 20.06.2018 um 00:54 hat Nishanth Aravamudan geschrieben: > On 19.06.2018 [15:35:57 -0700], Nishanth Aravamudan wrote: > > On 19.06.2018 [13:14:51 -0700], Nishanth Aravamudan wrote: > > > On 19.06.2018 [14:35:33 -0500], Eric Blake wrote: > > > > On 06/15/2018 12:47 PM, Nishanth Aravamudan via

Re: [Qemu-block] [PATCH v2 01/10] qcow2/bitmap: remove redundant arguments from bitmap_list_load

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
13.06.2018 05:06, John Snow wrote: We always call it with the same fields of the struct we always pass. We can split this out later if we really wind up needing to. Signed-off-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy -- Best regards, Vladimir

Re: [Qemu-block] [PATCH v5 3/6] nbd/server: add nbd_meta_empty_or_pattern helper

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
19.06.2018 23:24, Eric Blake wrote: On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: Add nbd_meta_pattern() and nbd_meta_empty_or_pattern() helpers for metadata query parsing. nbd_meta_pattern() will be reused for "qemu" s/for/for the/ namespace in following patches.

Re: [Qemu-block] [Qemu-devel] [PATCH 3/7] block/qcow2-refcount: check_refcounts_l2: refactor compressed case

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
19.06.2018 21:50, Eric Blake wrote: On 06/19/2018 01:34 PM, Vladimir Sementsov-Ogievskiy wrote: Separate offset and size of compressed cluster. Signed-off-by: Vladimir Sementsov-Ogievskiy ---   block/qcow2-refcount.c | 15 ++-   1 file changed, 10 insertions(+), 5 deletions(-)

Re: [Qemu-block] [Qemu-devel] [PATCH 6/7] block/qcow2-refcount: fix out-of-file L1 entries to be zero

2018-06-20 Thread Vladimir Sementsov-Ogievskiy
19.06.2018 21:54, Eric Blake wrote: On 06/19/2018 01:34 PM, Vladimir Sementsov-Ogievskiy wrote: Zero out corrupted L1 table entry, which reference L2 table out of underlying file. Zero L1 table entry means that "the L2 table and all clusters described by this L2 table are unallocated."

Re: [Qemu-block] [PATCH 1/6] qemu-nbd: add support for authorization of TLS clients

2018-06-20 Thread Daniel P . Berrangé
On Tue, Jun 19, 2018 at 03:06:06PM -0500, Eric Blake wrote: > On 06/15/2018 10:50 AM, Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > > > Currently any client which can complete the TLS handshake is able to use > > the NBD server. The server admin can turn on the 'verify-peer'