Re: [Qemu-block] [PATCH v6 6/7] block/nbd-client: nbd reconnect

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > Implement reconnect. To achieve this: > > 1. add new modes: >connecting-wait: means, that reconnecting is in progress, and there > were small number of reconnect attempts, so all requests are > waiting for the connection. >

Re: [Qemu-block] [PATCH v6 5/7] qemu-coroutine-sleep: introduce qemu_co_sleep_wake

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > Introduce a function to gracefully wake-up a coroutine, sleeping in > qemu_co_sleep_ns() sleep. Maybe: Introduce a function to gracefully short-circuit the remainder of the delay for a coroutine sleeping in qemu_co_sleep_ns(). > > Signe

Re: [Qemu-block] [PATCH v6 4/7] block/nbd: add cmdline and qapi parameter reconnect-delay

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > Reconnect will be implemented in the following commit, so for now, > in semantics below, disconnect itself is a "serious error". > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > qapi/block-core.json | 12 +++- > block/nbd-

Re: [Qemu-block] [PATCH v6 3/7] block/nbd-client: move from quit to state

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > To implement reconnect we need several states for the client: > CONNECTED, QUIT and two different CONNECTING states. CONNECTING states > will be added in the following patches. This patch implements CONNECTED > and QUIT. > > QUIT means, th

Re: [Qemu-block] [PATCH v6 1/7] block/nbd-client: split connection_co start out of nbd_client_connect

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > nbd_client_connect is going to be used from connection_co, so, let's > refactor nbd_client_connect in advance, leaving io channel > configuration all in nbd_client_connect. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > block/nb

Re: [Qemu-block] [PATCH v6 2/7] block/nbd-client: use non-blocking io channel for nbd negotiation

2019-06-06 Thread Eric Blake
On 4/11/19 12:27 PM, Vladimir Sementsov-Ogievskiy wrote: > No reason to use blocking channel for negotiation and we'll benefit in > further reconnect feature, as qio_channel reads and writes will do > qemu_coroutine_yield while waiting for io completion. > > Signed-off-by: Vladimir Sementsov-Ogiev

Re: [Qemu-block] [PATCH 5/5] block/qcow2-bitmap: Count queued bitmaps towards directory_size

2019-06-06 Thread Eric Blake
On 6/6/19 1:41 PM, John Snow wrote: > Similarly to the previous commit, we need to also keep a ledger of the > additional directory size burden that we've not yet committed so we can > reject new additions sooner instead of later. > > Signed-off-by: John Snow > --- > block/qcow2.h| 1 +

Re: [Qemu-block] [PATCH 4/5] block/qcow2-bitmap: Count queued bitmaps towards nb_bitmaps

2019-06-06 Thread Eric Blake
On 6/6/19 1:41 PM, John Snow wrote: > When we check to see if we can store a bitmap, we don't check how many > we've queued up. This can cause a problem saving bitmaps on close > instead of when we request them to be added. With the stricter add > interface, prohibit these bitmaps specifically. >

Re: [Qemu-block] [PATCH 3/5] block/dirty-bitmap: rework bdrv_remove_persistent_dirty_bitmap

2019-06-06 Thread Eric Blake
On 6/6/19 1:41 PM, John Snow wrote: > Allow propagating error code information from > bdrv_remove_persistent_dirty_bitmap as well. > > Give it an interface that matches the newly revised > bdrv_add_persistent_dirty_bitmap, including removing the persistent flag > when the operation succeeds and re

Re: [Qemu-block] [PATCH 2/5] block/dirty-bitmap: Refactor bdrv_can_store_new_bitmap

2019-06-06 Thread Eric Blake
On 6/6/19 1:41 PM, John Snow wrote: > Instead of bdrv_can_store_new_bitmap, rework this as > bdrv_add_persistent_dirty_bitmap. This makes a more obvious symmetry > with bdrv_remove_persistent_dirty_bitmap. Most importantly, we are free > to modify the driver state because we know we ARE adding a bi

Re: [Qemu-block] [PATCH 1/5] block/qcow2-bitmap: allow bitmap_list_load to return an error code

2019-06-06 Thread Eric Blake
On 6/6/19 1:41 PM, John Snow wrote: > This simply makes this function a little more convenient to call, and in > a forthcoming patch gives us a return code we can report to the > caller. (Which in turn makes THOSE functions easier to call.) > > While we're here, remove the offset+size arguments wh

