Re: [PATCH 1/2] block/export: add vhost-user-blk multi-queue support

2020-10-01 Thread Markus Armbruster
Stefan Hajnoczi writes: > Allow the number of queues to be configured using --export > vhost-user-blk,num-queues=N. This setting should match the QEMU --device > vhost-user-blk-pci,num-queues=N setting but QEMU vhost-user-blk.c lowers > its own value if the vhost-user-blk backend offers fewer

Re: [PATCH v2 11/13] block/export: convert vhost-user-blk server to block export API

2020-10-01 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, Sep 30, 2020 at 04:33:18PM +0200, Markus Armbruster wrote: >> Stefan Hajnoczi writes: >> >> > On Wed, Sep 30, 2020 at 07:28:58AM +0200, Markus Armbruster wrote: >> >> Stefan Hajnoczi writes: >> >> >> >> > Use the new QAPI block exports API instead of

Re: [PATCH v2] block/nvme: Add driver statistics for access alignment and hw errors

2020-10-01 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Keep statistics of some hardware errors, and number of > aligned/unaligned I/O accesses. > > QMP example booting a full RHEL 8.3 aarch64 guest: > > { "execute": "query-blockstats" } > { > "return": [ > { > "device": "", >

RE: [PATCH] hw/block/nvme: update nsid when registered

2020-10-01 Thread Dmitry Fomichev
> -Original Message- > From: Qemu-devel bounces+dmitry.fomichev=wdc@nongnu.org> On Behalf Of Klaus > Jensen > Sent: Thursday, October 1, 2020 5:51 PM > To: qemu-de...@nongnu.org > Cc: Kevin Wolf ; qemu-block@nongnu.org; Klaus Jensen > ; Max Reitz ; Klaus Jensen > ; Keith Busch >

Re: [ovirt-devel] Disk sizes not updated on unmap/discard

2020-10-01 Thread Nir Soffer
On Wed, Sep 30, 2020 at 1:49 PM Tomáš Golembiovský wrote: > > Hi, > > currently, when we run virt-sparsify on VM or user runs VM with discard > enabled and when the disk is on block storage in qcow, the results are > not reflected in oVirt. The blocks get discarded, storage can reuse them > and

RE: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Dmitry Fomichev
> -Original Message- > From: Klaus Jensen > Sent: Thursday, October 1, 2020 6:15 PM > To: Dmitry Fomichev > Cc: Keith Busch ; Klaus Jensen > ; Kevin Wolf ; Philippe > Mathieu-Daudé ; Maxim Levitsky > ; Fam Zheng ; Niklas Cassel > ; Damien Le Moal ; > qemu-block@nongnu.org;

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Klaus Jensen
On Sep 28 11:35, Dmitry Fomichev wrote: > From: Niklas Cassel > > Namespace Types introduce a new command set, "I/O Command Sets", > that allows the host to retrieve the command sets associated with > a namespace. Introduce support for the command set and enable > detection for the NVM Command

[PATCH] hw/block/nvme: update nsid when registered

2020-10-01 Thread Klaus Jensen
From: Klaus Jensen If the user does not specify an nsid parameter on the nvme-ns device, nvme_register_namespace will find the first free namespace id and assign that. This fix makes sure the assigned id is saved. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 2 +- 1 file changed, 1

Re: [PULL 0/9] Ide patches

2020-10-01 Thread Peter Maydell
On Thu, 1 Oct 2020 at 18:46, John Snow wrote: > > The following changes since commit 37a712a0f969ca2df7f01182409a6c4825cebfb5: > > Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' > into staging (2020-10-01 12:23:19 +0100) > > are available in the Git repository at: > >

Re: [PATCH 0/9] nvme qemu cleanups and fixes

2020-10-01 Thread Klaus Jensen
On Sep 30 15:04, Keith Busch wrote: > After going through the zns enabling, I notice the controller enabling > is not correct. Then I just continued maked more stuff. The series, I > think, contains some of the less controversial patches from the two > conflicting zns series, preceeded by some

Re: [PATCH 1/9] hw/block/nvme: remove pointless rw indirection

2020-10-01 Thread Klaus Jensen
On Oct 1 06:05, Klaus Jensen wrote: > On Sep 30 15:04, Keith Busch wrote: > > The code switches on the opcode to invoke a function specific to that > > opcode. There's no point in consolidating back to a common function that > > just switches on that same opcode without any actual common code. >

[PULL 9/9] ide: cancel pending callbacks on SRST

2020-10-01 Thread John Snow
The SRST implementation did not keep up with the rest of IDE; it is possible to perform a weak reset on an IDE device to remove the BSY/DRQ bits, and then issue writes to the control/device registers which can cause chaos with the state machine. Fix that by actually performing a real reset.

[PULL 7/9] ide: remove magic constants from the device register

2020-10-01 Thread John Snow
(In QEMU, we call this the "select" register.) My memory isn't good enough to memorize what these magic runes do. Label them to prevent mixups from happening in the future. Side note: I assume it's safe to always set 0xA0 even though ATA2 claims these bits are reserved, because ATA3 immediately

[PULL 4/9] ide: don't tamper with the device register

2020-10-01 Thread John Snow
In real ISA operation, register writes go out to an entire bus channel and all listening devices receive the write. The devices do not toggle the DEV bit based on their own configuration, nor does the HBA intermediate or tamper with that value. The reality of the matter is that DEV0/DEV1

[PULL 3/9] ide: rename cmd_write to ctrl_write

2020-10-01 Thread John Snow
It's the Control register, part of the Control block -- Command is misleading here. Rename all related functions and constants. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé --- include/hw/ide/internal.h | 9 + hw/ide/core.c | 12 ++--

[PULL 1/9] MAINTAINERS: Update my git address

2020-10-01 Thread John Snow
I am switching from github to gitlab. Signed-off-by: John Snow --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ade11002022..b76fb31861b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1577,7 +1577,7 @@ F:

[PULL 5/9] ide: model HOB correctly

2020-10-01 Thread John Snow
I have been staring at this FIXME for years and I never knew what it meant. I finally stumbled across it! When writing to the command registers, the old value is shifted into a HOB copy of the register and the new value is written into the primary register. When reading registers, the value

Re: [PATCH v2] hw/block/nand: Decommission the NAND museum

2020-10-01 Thread Philippe Mathieu-Daudé
ping qemu-block or qemu-arm? On 9/15/20 7:16 PM, Philippe Mathieu-Daudé wrote: > This is the QEMU equivalent of this Linux commit (but 7 years later): > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f7025a43a9da2 > > The MTD subsystem has its own small museum

[PULL 8/9] ide: clear interrupt on command write

2020-10-01 Thread John Snow
Not known to fix any bug, but I couldn't help but notice that ATA specifies that writing to this register should clear an interrupt. ATA7: Section 5.3.3 (Command register - Effect) ATA6: Section 7.4.4 (Command register - Effect) ATA5: Section 7.4.4 (Command register - Effect) ATA4: Section 7.4.4

[PULL 2/9] hw/ide/ahci: Do not dma_memory_unmap(NULL)

2020-10-01 Thread John Snow
From: Philippe Mathieu-Daudé libFuzzer triggered the following assertion: cat << EOF | qemu-system-i386 -M pc-q35-5.0 \ -nographic -monitor none -serial none -qtest stdio outl 0xcf8 0x8000fa24 outl 0xcfc 0xe1068000 outl 0xcf8 0x8000fa04 outw 0xcfc 0x7 outl 0xcf8 0x8000fb20

[PULL 6/9] ide: reorder set/get sector functions

2020-10-01 Thread John Snow
Reorder these just a pinch to make them more obvious at a glance what the addressing mode is. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé --- hw/ide/core.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/hw/ide/core.c

[PULL 0/9] Ide patches

2020-10-01 Thread John Snow
The following changes since commit 37a712a0f969ca2df7f01182409a6c4825cebfb5: Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging (2020-10-01 12:23:19 +0100) are available in the Git repository at: https://gitlab.com/jsnow/qemu.git tags/ide-pull-request for

Re: [PATCH 3/9] hw/block/nvme: support per-namespace smart log

2020-10-01 Thread Klaus Jensen
On Oct 1 10:30, Keith Busch wrote: > On Thu, Oct 01, 2020 at 07:18:37PM +0200, Klaus Jensen wrote: > > OK, so I agree that it makes sense for it to be supported on a per > > namespace basis, but I think the spec is just keeping the door open for > > future namespace specific stuff in the log page

Re: [PATCH qemu 4/4] iotests: add test for bitmap mirror

2020-10-01 Thread Max Reitz
On 22.09.20 11:14, Fabian Grünbichler wrote: > heavily based on/practically forked off iotest 257 for bitmap backups, > but: > > - no writes to filter node 'mirror-top' between completion and > finalization, as those seem to deadlock? > - no inclusion of not-yet-available full/top sync modes in

Re: [PATCH 3/9] hw/block/nvme: support per-namespace smart log

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 07:18:37PM +0200, Klaus Jensen wrote: > OK, so I agree that it makes sense for it to be supported on a per > namespace basis, but I think the spec is just keeping the door open for > future namespace specific stuff in the log page - currently there is > none. > > Figure 94

Re: [PATCH 3/9] hw/block/nvme: support per-namespace smart log

2020-10-01 Thread Klaus Jensen
On Oct 1 09:20, Keith Busch wrote: > On Thu, Oct 01, 2020 at 06:10:57AM +0200, Klaus Jensen wrote: > > On Sep 30 15:04, Keith Busch wrote: > > > Let the user specify a specific namespace if they want to get access > > > stats for a specific namespace. > > > > > > > I don't think this makes

Re: [PATCH qemu 3/4] mirror: move some checks to qmp

2020-10-01 Thread Max Reitz
On 22.09.20 11:14, Fabian Grünbichler wrote: > and assert the passing conditions in block/mirror.c. while incremental > mode was never available for drive-mirror, it makes the interface more > in line with backup block jobs. > > Signed-off-by: Fabian Grünbichler > --- > block/mirror.c | 28

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 04:23:56PM +, Niklas Cassel wrote: > But I see your point, all of this code: > > if (NVME_CC_CSS(data) != NVME_CC_CSS(n->bar.cc)) { > if (NVME_CC_EN(n->bar.cc)) { > NVME_GUEST_ERR(pci_nvme_err_change_css_when_enabled, >

Re: [PATCH qemu 2/4] drive-mirror: add support for conditional and always bitmap sync modes

2020-10-01 Thread Max Reitz
On 22.09.20 11:14, Fabian Grünbichler wrote: > From: John Snow > > Teach mirror two new tricks for using bitmaps: > > Always: no matter what, we synchronize the copy_bitmap back to the > sync_bitmap. In effect, this allows us resume a failed mirror at a later > date, since the target bdrv

[PATCH v2] block/nvme: Add driver statistics for access alignment and hw errors

2020-10-01 Thread Philippe Mathieu-Daudé
Keep statistics of some hardware errors, and number of aligned/unaligned I/O accesses. QMP example booting a full RHEL 8.3 aarch64 guest: { "execute": "query-blockstats" } { "return": [ { "device": "", "node-name": "drive0", "stats": {

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Niklas Cassel
On Thu, Oct 01, 2020 at 08:59:31AM -0700, Keith Busch wrote: > On Thu, Oct 01, 2020 at 03:50:35PM +, Niklas Cassel wrote: > > On Thu, Oct 01, 2020 at 09:29:22AM -0600, Keith Busch wrote: > > > On Thu, Oct 01, 2020 at 11:22:46AM +, Niklas Cassel wrote: > > > > On Mon, Sep 28, 2020 at

Re: [PATCH v7 06/13] qmp: Call monitor_set_cur() only in qmp_dispatch()

2020-10-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 30.09.2020 um 19:20 hat Dr. David Alan Gilbert geschrieben: >> * Kevin Wolf (kw...@redhat.com) wrote: >> > Am 30.09.2020 um 15:14 hat Markus Armbruster geschrieben: >> > > Kevin Wolf writes: >> > > >> > > > Am 30.09.2020 um 11:26 hat Markus Armbruster geschrieben: >> >

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 03:50:35PM +, Niklas Cassel wrote: > On Thu, Oct 01, 2020 at 09:29:22AM -0600, Keith Busch wrote: > > On Thu, Oct 01, 2020 at 11:22:46AM +, Niklas Cassel wrote: > > > On Mon, Sep 28, 2020 at 11:35:19AM +0900, Dmitry Fomichev wrote: > > > > From: Niklas Cassel > > >

Re: [PATCH v2 1/4] keyval: Parse help options

2020-10-01 Thread Markus Armbruster
Fried brain today, I have to go through this real slow. I apologize in advance for being denser and more error-prone than usual. Kevin Wolf writes: > This adds a new parameter 'help' to keyval_parse() that enables parsing > of help options. If NULL is passed, the function behaves the same as >

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Niklas Cassel
On Thu, Oct 01, 2020 at 09:29:22AM -0600, Keith Busch wrote: > On Thu, Oct 01, 2020 at 11:22:46AM +, Niklas Cassel wrote: > > On Mon, Sep 28, 2020 at 11:35:19AM +0900, Dmitry Fomichev wrote: > > > From: Niklas Cassel > > > @@ -,6 +2328,30 @@ static void nvme_write_bar(NvmeCtrl *n, hwaddr

Re: [PATCH v2] fdc: check null block pointer before r/w data transfer

2020-10-01 Thread John Snow
On 9/22/20 5:27 AM, P J P wrote: From: Prasad J Pandit While transferring data via fdctrl_read/write_data() routines, check that current drive does not have a null block pointer. Avoid null pointer dereference. Will get to these and other IDE issues ASAP. --js

Re: [PULL 00/17] Block patches

2020-10-01 Thread Vladimir Sementsov-Ogievskiy
01.10.2020 18:02, Stefan Hajnoczi wrote: On Thu, Oct 01, 2020 at 12:23:00PM +0100, Peter Maydell wrote: On Wed, 30 Sep 2020 at 11:13, Stefan Hajnoczi wrote: The following changes since commit b150cb8f67bf491a49a1cb1c7da151eeacbdbcc9: Merge remote-tracking branch

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 11:22:46AM +, Niklas Cassel wrote: > On Mon, Sep 28, 2020 at 11:35:19AM +0900, Dmitry Fomichev wrote: > > From: Niklas Cassel > > @@ -,6 +2328,30 @@ static void nvme_write_bar(NvmeCtrl *n, hwaddr > > offset, uint64_t data, > > break; > > case 0x14:

Re: [PATCH 8/9] hw/block/nvme: add trace event for requests with non-zero status code

2020-10-01 Thread Philippe Mathieu-Daudé
On 10/1/20 12:04 AM, Keith Busch wrote: > From: Klaus Jensen > > If a command results in a non-zero status code, trace it. > > Signed-off-by: Klaus Jensen > Signed-off-by: Keith Busch > --- > hw/block/nvme.c | 6 ++ > hw/block/trace-events | 1 + > 2 files changed, 7 insertions(+)

Re: [PATCH 1/9] hw/block/nvme: remove pointless rw indirection

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 10:48:03AM +0200, Klaus Jensen wrote: > On Oct 1 06:05, Klaus Jensen wrote: > > On Sep 30 15:04, Keith Busch wrote: > > > The code switches on the opcode to invoke a function specific to that > > > opcode. There's no point in consolidating back to a common function that >

Re: [PATCH v2 11/13] block/export: convert vhost-user-blk server to block export API

2020-10-01 Thread Stefan Hajnoczi
On Wed, Sep 30, 2020 at 04:33:18PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Wed, Sep 30, 2020 at 07:28:58AM +0200, Markus Armbruster wrote: > >> Stefan Hajnoczi writes: > >> > >> > Use the new QAPI block exports API instead of defining our own QOM > >> > objects. > >>

Re: [PATCH 3/9] hw/block/nvme: support per-namespace smart log

2020-10-01 Thread Keith Busch
On Thu, Oct 01, 2020 at 06:10:57AM +0200, Klaus Jensen wrote: > On Sep 30 15:04, Keith Busch wrote: > > Let the user specify a specific namespace if they want to get access > > stats for a specific namespace. > > > > I don't think this makes sense for v1.3+. > > NVM Express v1.3d, Section

Re: [PULL 00/17] Block patches

2020-10-01 Thread Peter Maydell
On Thu, 1 Oct 2020 at 16:03, Stefan Hajnoczi wrote: > > On Thu, Oct 01, 2020 at 12:23:00PM +0100, Peter Maydell wrote: > > This produces this error message on ppc64be Linux: > > > > make: Entering directory `/home/pm215/qemu/build/all' > > make[1]: Entering directory `/home/pm215/qemu/slirp' > >

Re: [PULL 00/17] Block patches

2020-10-01 Thread Stefan Hajnoczi
On Thu, Oct 01, 2020 at 12:23:00PM +0100, Peter Maydell wrote: > On Wed, 30 Sep 2020 at 11:13, Stefan Hajnoczi wrote: > > > > The following changes since commit b150cb8f67bf491a49a1cb1c7da151eeacbdbcc9: > > > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > >

[PATCH 2/2] tests/qtest: add multi-queue test case to vhost-user-blk-test

2020-10-01 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/qtest/vhost-user-blk-test.c | 81 +-- 1 file changed, 76 insertions(+), 5 deletions(-) diff --git a/tests/qtest/vhost-user-blk-test.c b/tests/qtest/vhost-user-blk-test.c index 42e4cfde82..b9f35191df 100644 ---

[PATCH 0/2] block/export: add vhost-user-blk multi-queue support

2020-10-01 Thread Stefan Hajnoczi
The vhost-user-blk server currently only supports 1 virtqueue. Add a 'num-queues' option for multi-queue. Both --device vhost-user-blk-pci,num-queues= and --export vhost-user-blk,num-queues= need to be set in order for multi-queue to work (otherwise it will fall back to 1 virtqueue). Based-on:

[PATCH 1/2] block/export: add vhost-user-blk multi-queue support

2020-10-01 Thread Stefan Hajnoczi
Allow the number of queues to be configured using --export vhost-user-blk,num-queues=N. This setting should match the QEMU --device vhost-user-blk-pci,num-queues=N setting but QEMU vhost-user-blk.c lowers its own value if the vhost-user-blk backend offers fewer queues than QEMU. The

Re: [PATCH qemu 1/4] drive-mirror: add support for sync=bitmap mode=never

2020-10-01 Thread Max Reitz
On 22.09.20 11:14, Fabian Grünbichler wrote: > From: John Snow > > This patch adds support for the "BITMAP" sync mode to drive-mirror and > blockdev-mirror. It adds support only for the BitmapSyncMode "never," > because it's the simplest mode. > > This mode simply uses a user-provided bitmap as

Re: qcow2 merge_cow() question

2020-10-01 Thread Vladimir Sementsov-Ogievskiy
29.09.2020 18:02, Alberto Garcia wrote: On Fri 21 Aug 2020 03:42:29 PM CEST, Vladimir Sementsov-Ogievskiy wrote: What are these ifs for? /* The data (middle) region must be immediately after the * start region */ if (l2meta_cow_start(m) +

Re: [PULL 00/17] Block patches

2020-10-01 Thread Vladimir Sementsov-Ogievskiy
01.10.2020 14:23, Peter Maydell wrote: On Wed, 30 Sep 2020 at 11:13, Stefan Hajnoczi wrote: The following changes since commit b150cb8f67bf491a49a1cb1c7da151eeacbdbcc9: Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2020-09-29 13:18:54 +0100) are available in

[PATCH v1 1/1] sheepdog driver patch: fixs the problem of qemu process become crashed when the sheepdog gateway break the IO and then recover

2020-10-01 Thread mingwei
this patch fixs the problem of qemu process become crashed when the sheepdog gateway break the IO for a few seconds and then recover. problem reproduce: 1.start a fio process in qemu to produce IOs to sheepdog gateway, whatever IO type you like. 2.kill the sheepdog gateway. 3.wait for a few

Re: [PATCH v3 00/11] user-mode: Prune build dependencies (part 3)

2020-10-01 Thread Philippe Mathieu-Daudé
On 9/30/20 7:27 PM, Eduardo Habkost wrote: > On Wed, Sep 30, 2020 at 07:24:24PM +0200, Paolo Bonzini wrote: >> On 30/09/20 19:15, Eduardo Habkost wrote: >>> On Wed, Sep 30, 2020 at 06:49:38PM +0200, Philippe Mathieu-Daudé wrote: This is the third part of a series reducing user-mode

Re: [PATCH v3 01/11] qapi: Restrict query-uuid command to block code

2020-10-01 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > +Igor > > On 10/1/20 7:04 AM, Markus Armbruster wrote: >> Philippe Mathieu-Daudé writes: >> >>> In commit f68c01470b we restricted the query-uuid command to >>> machine code, but it is incorrect, as it is also used by the >>> tools. Therefore move this command

Re: [PATCH v2 1/4] keyval: Parse help options

2020-10-01 Thread Kevin Wolf
Am 01.10.2020 um 12:34 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 30.09.2020 um 15:35 hat Eric Blake geschrieben: > >> On 9/30/20 7:45 AM, Kevin Wolf wrote: > >> > This adds a new parameter 'help' to keyval_parse() that enables parsing > >> > of help options. If NULL is

Re: [PULL 00/17] Block patches

2020-10-01 Thread Peter Maydell
On Wed, 30 Sep 2020 at 11:13, Stefan Hajnoczi wrote: > > The following changes since commit b150cb8f67bf491a49a1cb1c7da151eeacbdbcc9: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2020-09-29 13:18:54 +0100) > > are available in the Git repository at: > >

Re: [PATCH v5 05/14] hw/block/nvme: Add support for Namespace Types

2020-10-01 Thread Niklas Cassel
On Mon, Sep 28, 2020 at 11:35:19AM +0900, Dmitry Fomichev wrote: > From: Niklas Cassel > > Namespace Types introduce a new command set, "I/O Command Sets", > that allows the host to retrieve the command sets associated with > a namespace. Introduce support for the command set and enable >

Re: [PATCH v2 1/4] keyval: Parse help options

2020-10-01 Thread Markus Armbruster
Kevin Wolf writes: > Am 30.09.2020 um 15:35 hat Eric Blake geschrieben: >> On 9/30/20 7:45 AM, Kevin Wolf wrote: >> > This adds a new parameter 'help' to keyval_parse() that enables parsing >> > of help options. If NULL is passed, the function behaves the same as >> > before. But if a bool

Re: [PATCH] block/nvme: Add driver statistics for access alignment and hw errors

2020-10-01 Thread Philippe Mathieu-Daudé
On 10/1/20 11:59 AM, Stefan Hajnoczi wrote: > On Wed, Sep 30, 2020 at 03:36:17PM +0200, Philippe Mathieu-Daudé wrote: >> "return": [ >> { >> "device": "", >> "node-name": "drive0", >> "stats": { >> "flush_total_time_ns": 6026948, >>

Re: [PATCH v3 11/11] qapi: Restrict code generated for user-mode

2020-10-01 Thread Philippe Mathieu-Daudé
On 10/1/20 7:09 AM, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > >> A lot of QAPI generated code is never used by user-mode. >> >> Split out qapi_system_modules and qapi_system_or_tools_modules >> from the qapi_all_modules array. We now have 3 groups: >> - always used >> - use by

Re: [PATCH v3 01/11] qapi: Restrict query-uuid command to block code

2020-10-01 Thread Philippe Mathieu-Daudé
+Igor On 10/1/20 7:04 AM, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > >> In commit f68c01470b we restricted the query-uuid command to >> machine code, but it is incorrect, as it is also used by the >> tools. Therefore move this command again, but to block.json, >> which is

Re: [PATCH v7 06/13] qmp: Call monitor_set_cur() only in qmp_dispatch()

2020-10-01 Thread Kevin Wolf
Am 30.09.2020 um 19:20 hat Dr. David Alan Gilbert geschrieben: > * Kevin Wolf (kw...@redhat.com) wrote: > > Am 30.09.2020 um 15:14 hat Markus Armbruster geschrieben: > > > Kevin Wolf writes: > > > > > > > Am 30.09.2020 um 11:26 hat Markus Armbruster geschrieben: > > > >> Kevin Wolf writes: > >

Re: [PATCH 2/9] hw/block/nvme: fix log page offset check

2020-10-01 Thread Philippe Mathieu-Daudé
On 10/1/20 12:04 AM, Keith Busch wrote: > Return error if the requested offset starts after the size of the log > being returned. Also, move the check for earlier in the function so > we're not doing unnecessary calculations. > > Signed-off-by: Keith Busch > --- > hw/block/nvme.c | 22

Re: [PATCH] block/nvme: Add driver statistics for access alignment and hw errors

2020-10-01 Thread Stefan Hajnoczi
On Wed, Sep 30, 2020 at 03:36:17PM +0200, Philippe Mathieu-Daudé wrote: > "return": [ > { > "device": "", > "node-name": "drive0", > "stats": { > "flush_total_time_ns": 6026948, > "wr_highest_offset": 3383991230464, >

Re: [PATCH 9/9] hw/block/nvme: report actual LBA data shift in LBAF

2020-10-01 Thread Klaus Jensen
On Sep 30 15:04, Keith Busch wrote: > From: Dmitry Fomichev > > Calculate the data shift value to report based on the set value of > logical_block_size device property. > > In the process, use a local variable to calculate the LBA format > index instead of the hardcoded value 0. This makes the

Re: [PATCH 1/9] hw/block/nvme: remove pointless rw indirection

2020-10-01 Thread Klaus Jensen
On Oct 1 06:05, Klaus Jensen wrote: > On Sep 30 15:04, Keith Busch wrote: > > The code switches on the opcode to invoke a function specific to that > > opcode. There's no point in consolidating back to a common function that > > just switches on that same opcode without any actual common code. >

Re: [PATCH v6 11/15] iotests: add 298 to test new preallocate filter driver

2020-10-01 Thread Thomas Huth
On 25/09/2020 17.11, Vladimir Sementsov-Ogievskiy wrote: > 25.09.2020 12:11, Max Reitz wrote: >> On 25.09.20 10:49, Vladimir Sementsov-Ogievskiy wrote: >>> 25.09.2020 11:26, Max Reitz wrote: On 18.09.20 20:19, Vladimir Sementsov-Ogievskiy wrote: > Signed-off-by: Vladimir

Re: [PATCH v6 14/15] scripts/simplebench: improve ascii table: add difference line

2020-10-01 Thread Max Reitz
On 25.09.20 19:13, Vladimir Sementsov-Ogievskiy wrote: > 25.09.2020 13:24, Max Reitz wrote: >> On 18.09.20 20:19, Vladimir Sementsov-Ogievskiy wrote: >>> Performance improvements / degradations are usually discussed in >>> percentage. Let's make the script calculate it for us. >>> >>>

Re: [PATCH v6 11/15] iotests: add 298 to test new preallocate filter driver

2020-10-01 Thread Max Reitz
On 25.09.20 17:32, Vladimir Sementsov-Ogievskiy wrote: > 25.09.2020 18:11, Vladimir Sementsov-Ogievskiy wrote: >> 25.09.2020 12:11, Max Reitz wrote: >>> On 25.09.20 10:49, Vladimir Sementsov-Ogievskiy wrote: 25.09.2020 11:26, Max Reitz wrote: > On 18.09.20 20:19, Vladimir

Re: [PULL 5/5] crypto/tls-cipher-suites: Produce fw_cfg consumable blob

2020-10-01 Thread Laszlo Ersek
On 09/29/20 17:46, Kevin Wolf wrote: > Am 04.07.2020 um 18:39 hat Philippe Mathieu-Daudé geschrieben: >> Since our format is consumable by the fw_cfg device, >> we can implement the FW_CFG_DATA_GENERATOR interface. >> >> Example of use to dump the cipher suites (if tracing enabled): >> >> $