Re: [PATCH 6/6] block/iscsi: Do not force-cap *pnum

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:47PM +0200, Max Reitz wrote: > bdrv_co_block_status() does it for us, we do not need to do it here. > > The advantage of not capping *pnum is that bdrv_co_block_status() can > cache larger data regions than requested by its caller. > > Signed-off-by: Max Reitz > ---

Re: [PATCH 5/6] block/nbd: Do not force-cap *pnum

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:46PM +0200, Max Reitz wrote: > bdrv_co_block_status() does it for us, we do not need to do it here. > > The advantage of not capping *pnum is that bdrv_co_block_status() can > cache larger data regions than requested by its caller. > > Signed-off-by: Max Reitz > ---

Re: [PATCH 4/6] block/gluster: Do not force-cap *pnum

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:45PM +0200, Max Reitz wrote: > bdrv_co_block_status() does it for us, we do not need to do it here. > > The advantage of not capping *pnum is that bdrv_co_block_status() can > cache larger data regions than requested by its caller. > > Signed-off-by: Max Reitz > ---

Re: [PATCH 3/6] block/file-posix: Do not force-cap *pnum

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:44PM +0200, Max Reitz wrote: > bdrv_co_block_status() does it for us, we do not need to do it here. > > The advantage of not capping *pnum is that bdrv_co_block_status() can > cache larger data regions than requested by its caller. We should update the documentation

Re: [PATCH 2/6] block: block-status cache for data regions

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:43PM +0200, Max Reitz wrote: > > To address this, we want to cache data regions. Most of the time, when > bad performance is reported, it is in places where the image is iterated > over from start to end (qemu-img convert or the mirror job), so a simple > yet effecti

Re: [PATCH v3 15/24] modules: use modinfo for qemu opts load

2021-06-18 Thread Paolo Bonzini
On 18/06/21 06:53, Gerd Hoffmann wrote: Use module database to figure which module adds given QemuOpts group. Signed-off-by: Gerd Hoffmann --- softmmu/vl.c| 17 - stubs/module-opts.c | 4 util/module.c | 19 +++ 3 files changed, 19 insert

Re: [PATCH v3 14/24] modules: use modinfo for qom load

2021-06-18 Thread Paolo Bonzini
On 18/06/21 06:53, Gerd Hoffmann wrote: Use module database to figure which module implements a given QOM type. Drop hard-coded object list. Signed-off-by: Gerd Hoffmann --- util/module.c | 77 --- 1 file changed, 24 insertions(+), 53 deletions

Re: [PATCH v3 13/24] modules: use modinfo for dependencies

2021-06-18 Thread Paolo Bonzini
On 18/06/21 06:53, Gerd Hoffmann wrote: Use module database for module dependencies. Drop hard-coded dependency list. Signed-off-by: Gerd Hoffmann --- util/module.c | 55 --- 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/util/

Re: [PATCH v3 01/24] modules: add modinfo macros

2021-06-18 Thread Paolo Bonzini
On 18/06/21 06:53, Gerd Hoffmann wrote: Add macros for module info annotations. Instead of having that module meta-data stored in lists in util/module.c place directly in the module source code. Signed-off-by: Gerd Hoffmann --- include/qemu/module.h | 25 + 1 file ch

Re: [PATCH 1/6] block: Drop BDS comment regarding bdrv_append()

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 05:52:42PM +0200, Max Reitz wrote: > There is a comment above the BDS definition stating care must be taken > to consider handling newly added fields in bdrv_append(). > > Actually, this comment should have said "bdrv_swap()" as of 4ddc07cac > (nine years ago), and in any c

[PULL v2 28/34] nbd/client-connection: return only one io channel

2021-06-18 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy block/nbd doesn't need underlying sioc channel anymore. So, we can update nbd/client-connection interface to return only one top-most io channel, which is more straight forward. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-Id: <

Re: [PATCH v3 02/24] modules: collect module meta-data