Re: [Qemu-block] [Qemu-devel] [PATCH 0/5] block/dirty-bitmap: check number and size constraints against queued bitmaps

2019-06-06 Thread John Snow
On 6/6/19 5:54 PM, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20190606184159.979-1-js...@redhat.com/ > > > > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Subject: [Qemu-devel] [PATCH 0/5] block/dirty-bitm

Re: [Qemu-block] [Qemu-devel] [PATCH 0/5] block/dirty-bitmap: check number and size constraints against queued bitmaps

2019-06-06 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190606184159.979-1-js...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH 0/5] block/dirty-bitmap: check number and size constraints against queued bitmaps Type: se

Re: [Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-06-06 Thread John Snow
On 6/5/19 3:47 AM, Maxim Levitsky wrote: > On Mon, 2019-06-03 at 18:25 -0400, John Snow wrote: >> >> On 4/17/19 3:53 PM, Maxim Levitsky wrote: >>> Phase bits are only set by the hardware to indicate new completions >>> and not by the device driver. >>> >>> Signed-off-by: Maxim Levitsky >>> ---

[Qemu-block] [PATCH 2/5] block/dirty-bitmap: Refactor bdrv_can_store_new_bitmap

2019-06-06 Thread John Snow
Instead of bdrv_can_store_new_bitmap, rework this as bdrv_add_persistent_dirty_bitmap. This makes a more obvious symmetry with bdrv_remove_persistent_dirty_bitmap. Most importantly, we are free to modify the driver state because we know we ARE adding a bitmap instead of simply being asked if we CAN

[Qemu-block] [PATCH 5/5] block/qcow2-bitmap: Count queued bitmaps towards directory_size

2019-06-06 Thread John Snow
Similarly to the previous commit, we need to also keep a ledger of the additional directory size burden that we've not yet committed so we can reject new additions sooner instead of later. Signed-off-by: John Snow --- block/qcow2.h| 1 + block/qcow2-bitmap.c | 13 - 2 files

[Qemu-block] [PATCH 0/5] block/dirty-bitmap: check number and size constraints against queued bitmaps

2019-06-06 Thread John Snow
When adding new persistent dirty bitmaps, we only check constraints against currently stored bitmaps, and ignore the pending number and size of any bitmaps yet to be stored. Rework the "can_store" and "remove" interface to explicit "add" and "remove", and begin keeping track of the queued burden w

[Qemu-block] [PATCH 3/5] block/dirty-bitmap: rework bdrv_remove_persistent_dirty_bitmap

2019-06-06 Thread John Snow
Allow propagating error code information from bdrv_remove_persistent_dirty_bitmap as well. Give it an interface that matches the newly revised bdrv_add_persistent_dirty_bitmap, including removing the persistent flag when the operation succeeds and refusing to operate on bitmaps that are not persis

[Qemu-block] [PATCH 1/5] block/qcow2-bitmap: allow bitmap_list_load to return an error code

2019-06-06 Thread John Snow
This simply makes this function a little more convenient to call, and in a forthcoming patch gives us a return code we can report to the caller. (Which in turn makes THOSE functions easier to call.) While we're here, remove the offset+size arguments which are only ever called with the same values

[Qemu-block] [PATCH 4/5] block/qcow2-bitmap: Count queued bitmaps towards nb_bitmaps

2019-06-06 Thread John Snow
When we check to see if we can store a bitmap, we don't check how many we've queued up. This can cause a problem saving bitmaps on close instead of when we request them to be added. With the stricter add interface, prohibit these bitmaps specifically. To match, make the remove interface more stric

Re: [Qemu-block] [Qemu-devel] [PATCH v6] ssh: switch from libssh2 to libssh

2019-06-06 Thread Pino Toscano
On Thursday, 6 June 2019 13:12:32 CEST Daniel P. Berrangé wrote: > On Wed, Jun 05, 2019 at 11:36:54PM +0200, Pino Toscano wrote: > > Rewrite the implementation of the ssh block driver to use libssh instead > > of libssh2. The libssh library has various advantages over libssh2: > > - easier API for

Re: [Qemu-block] [Qemu-devel] [PATCH 0/4] block: drop bs->job

2019-06-06 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190606154132.153330-1-vsement...@virtuozzo.com/ Hi, This series failed the asan 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 === #!/bin/ba

Re: [Qemu-block] [Qemu-devel] [PATCH 6/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Eric Blake
On 6/6/19 10:38 AM, Markus Armbruster wrote: > From: Kevin Wolf > > In commit 23dece19da4 ('file-posix: Make auto-read-only dynamic') , > auto-read-only=on changed its behaviour in file-posix for the 4.0 > release. This change cannot be detected through the usual mechanisms > like schema introspe

[Qemu-block] [PATCH 0/4] block: drop bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Hi all! These series follow Kevin's suggestions under https://lists.gnu.org/archive/html/qemu-devel/2019-06/msg00670.html [Qemu-devel] [PATCH v2 0/2] introduce pinned blk (hope you don't mind me using exactly your wording in 02) Vladimir Sementsov-Ogievskiy (4): block/replication: drop usage o

[Qemu-block] [PATCH 4/4] block: drop bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Drop remaining users of bs->job: 1. assertions actually duplicated by assert(!bs->refcnt) 2. trace-point seems not enough reason to change stream_start to return BlockJob pointer 3. Restricting creation of two jobs based on same bs is bad idea, as 3.1 Some jobs creates filters to be their mai

[Qemu-block] [PATCH 2/4] block/block-backend: blk_iostatus_reset: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in blk_iostatus_reset. blk_iostatus_reset() has only two callers: 1. blk_attach_dev(). This doesn't have anything to do with jobs and attaching a new guest device won't solve any problem the job encountered, so no reason to reset the

[Qemu-block] [PATCH 5/7] qapi: Allow documentation for features

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Features will be documented in a new part introduced by a "Features:" line, after arguments and before named sections. Signed-off-by: Kevin Wolf --- scripts/qapi/common.py | 43 ++ scripts/qapi/doc.py| 12 2 files change

[Qemu-block] [PATCH 3/4] blockdev: blockdev_mark_auto_del: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in blockdev_mark_auto_del: instead of looking at bs->job let's check all jobs for references to bs. Suggested-by: Kevin Wolf Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/blockjob.h | 9 + blockdev.c

[Qemu-block] [PATCH 1/4] block/replication: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in replication code. Additionally we have to return job pointer from some mirror APIs. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block_int.h | 12 ++-- block/mirror.c| 38 ++---

[Qemu-block] [PATCH 7/7] qapi: Simplify QAPIDoc implements its state machine

2019-06-06 Thread Markus Armbruster
QAPIDoc uses a state machine to for processing of documentation lines. Its state is encoded as an enum QAPIDoc._state (well, as enum-like class actually, thanks to our infatuation with Python 2). All we ever do with the state is calling the state's function to process a line of documentation. The

[Qemu-block] [PATCH 1/7] qapi: Add feature flags to struct types

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Sometimes, the behaviour of QEMU changes without a change in the QMP syntax (usually by allowing values or operations that previously resulted in an error). QMP clients may still need to know whether they can rely on the changed behavior. Let's add feature flags to the QAPI sche

[Qemu-block] [PATCH 2/7] tests/qapi-schema: Test for good feature lists in structs

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/qapi-schema/qapi-schema-test.json | 39 ++ tests/qapi-schema/qapi-schema-test.out | 43 + tests/qapi-schema/test-qapi.py | 4 +++ tests/test-qmp-cmds.c | 8 + 4 fil

[Qemu-block] [PATCH 0/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
This series adds optional feature lists to struct definitions in the QAPI schema and makes use of them to advertise the new behaviour of auto-read-only=on in file-posix. v5: - PATCH 4: restore a lost comment line, clean up comment whitespace for PEP 8 - PATCH 4+5: replace QAPIDoc._check_named_se

[Qemu-block] [PATCH 6/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf In commit 23dece19da4 ('file-posix: Make auto-read-only dynamic') , auto-read-only=on changed its behaviour in file-posix for the 4.0 release. This change cannot be detected through the usual mechanisms like schema introspection. Add a new feature flag to the schema to allow libv

[Qemu-block] [PATCH 4/7] qapi: Disentangle QAPIDoc code

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Documentation comments follow a certain structure: First, we have a text with a general description (called QAPIDoc.body). After this, descriptions of the arguments follow. Finally, we have a part that contains various named sections. The code doesn't show this structure, but ju

[Qemu-block] [PATCH 3/7] tests/qapi-schema: Error case tests for features in structs

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/Makefile.include | 6 ++ tests/qapi-schema/features-bad-type.err| 1 + tests/qapi-schema/features-bad-type.exit | 1 + tests/qapi-schema/features-bad-type.json | 3 +++ tests/qapi-schema/feature

Re: [Qemu-block] [PATCH v7 0/9] discard blockstats

2019-06-06 Thread Stefano Garzarella
On Tue, Jun 04, 2019 at 04:53:23PM +, Anton Nefedov wrote: > On 3/6/2019 1:09 PM, Stefano Garzarella wrote: > > On Tue, May 14, 2019 at 12:10:40PM +, Anton Nefedov wrote: > >> hi, > >> > >> yet another take for this patch series; please kindly consider these for > >> 4.1 > >> > >> Just a f

Re: [Qemu-block] [Qemu-devel] [PATCH v4 0/6] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
Kevin Wolf writes: > This series adds optional feature lists to struct definitions in the > QAPI schema and makes use of them to advertise the new behaviour of > auto-read-only=on in file-posix. PATCH 1-3,5-6 are ready. PATCH 4 could use a bit of love, but I think I don't need you to respin. L

Re: [Qemu-block] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 16:55, Eric Blake wrote: > On 6/6/19 8:48 AM, Vladimir Sementsov-Ogievskiy wrote: >> Hi all! >> >> Here is small new io API: blk_co_pcache, which does copy-on-read without >> extra buffer for read data. This means that only parts that needs COR >> will be actually read and only correspon

Re: [Qemu-block] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Eric Blake
On 6/6/19 8:48 AM, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > Here is small new io API: blk_co_pcache, which does copy-on-read without > extra buffer for read data. This means that only parts that needs COR > will be actually read and only corresponding buffers allocated, no more. > > This

[Qemu-block] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Hi all! Here is small new io API: blk_co_pcache, which does copy-on-read without extra buffer for read data. This means that only parts that needs COR will be actually read and only corresponding buffers allocated, no more. This allows to improve a bit block-stream and NBD_CMD_CACHE Vladimir Sem

[Qemu-block] [PATCH 3/3] nbd: improve CMD_CACHE: use blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
This helps to avoid extra io, allocations and memory copying. We assume here that CMD_CACHE is always used with copy-on-read, as otherwise it's a noop. Signed-off-by: Vladimir Sementsov-Ogievskiy --- nbd/server.c | 43 +++ 1 file changed, 35 insertions(+),

[Qemu-block] [PATCH 2/3] block/stream: use blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
This helps to avoid extra io, allocations and memory copying. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/stream.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/block/stream.c b/block/stream.c index 1a906fd860..8478aa4a50 100644 --- a/block/st

[Qemu-block] [PATCH 1/3] block: implement blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Do effective copy-on-read request when we don't need data actually. It will be used for block-stream and NBD_CMD_CACHE. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block.h | 8 +++- include/sysemu/block-backend.h | 7 +++ block/io.c | 18 +

Re: [Qemu-block] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 16:06, Kevin Wolf wrote: > Am 06.06.2019 um 14:29 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 06.06.2019 13:05, Kevin Wolf wrote: >>> Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: 05.06.2019 20:11, Kevin Wolf wrote: > Am 05.06.2019 um 14:32 hat Vladim

Re: [Qemu-block] [PATCH v4 4.5/6] qapi: Replace QAPIDoc._part by ._append_line, and rework comments

2019-06-06 Thread Kevin Wolf
Am 06.06.2019 um 14:01 hat Markus Armbruster geschrieben: > Signed-off-by: Markus Armbruster > --- > This is on top of the fixup I appended to my review of v4. I'd squash > all three patches together. > > The next patch needs to be updated for this. > > Unsquashed branch at git://repo.or.cz/qem

Re: [Qemu-block] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Kevin Wolf
Am 06.06.2019 um 14:29 hat Vladimir Sementsov-Ogievskiy geschrieben: > 06.06.2019 13:05, Kevin Wolf wrote: > > Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> 05.06.2019 20:11, Kevin Wolf wrote: > >>> Am 05.06.2019 um 14:32 hat Vladimir Sementsov-Ogievskiy geschrieben: > >

Re: [Qemu-block] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 13:05, Kevin Wolf wrote: > Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 05.06.2019 20:11, Kevin Wolf wrote: >>> Am 05.06.2019 um 14:32 hat Vladimir Sementsov-Ogievskiy geschrieben: child_role job already has .stay_at_node=true, so on bdrv_replace_node

[Qemu-block] [PATCH v4 4.5/6] qapi: Replace QAPIDoc._part by ._append_line, and rework comments

2019-06-06 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- This is on top of the fixup I appended to my review of v4. I'd squash all three patches together. The next patch needs to be updated for this. Unsquashed branch at git://repo.or.cz/qemu/armbru.git branch qapi-features. Let me know what you think. scripts/

Re: [Qemu-block] [PATCH v4 3/9] block/block: add BDRV flag for io_uring

2019-06-06 Thread Maxim Levitsky
On Mon, 2019-06-03 at 18:08 +0530, Aarushi Mehta wrote: > Signed-off-by: Aarushi Mehta > Reviewed-by: Stefan Hajnoczi > --- > include/block/block.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/block/block.h b/include/block/block.h > index 9b083e2bca..60f7c6c01c 100644 > ---

Re: [Qemu-block] [Qemu-devel] [PATCH v4 2/9] qapi/block-core: add option for io_uring

2019-06-06 Thread Maxim Levitsky
On Wed, 2019-06-05 at 07:58 +0200, Markus Armbruster wrote: > Aarushi Mehta writes: > > > Option only enumerates for hosts that support it. > > Blank line here, please. Same in other patches. > > > Signed-off-by: Aarushi Mehta > > --- > > qapi/block-core.json | 4 +++- > > 1 file changed, 3

Re: [Qemu-block] [PATCH v4 1/9] configure: permit use of io_uring

2019-06-06 Thread Maxim Levitsky
On Mon, 2019-06-03 at 18:08 +0530, Aarushi Mehta wrote: > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Aarushi Mehta > --- > configure | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git a/configure b/configure > index 6cdcfb2dc3..cb49ef0fcc 100755 > --- a/confi

Re: [Qemu-block] [Qemu-devel] [PATCH v4 4/6] qapi: Disentangle QAPIDoc code

2019-06-06 Thread Markus Armbruster
Kevin Wolf writes: > Documentation comments follow a certain structure: First, we have a text > with a general description (called QAPIDoc.body). After this, > descriptions of the arguments follow. Finally, we have a part that > contains various named sections. > > The code doesn't show this stru

Re: [Qemu-block] [Qemu-devel] [PATCH v6] ssh: switch from libssh2 to libssh

2019-06-06 Thread Daniel P . Berrangé
On Wed, Jun 05, 2019 at 11:36:54PM +0200, Pino Toscano wrote: > Rewrite the implementation of the ssh block driver to use libssh instead > of libssh2. The libssh library has various advantages over libssh2: > - easier API for authentication (for example for using ssh-agent) > - easier API for know

Re: [Qemu-block] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Kevin Wolf
Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: > 05.06.2019 20:11, Kevin Wolf wrote: > > Am 05.06.2019 um 14:32 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> child_role job already has .stay_at_node=true, so on bdrv_replace_node > >> operation these child are unchanged. M

[Qemu-block] [PATCH] nvme: do not advertise support for unsupported arbitration mechanism

2019-06-06 Thread Klaus Birkelund Jensen
The device mistakenly reports that the Weighted Round Robin with Urgent Priority Class arbitration mechanism is supported. It is not. Signed-off-by: Klaus Birkelund Jensen --- hw/block/nvme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 30e50f7a3853

Re: [Qemu-block] [PATCH v2 5/5] block/nvme: add support for discard

2019-06-06 Thread Maxim Levitsky
On Thu, 2019-06-06 at 11:19 +0800, Fam Zheng wrote: > On Wed, 04/17 22:53, Maxim Levitsky wrote: > > Signed-off-by: Maxim Levitsky > > --- > > block/nvme.c | 80 ++ > > block/trace-events | 2 ++ > > 2 files changed, 82 insertions(+) > > > > dif