[PATCH] hw/sd: Correct CMD58's R3 response "in idle state" bit in SPI-mode

2022-01-25 Thread frank . chang
From: Frank Chang In SPI-mode, CMD58 returns R3 response with the format: 39 32 31 0 ++ +---+ | R1 | |OCR| ++ +---+ Where R1

Re: [PATCH v1 08/22] drop libxml2 checks since libxml is not actually used (for parallels)

2022-01-25 Thread Vladimir Sementsov-Ogievskiy
24.01.2022 23:15, Alex Bennée wrote: From: Michael Tokarev For a long time, we assumed that libxml2 is necessary for parallels block format support (block/parallels*). However, this format actually does not use libxml [*]. Since this is the only user of libxml2 in whole QEMU tree, we can drop

Re: [PATCH v6 04/33] block/export/fuse.c: allow writable exports to take RESIZE permission

2022-01-25 Thread Hanna Reitz
On 21.01.22 18:05, Emanuele Giuseppe Esposito wrote: Allow writable exports to get BLK_PERM_RESIZE permission from creation, in fuse_export_create(). In this way, there is no need to give the permission in fuse_do_truncate(), which might be run in an iothread. Permissions should be set only in

[PATCH] qemu-storage-daemon: Fix typo in vhost-user-blk help

2022-01-25 Thread Kevin Wolf
The syntax of the fd passing case misses the "addr.type=" key. Add it. Signed-off-by: Kevin Wolf --- storage-daemon/qemu-storage-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c index

Re: [PATCH v2 1/3] block/export/fuse: Extract fuse_fallocate_punch_hole()

2022-01-25 Thread Philippe Mathieu-Daudé via
On 1/25/22 12:10, Thomas Huth wrote: > On 24/01/2022 23.03, Philippe Mathieu-Daudé via wrote: >> Extract fuse_fallocate_punch_hole() to avoid #ifdef'ry >> mixed within if/else statement. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >>   block/export/fuse.c | 59

[PATCH] block/export: Fix vhost-user-blk shutdown with requests in flight

2022-01-25 Thread Kevin Wolf
The vhost-user-blk export runs requests asynchronously in their own coroutine. When the vhost connection goes away and we want to stop the vhost-user server, we need to wait for these coroutines to stop before we can unmap the shared memory. Otherwise, they would still access the unmapped memory

[PATCH 4/5] vduse-blk: Add vduse-blk resize support

2022-01-25 Thread Xie Yongji
To support block resize, this uses vduse_dev_update_config() to update the capacity field in configuration space and inject config interrupt on the block resize callback. Signed-off-by: Xie Yongji --- block/export/vduse-blk.c | 19 +++ 1 file changed, 19 insertions(+) diff

[PATCH 2/5] libvduse: Add VDUSE (vDPA Device in Userspace) library