2021-06-18 Thread Paolo Bonzini
On 18/06/21 06:53, Gerd Hoffmann wrote: +def find_command(src, target, compile_commands): +for command in compile_commands: +if command['file'] != src: +continue +if target != '' and command['command'].find(target) == -1: +continue Did you look into

Re: [PULL 28/34] nbd/client-connection: return only one io channel

2021-06-18 Thread Eric Blake
On Thu, Jun 17, 2021 at 09:32:02PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Logic is wrong and uninitialized use of ioc really possible, as Peter (and > clang) reports. > > So, I propose the following squash-in. It doesn't conflict with following > patches. > > squash-in: > > diff --git a/

[PATCH] tests/qtest/nvme-test: add persistent memory region test

2021-06-18 Thread Gollu Appalanaidu
This will test the PMR functionality. Signed-off-by: Gollu Appalanaidu --- tests/qtest/nvme-test.c | 78 - 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/tests/qtest/nvme-test.c b/tests/qtest/nvme-test.c index d32c953a38..6d557be6ca 100644 -

Re: [PATCH V3 4/6] block/rbd: migrate from aio to coroutines

2021-06-18 Thread Ilya Dryomov
On Fri, Jun 18, 2021 at 11:07 AM Peter Lieven wrote: > > Am 17.06.21 um 16:43 schrieb Ilya Dryomov: > > On Wed, May 19, 2021 at 4:27 PM Peter Lieven wrote: > >> Signed-off-by: Peter Lieven > >> --- > >> block/rbd.c | 255 ++-- > >> 1 file changed,

Re: [PATCH V3 5/6] block/rbd: add write zeroes support

2021-06-18 Thread Ilya Dryomov
On Fri, Jun 18, 2021 at 11:00 AM Peter Lieven wrote: > > Am 16.06.21 um 14:34 schrieb Ilya Dryomov: > > On Wed, May 19, 2021 at 4:28 PM Peter Lieven wrote: > >> Signed-off-by: Peter Lieven > >> --- > >> block/rbd.c | 37 - > >> 1 file changed, 36 insertions(+

Re: [PATCH V3 1/6] block/rbd: bump librbd requirement to luminous release

2021-06-18 Thread Ilya Dryomov
On Fri, Jun 18, 2021 at 10:58 AM Peter Lieven wrote: > > Am 16.06.21 um 14:26 schrieb Ilya Dryomov: > > On Wed, May 19, 2021 at 4:26 PM Peter Lieven wrote: > >> even luminous (version 12.2) is unmaintained for over 3 years now. > >> Bump the requirement to get rid of the ifdef'ry in the code. > >

Re: [PATCH V3 4/6] block/rbd: migrate from aio to coroutines

2021-06-18 Thread Peter Lieven
Am 17.06.21 um 16:43 schrieb Ilya Dryomov: > On Wed, May 19, 2021 at 4:27 PM Peter Lieven wrote: >> Signed-off-by: Peter Lieven >> --- >> block/rbd.c | 255 ++-- >> 1 file changed, 87 insertions(+), 168 deletions(-) >> >> diff --git a/block/rbd.c b

Re: [PATCH V3 5/6] block/rbd: add write zeroes support

2021-06-18 Thread Peter Lieven
Am 16.06.21 um 14:34 schrieb Ilya Dryomov: > On Wed, May 19, 2021 at 4:28 PM Peter Lieven wrote: >> Signed-off-by: Peter Lieven >> --- >> block/rbd.c | 37 - >> 1 file changed, 36 insertions(+), 1 deletion(-) >> >> diff --git a/block/rbd.c b/block/rbd.c >> ind

Re: [PATCH V3 1/6] block/rbd: bump librbd requirement to luminous release

2021-06-18 Thread Peter Lieven
Am 16.06.21 um 14:26 schrieb Ilya Dryomov: > On Wed, May 19, 2021 at 4:26 PM Peter Lieven wrote: >> even luminous (version 12.2) is unmaintained for over 3 years now. >> Bump the requirement to get rid of the ifdef'ry in the code. >> Qemu 6.1 dropped the support for RHEL-7 which was the last suppo