Re: making a qdev bus available from a (non-qtree?) device

2021-05-11 Thread Philippe Mathieu-Daudé
On 5/11/21 8:17 PM, Klaus Jensen wrote: > Hi all, > > I need some help with grok'ing qdev busses. Stefan, Michael - David > suggested on IRC that I CC'ed you guys since you might have solved a > similar issue with virtio devices. I've tried to study how that works, > but I'm not exactly sure how

Re: [PATCH 3/3] virtio-net: Constify VirtIOFeature feature_sizes[]

2021-05-11 Thread Jason Wang
在 2021/5/11 下午6:41, Philippe Mathieu-Daudé 写道: Signed-off-by: Philippe Mathieu-Daudé --- hw/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 66b9ff45118..6b7e8dd04ef 100644 --- a/hw/net/virtio-net.c +++

Re: [PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[]

2021-05-11 Thread Jason Wang
在 2021/5/11 下午6:41, Philippe Mathieu-Daudé 写道: Signed-off-by: Philippe Mathieu-Daudé --- hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8d..f139cd7cc9c 100644 --- a/hw/block/virtio-blk.c

Re: [PATCH 1/3] hw/virtio: Pass virtio_feature_get_config_size() a const argument

2021-05-11 Thread Jason Wang
在 2021/5/11 下午6:41, Philippe Mathieu-Daudé 写道: The VirtIOFeature structure isn't modified, mark it const. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Jason Wang --- include/hw/virtio/virtio.h | 2 +- hw/virtio/virtio.c | 2 +- 2 files changed, 2 insertions(+), 2

Re: [PATCH v4 06/11] block: make BlockLimits::max_pwrite_zeroes 64bit

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > We are going to support 64 bit write-zeroes requests. Now update the > limit variable. It's absolutely safe. The variable is set in some > drivers, and used in bdrv_co_do_pwrite_zeroes(). > > Update also max_write_zeroes variable in

Re: [PATCH v4 05/11] block: use int64_t instead of uint64_t in copy_range driver handlers

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > We are generally moving to int64_t for both offset and bytes parameters > on all io paths. > > Main motivation is realization of 64-bit write_zeroes operation for > fast zeroing large disk chunks, up to the whole disk. > > We chose signed

Re: [PATCH v3 18/33] nbd/client-connection: shutdown connection on release

2021-05-11 Thread Roman Kagan
On Fri, Apr 16, 2021 at 11:08:56AM +0300, Vladimir Sementsov-Ogievskiy wrote: > Now, when thread can do negotiation and retry, it may run relatively > long. We need a mechanism to stop it, when user is not interested in > result anymore. So, on nbd_client_connection_release() let's shutdown > the

Re: [PATCH v4 04/11] block: use int64_t instead of uint64_t in driver write handlers

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > We are generally moving to int64_t for both offset and bytes parameters > on all io paths. > > Main motivation is realization of 64-bit write_zeroes operation for > fast zeroing large disk chunks, up to the whole disk. > > We chose signed

Re: [PATCH v3 17/33] nbd/client-connection: implement connection retry

2021-05-11 Thread Roman Kagan
On Fri, Apr 16, 2021 at 11:08:55AM +0300, Vladimir Sementsov-Ogievskiy wrote: > Add an option for thread to retry connection until success. We'll use > nbd/client-connection both for reconnect and for initial connection in > nbd_open(), so we need a possibility to use same NBDClientConnection >

Re: [PATCH v4 03/11] block: use int64_t instead of uint64_t in driver read handlers

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > We are going to convert .bdrv_co_preadv_part and .bdrv_co_pwritev_part > to int64_t type for offset and bytes parameters (as it's already done > for generic block/io.c layer). > > In qcow2 .bdrv_co_preadv_part is used in some places, so

Re: [PATCH] docs: add table of contents to QAPI references

2021-05-11 Thread Connor Kuehl
On 5/11/21 4:25 AM, Daniel P. Berrangé wrote: > The QAPI reference docs for the guest agent, storage daemon and QMP are > all rather long and hard to navigate unless you already know the name of > the command and can do full text search for it. > > A table of contents in each doc will help people

making a qdev bus available from a (non-qtree?) device

2021-05-11 Thread Klaus Jensen
Hi all, I need some help with grok'ing qdev busses. Stefan, Michael - David suggested on IRC that I CC'ed you guys since you might have solved a similar issue with virtio devices. I've tried to study how that works, but I'm not exactly sure how to apply it to the issue I'm having.

Re: [PATCH v4 02/11] qcow2: check request on vmstate save/load path

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > We modify the request by adding an offset to vmstate. Let's check the > modified request. It will help us to safely move .bdrv_co_preadv_part > and .bdrv_co_pwritev_part to int64_t type of offset and bytes. > > Signed-off-by: Vladimir

Re: [PATCH v4 01/11] block/io: bring request check to bdrv_co_{read,write}v_vmstate

2021-05-11 Thread Eric Blake
On 3/24/21 3:51 PM, Vladimir Sementsov-Ogievskiy wrote: > There are only two drivers supporting vmstate: qcow2 and sheepdog. > Sheepdog is deprecated. In qcow2 these requests go through > .bdrv_co_p{read,write}v_part handlers. > > So, let's do our basic check for the request on vmstate generic >

Re: [PATCH v2 10/10] qcow2-refcount: check_refblocks(): add separate message for reserved

2021-05-11 Thread Kirill Tkhai
On 05.05.2021 09:59, Vladimir Sementsov-Ogievskiy wrote: > Split checking for reserved bits out of aligned offset check. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > Reviewed-by: Eric Blake Tested-by: Kirill Tkhai > --- > block/qcow2.h | 1 + > block/qcow2-refcount.c | 10

Re: [PATCH] hmp: Fix loadvm to resume the VM on success instead of failure

2021-05-11 Thread Daniel P . Berrangé
On Tue, May 11, 2021 at 06:58:01PM +0200, Kevin Wolf wrote: > Am 11.05.2021 um 18:49 hat Daniel P. Berrangé geschrieben: > > On Tue, May 11, 2021 at 06:31:51PM +0200, Kevin Wolf wrote: > > > Commit f61fe11aa6f broke hmp_loadvm() by adding an incorrect negation > > > when converting from 0/-errno

Re: [PATCH] hmp: Fix loadvm to resume the VM on success instead of failure

2021-05-11 Thread Kevin Wolf
Am 11.05.2021 um 18:49 hat Daniel P. Berrangé geschrieben: > On Tue, May 11, 2021 at 06:31:51PM +0200, Kevin Wolf wrote: > > Commit f61fe11aa6f broke hmp_loadvm() by adding an incorrect negation > > when converting from 0/-errno return values to a bool value. The result > > is that loadvm resumes

Re: [PATCH v2 09/10] qcow2-refcount: check_refcounts_l1(): check reserved bits

2021-05-11 Thread Kirill Tkhai
On 05.05.2021 09:59, Vladimir Sementsov-Ogievskiy wrote: > Signed-off-by: Vladimir Sementsov-Ogievskiy > Reviewed-by: Eric Blake > --- > block/qcow2.h | 1 + > block/qcow2-refcount.c | 6 ++ > 2 files changed, 7 insertions(+) > > diff --git a/block/qcow2.h b/block/qcow2.h > index

Re: [PATCH v2 07/10] qcow2-refcount: check_refcounts_l2(): check reserved bits

2021-05-11 Thread Kirill Tkhai
On 05.05.2021 09:59, Vladimir Sementsov-Ogievskiy wrote: > Signed-off-by: Vladimir Sementsov-Ogievskiy > Reviewed-by: Eric Blake > --- > block/qcow2.h | 1 + > block/qcow2-refcount.c | 12 +++- > 2 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/block/qcow2.h

Re: [PATCH 0/3] hw/virtio: Constify VirtIOFeature

2021-05-11 Thread Richard Henderson
On 5/11/21 5:41 AM, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (3): hw/virtio: Pass virtio_feature_get_config_size() a const argument virtio-blk: Constify VirtIOFeature feature_sizes[] virtio-net: Constify VirtIOFeature feature_sizes[] Reviewed-by: Richard Henderson r~

Re: [PATCH v2 06/10] qcow2-refcount: check_refcounts_l2(): check l2_bitmap

2021-05-11 Thread Kirill Tkhai
On 05.05.2021 09:59, Vladimir Sementsov-Ogievskiy wrote: > Check subcluster bitmap of the l2 entry for different types of > clusters: > > - for compressed it must be zero > - for allocated check consistency of two parts of the bitmap > - for unallocated all subclusters should be unallocated >

Re: [PATCH] hmp: Fix loadvm to resume the VM on success instead of failure

2021-05-11 Thread Daniel P . Berrangé
On Tue, May 11, 2021 at 06:31:51PM +0200, Kevin Wolf wrote: > Commit f61fe11aa6f broke hmp_loadvm() by adding an incorrect negation > when converting from 0/-errno return values to a bool value. The result > is that loadvm resumes the VM now if it failed and keeps it stopped if > it failed. Fix it

[PATCH] hmp: Fix loadvm to resume the VM on success instead of failure

2021-05-11 Thread Kevin Wolf
Commit f61fe11aa6f broke hmp_loadvm() by adding an incorrect negation when converting from 0/-errno return values to a bool value. The result is that loadvm resumes the VM now if it failed and keeps it stopped if it failed. Fix it to restore the old behaviour and do it the other way around.

[PULL 1/2] hw/block/pflash_cfi02: Set romd mode in pflash_cfi02_realize()

2021-05-11 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé The ROMD mode isn't related to mapping setup. Ideally we'd set this mode when the state machine resets, but for now simply move it to pflash_cfi02_realize() to not introduce logical change. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson

[PULL 2/2] hw/block/pflash_cfi02: Do not create aliases when not necessary

2021-05-11 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé When no mapping is requested, it is pointless to create alias regions. Only create them when multiple mappings are requested to simplify the memory layout. The flatview is not changed. For example using 'qemu-system-sh4 -M r2d -S -monitor stdio', * before:

[PULL 0/2] pflash patches for 2021-05-11

2021-05-11 Thread Philippe Mathieu-Daudé
-20210511 for you to fetch changes up to 27545c9df24f509c6d1c1f17478281a357125554: hw/block/pflash_cfi02: Do not create aliases when not necessary (2021-05-11 18:11:02 +0200) Parallel NOR Flash patches queue - Simplify memory

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Hannes Reinecke
On 5/11/21 6:03 PM, Klaus Jensen wrote: On May 11 16:54, Hannes Reinecke wrote: On 5/11/21 3:37 PM, Klaus Jensen wrote: On May 11 15:12, Hannes Reinecke wrote: On 5/11/21 2:22 PM, Klaus Jensen wrote: [ .. ] The hotplug fix looks good - I'll post a series that tries to integrate both. Ta.

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Klaus Jensen
On May 11 16:54, Hannes Reinecke wrote: On 5/11/21 3:37 PM, Klaus Jensen wrote: On May 11 15:12, Hannes Reinecke wrote: On 5/11/21 2:22 PM, Klaus Jensen wrote: [ .. ] The hotplug fix looks good - I'll post a series that tries to integrate both. Ta. The more I think about it, the more I

[PATCH] block: add more commands to preconfig mode

2021-05-11 Thread Paolo Bonzini
Most block device commands do not require a fully constructed machine. Allow running them before machine initialization has concluded. Signed-off-by: Paolo Bonzini --- hmp-commands.hx| 14 + qapi/block-core.json | 117 +++--

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Hannes Reinecke
On 5/11/21 3:37 PM, Klaus Jensen wrote: > On May 11 15:12, Hannes Reinecke wrote: >> On 5/11/21 2:22 PM, Klaus Jensen wrote: [ .. ] >>> The hotplug fix looks good - I'll post a series that tries to integrate >>> both. >>> >> Ta. >> >> The more I think about it, the more I think we should be

Re: [PATCH] block: Improve backing file validation

2021-05-11 Thread lizhij...@fujitsu.com
On 2021/5/10 16:41, Daniel P. Berrangé wrote: > On Mon, May 10, 2021 at 12:30:45PM +0800, Li Zhijian wrote: >> Image below user cases: >> case 1: >> ``` >> $ qemu-img create -f raw source.raw 1G >> $ qemu-img create -f qcow2 -F raw -b source.raw ./source.raw >> qemu-img info source.raw >> image:

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Klaus Jensen
On May 11 15:12, Hannes Reinecke wrote: On 5/11/21 2:22 PM, Klaus Jensen wrote: On May 11 09:35, Hannes Reinecke wrote: Ever since commit e570768566 ("hw/block/nvme: support for shared namespace in subsystem") NVMe PCI hotplug is broken, as the PCI hotplug infrastructure will only work for the

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Hannes Reinecke
On 5/11/21 2:22 PM, Klaus Jensen wrote: > On May 11 09:35, Hannes Reinecke wrote: >> Ever since commit e570768566 ("hw/block/nvme: support for shared >> namespace in subsystem") NVMe PCI hotplug is broken, as the PCI >> hotplug infrastructure will only work for the nvme devices (which >> are PCI

Re: [PATCH v2 0/6] hw/southbridge: QOM'ify vt82c686 as VT82C686B_SOUTHBRIDGE

2021-05-11 Thread BALATON Zoltan
On Tue, 11 May 2021, Philippe Mathieu-Daudé wrote: Hi Zoltan, On 5/11/21 1:28 PM, BALATON Zoltan wrote: On Tue, 11 May 2021, Philippe Mathieu-Daudé wrote: The motivation behind this series is to remove the isa_get_irq(NULL) call to simplify the ISA generic model. Since v1: - rebased on top

Re: [PATCH 4/6] progressmeter: protect with a mutex

2021-05-11 Thread Paolo Bonzini
On 10/05/21 13:28, Vladimir Sementsov-Ogievskiy wrote: Could we instead add a c file and add the structure private? Then we'll have progress_new() and progress_free() APIs instead. This way, it would be a lot simpler to control that nobady use structure fields directly. I don't know...

Re: [PATCH v2 0/6] hw/southbridge: QOM'ify vt82c686 as VT82C686B_SOUTHBRIDGE

2021-05-11 Thread Philippe Mathieu-Daudé
Hi Zoltan, On 5/11/21 1:28 PM, BALATON Zoltan wrote: > On Tue, 11 May 2021, Philippe Mathieu-Daudé wrote: >> The motivation behind this series is to remove the >> isa_get_irq(NULL) call to simplify the ISA generic model. >> >> Since v1: >> - rebased on top of

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Klaus Jensen
On May 11 09:35, Hannes Reinecke wrote: Ever since commit e570768566 ("hw/block/nvme: support for shared namespace in subsystem") NVMe PCI hotplug is broken, as the PCI hotplug infrastructure will only work for the nvme devices (which are PCI devices), but not for any attached namespaces. So

Re: [PATCH v2 0/6] hw/southbridge: QOM'ify vt82c686 as VT82C686B_SOUTHBRIDGE

2021-05-11 Thread BALATON Zoltan
On Tue, 11 May 2021, Philippe Mathieu-Daudé wrote: The motivation behind this series is to remove the isa_get_irq(NULL) call to simplify the ISA generic model. Since v1: - rebased on top of remotes/dg-gitlab/tags/ppc-for-6.1-20210504 I'll try to have a look at these later but some notes: The

[PATCH 0/3] hw/virtio: Constify VirtIOFeature

2021-05-11 Thread Philippe Mathieu-Daudé
Trivial patches to keep VirtIOFeature arrays read-only (better safe than sorry). Philippe Mathieu-Daudé (3): hw/virtio: Pass virtio_feature_get_config_size() a const argument virtio-blk: Constify VirtIOFeature feature_sizes[] virtio-net: Constify VirtIOFeature feature_sizes[]

[PATCH 3/3] virtio-net: Constify VirtIOFeature feature_sizes[]

2021-05-11 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 66b9ff45118..6b7e8dd04ef 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -89,7 +89,7 @@

[PATCH 1/3] hw/virtio: Pass virtio_feature_get_config_size() a const argument

2021-05-11 Thread Philippe Mathieu-Daudé
The VirtIOFeature structure isn't modified, mark it const. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/virtio/virtio.h | 2 +- hw/virtio/virtio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index

Re: [PATCH v3 16/33] nbd/client-connection: add possibility of negotiation

2021-05-11 Thread Roman Kagan
On Fri, Apr 16, 2021 at 11:08:54AM +0300, Vladimir Sementsov-Ogievskiy wrote: > Add arguments and logic to support nbd negotiation in the same thread > after successful connection. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > include/block/nbd.h | 9 +++- > block/nbd.c

[PATCH 2/3] virtio-blk: Constify VirtIOFeature feature_sizes[]

2021-05-11 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index d28979efb8d..f139cd7cc9c 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -40,7 +40,7 @@ *

Re: [PATCH v3 0/2] virtio-blk: Convert QEMUBH callback to "bitops.h" API

2021-05-11 Thread Stefan Hajnoczi
On Mon, May 10, 2021 at 10:07:56PM +0200, Philippe Mathieu-Daudé wrote: > This series follow a suggestion from Stefan to use the bitops > API in virtio-blk: > https://www.mail-archive.com/qemu-devel@nongnu.org/msg805139.html > > Since v2: > - clear bitmap to avoid spurious interrupts! (Stefan) >

Re: [PULL 0/9] scripts/simplebench patches

2021-05-11 Thread Vladimir Sementsov-Ogievskiy
11.05.2021 10:39, Peter Maydell wrote: On Tue, 11 May 2021 at 06:59, Vladimir Sementsov-Ogievskiy wrote: Hi! Kindly ping, or what's wrong with it? You've never sent me a pullreq before. Pull requests from new people are a pain and take more time to deal with, so I only look at them when I

[PATCH] docs: add table of contents to QAPI references

2021-05-11 Thread Daniel P . Berrangé
The QAPI reference docs for the guest agent, storage daemon and QMP are all rather long and hard to navigate unless you already know the name of the command and can do full text search for it. A table of contents in each doc will help people locate stuff much more easily. Signed-off-by: Daniel

Re: [PATCH v2 5/5] blkdebug: protect rules and suspended_reqs with a lock

2021-05-11 Thread Emanuele Giuseppe Esposito
On 11/05/2021 10:37, Paolo Bonzini wrote: On 07/05/21 17:29, Eric Blake wrote: +    qemu_mutex_lock(>lock);   QLIST_FOREACH(r, >suspended_reqs, next) {   if (!strcmp(r->tag, tag)) { +    qemu_mutex_unlock(>lock);   return true;   }   } +   

Re: [PATCH v2 5/5] blkdebug: protect rules and suspended_reqs with a lock

2021-05-11 Thread Paolo Bonzini
On 07/05/21 17:29, Eric Blake wrote: +qemu_mutex_lock(>lock); QLIST_FOREACH(r, >suspended_reqs, next) { if (!strcmp(r->tag, tag)) { +qemu_mutex_unlock(>lock); return true; } } +qemu_mutex_unlock(>lock); return false; Would

Re: [PATCH v2] block: Improve backing file validation

2021-05-11 Thread Daniel P . Berrangé
On Tue, May 11, 2021 at 01:55:18PM +0800, Li Zhijian wrote: > Image below user cases: > case 1: > ``` > $ qemu-img create -f raw source.raw 1G > $ qemu-img create -f qcow2 -F raw -b source.raw ./source.raw > qemu-img info source.raw > image: source.raw > file format: qcow2 > virtual size: 193K

Re: [PATCH 6/6] aiopool: protect with a mutex

2021-05-11 Thread Paolo Bonzini
On 10/05/21 13:56, Vladimir Sementsov-Ogievskiy wrote: +    } -    if (task->ret < 0 && pool->status == 0) { -    pool->status = task->ret; +    if (ret < 0) { +    qatomic_cmpxchg(>status, 0, ret);   } Can we just do it inside critical section above and avoid extra cmpxchg?

Re: [PATCH 0/3] vhost-user-blk-test: add tests for the vhost-user-blk server

2021-05-11 Thread Stefan Hajnoczi
On Mon, Mar 22, 2021 at 09:23:24AM +, Stefan Hajnoczi wrote: > These patches add a qtest for the vhost-user-blk server. CI found several > issues that caused these patches to be dropped from Michael Tsirkin and Kevin > Wolf's pull requests in the past. Hopefully they will go in smoothly this

Re: [PATCH 5/6] co-shared-resource: protect with a mutex

2021-05-11 Thread Paolo Bonzini
On 10/05/21 13:40, Vladimir Sementsov-Ogievskiy wrote: co-shared-resource is currently not thread-safe, as also reported in co-shared-resource.h. Add a QemuMutex because co_try_get_from_shres can also be invoked from non-coroutine context. But it doesn't. It's called only from

Re: [PATCH] block/export: improve vu_blk_sect_range_ok()

2021-05-11 Thread Stefan Hajnoczi
On Wed, Mar 31, 2021 at 03:27:27PM +0100, Stefan Hajnoczi wrote: > The checks in vu_blk_sect_range_ok() assume VIRTIO_BLK_SECTOR_SIZE is > equal to BDRV_SECTOR_SIZE. This is true, but let's add a > QEMU_BUILD_BUG_ON() to make it explicit. > > We might as well check that the request buffer size is

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Philippe Mathieu-Daudé
Cc'ing Klaus (maintainer) On 5/11/21 9:35 AM, Hannes Reinecke wrote: > Ever since commit e570768566 ("hw/block/nvme: support for shared > namespace in subsystem") NVMe PCI hotplug is broken, as the PCI > hotplug infrastructure will only work for the nvme devices (which > are PCI devices), but not

Re: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210511073511.32511-1-h...@suse.de/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210511073511.32511-1-h...@suse.de Subject: [PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

Re: [PULL 0/9] scripts/simplebench patches

2021-05-11 Thread Peter Maydell
On Tue, 11 May 2021 at 06:59, Vladimir Sementsov-Ogievskiy wrote: > > Hi! > > Kindly ping, or what's wrong with it? You've never sent me a pullreq before. Pull requests from new people are a pain and take more time to deal with, so I only look at them when I have the time to do that. Pull

[PATCH] hw/block/nvme: re-enable NVMe PCI hotplug

2021-05-11 Thread Hannes Reinecke
Ever since commit e570768566 ("hw/block/nvme: support for shared namespace in subsystem") NVMe PCI hotplug is broken, as the PCI hotplug infrastructure will only work for the nvme devices (which are PCI devices), but not for any attached namespaces. So when re-adding the NVMe PCI device via

[PATCH v2] block: Improve backing file validation

2021-05-11 Thread Li Zhijian
Image below user cases: case 1: ``` $ qemu-img create -f raw source.raw 1G $ qemu-img create -f qcow2 -F raw -b source.raw ./source.raw qemu-img info source.raw image: source.raw file format: qcow2 virtual size: 193K (197120 bytes) disk size: 196K cluster_size: 65536 backing file: source.raw