2022-01-25 Thread Xie Yongji
VDUSE [1] is a linux framework that makes it possible to implement software-emulated vDPA devices in userspace. This adds a library as a subproject to help implementing VDUSE backends in QEMU. [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html Signed-off-by: Xie Yongji ---

[PATCH 1/5] linux-headers: Add vduse.h

2022-01-25 Thread Xie Yongji
This adds vduse header to standard headers so that the relevant VDUSE API can be used in subsequent patches. Signed-off-by: Xie Yongji --- include/standard-headers/linux/vduse.h | 306 + scripts/update-linux-headers.sh| 1 + 2 files changed, 307 insertions(+)

[PATCH 3/5] vduse-blk: implements vduse-blk export

2022-01-25 Thread Xie Yongji
This implements a VDUSE block backends based on the libvduse library. We can use it to export the BDSs for both VM and container (host) usage. The new command-line syntax is: $ qemu-storage-daemon \ --blockdev file,node-name=drive0,filename=test.img \ --export

[PATCH 5/5] libvduse: Add support for reconnecting

2022-01-25 Thread Xie Yongji
To support reconnecting after restart or crash, VDUSE backend might need to resubmit inflight I/Os. This stores the metadata such as the index of inflight I/O's descriptors to a shm file so that VDUSE backend can restore them during reconnecting. Signed-off-by: Xie Yongji ---

[PATCH 0/5] Support exporting BDSs via VDUSE

2022-01-25 Thread Xie Yongji
Hi all, Last few months ago, VDUSE (vDPA Device in Userspace) [1] has been merged into Linux kernel as a framework that make it possible to emulate a vDPA device in userspace. This series aimed at implementing a VDUSE block backend based on the qemu-storage-daemon infrastructure. To support

Re: [PATCH v2 2/3] block/export/fuse: Extract fuse_fallocate_zero_range()

2022-01-25 Thread Thomas Huth
On 24/01/2022 23.03, Philippe Mathieu-Daudé via wrote: Signed-off-by: Philippe Mathieu-Daudé --- block/export/fuse.c | 48 + 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/block/export/fuse.c b/block/export/fuse.c index

Re: [PATCH v2 1/3] block/export/fuse: Extract fuse_fallocate_punch_hole()

2022-01-25 Thread Thomas Huth
On 24/01/2022 23.03, Philippe Mathieu-Daudé via wrote: Extract fuse_fallocate_punch_hole() to avoid #ifdef'ry mixed within if/else statement. Signed-off-by: Philippe Mathieu-Daudé --- block/export/fuse.c | 59 +++-- 1 file changed, 35 insertions(+),

Re: [PATCH v1 09/22] tests/lcitool: Refresh submodule and remove libxml2

2022-01-25 Thread Philippe Mathieu-Daudé via
On 1/25/22 11:23, Thomas Huth wrote: > On 24/01/2022 21.15, Alex Bennée wrote: >> From: Philippe Mathieu-Daudé >> >> The previous commit removed all uses of libxml2. >> >> Refresh lcitool submodule, update qemu.yml and refresh the generated >> files by running: >> >>    $ make lcitool-refresh >>

Re: [PATCH v1 09/22] tests/lcitool: Refresh submodule and remove libxml2

2022-01-25 Thread Thomas Huth
On 24/01/2022 21.15, Alex Bennée wrote: From: Philippe Mathieu-Daudé The previous commit removed all uses of libxml2. Refresh lcitool submodule, update qemu.yml and refresh the generated files by running: $ make lcitool-refresh Note: This refreshment also removes libudev dependency on

Re: [PATCH V2 for-6.2 0/2] fixes for bdrv_co_block_status

2022-01-25 Thread Stefano Garzarella
On Thu, Jan 20, 2022 at 10:19:27AM +0100, Peter Lieven wrote: Am 19.01.22 um 15:57 schrieb Stefano Garzarella: On Fri, Jan 14, 2022 at 11:58:40AM +0100, Ilya Dryomov wrote: On Thu, Jan 13, 2022 at 3:44 PM Peter Lieven wrote: V1->V2:  Patch 1: Treat a hole just like an unallocated area.

Re: [PATCH] block: bdrv_set_backing_hd(): use drained section

2022-01-25 Thread Vladimir Sementsov-Ogievskiy
25.01.2022 12:24, Paolo Bonzini wrote: On 1/24/22 18:37, Vladimir Sementsov-Ogievskiy wrote: Graph modifications should be done in drained section. stream_prepare() handler of block stream job call bdrv_set_backing_hd() without using drained section and it's theoretically possible that some IO

Re: [PATCH] block: bdrv_set_backing_hd(): use drained section

2022-01-25 Thread Paolo Bonzini
On 1/24/22 18:37, Vladimir Sementsov-Ogievskiy wrote: Graph modifications should be done in drained section. stream_prepare() handler of block stream job call bdrv_set_backing_hd() without using drained section and it's theoretically possible that some IO request will interleave with graph

Re: [PATCH 1/1] hw/usb: pacify xhciwmi.exe warning

2022-01-25 Thread Denis V. Lunev
On 1/25/22 10:09 AM, Gerd Hoffmann wrote: > Hi, > >>> case CR_VENDOR_NEC_FIRMWARE_REVISION: >>> if (xhci->nec_quirks) { >>> event.type = 48; /* NEC reply */ >>> -event.length = 0x3025; >>> +event.length = 0x3034; >> ping v2 >

Re: [PATCH 1/1] hw/usb: pacify xhciwmi.exe warning

2022-01-25 Thread Gerd Hoffmann
Hi, > > case CR_VENDOR_NEC_FIRMWARE_REVISION: > > if (xhci->nec_quirks) { > > event.type = 48; /* NEC reply */ > > -event.length = 0x3025; > > +event.length = 0x3034; > ping v2 Queued now (missed last pull request due to