Re: Outreachy project task: Adding QEMU block layer APIs resembling Linux ZBD ioctls.

2022-06-01 Thread Sam Li
Hi Stefan, Stefan Hajnoczi 于2022年6月1日周三 19:43写道: > > On Wed, 1 Jun 2022 at 06:47, Damien Le Moal > wrote: > > > > On 6/1/22 11:57, Sam Li wrote: > > > Hi Stefan, > > > > > > Stefan Hajnoczi 于2022年5月30日周一 19:19写道: > > > > > > > > >> > > >> On Mon, 30 May 2022 at 06:09, Sam Li wrote: > > >>> >

Re: [External] [PATCH v13 3/8] QIOChannelSocket: Implement io_writev zero copy flag & io_flush for CONFIG_LINUX

2022-06-01 Thread Peter Xu
On Wed, Jun 01, 2022 at 05:37:10PM +0800, 徐闯 wrote: > > On 2022/5/13 下午2:28, Leonardo Bras wrote: > > For CONFIG_LINUX, implement the new zero copy flag and the optional callback > > io_flush on QIOChannelSocket, but enables it only when MSG_ZEROCOPY > > feature is available in the host kernel,

Re: [PATCH v2] hw/nvme: clean up CC register write logic

2022-06-01 Thread Lukasz Maniak
On Wed, May 25, 2022 at 09:35:24AM +0200, Klaus Jensen wrote: > > +stl_le_p(>bar.intms, 0); > +stl_le_p(>bar.intmc, 0); > +stl_le_p(>bar.cc, 0); Looks fine, though it seems the NVMe spec says the above registers should be cleared during each reset for VF as well. > -- >

Re: Outreachy project task: Adding QEMU block layer APIs resembling Linux ZBD ioctls.

2022-06-01 Thread Damien Le Moal
On 6/1/22 11:57, Sam Li wrote: > Hi Stefan, > > Stefan Hajnoczi 于2022年5月30日周一 19:19写道: > > >> >> On Mon, 30 May 2022 at 06:09, Sam Li wrote: >>> >>> Hi everyone, >>> I'm Sam Li, working on the Outreachy project which is to add zoned >>> device support to QEMU's virtio-blk emulation. >>> >>>

Re: [PATCH v2] vduse-blk: Add name option

2022-06-01 Thread Yongji Xie
On Wed, Jun 1, 2022 at 9:03 PM Stefan Hajnoczi wrote: > > On Tue, May 31, 2022 at 05:52:21PM +0800, Xie Yongji wrote: > > Currently we use 'id' option as the name of VDUSE device. > > It's a bit confusing since we use one value for two different > > purposes: the ID to identfy the export within

Re: [External] [PATCH v13 3/8] QIOChannelSocket: Implement io_writev zero copy flag & io_flush for CONFIG_LINUX

2022-06-01 Thread 徐闯
On 2022/5/13 下午2:28, Leonardo Bras wrote: For CONFIG_LINUX, implement the new zero copy flag and the optional callback io_flush on QIOChannelSocket, but enables it only when MSG_ZEROCOPY feature is available in the host kernel, which is checked on qio_channel_socket_connect_sync()

Re: [PATCH v2] vduse-blk: Add name option

2022-06-01 Thread Stefan Hajnoczi
On Tue, May 31, 2022 at 05:52:21PM +0800, Xie Yongji wrote: > Currently we use 'id' option as the name of VDUSE device. > It's a bit confusing since we use one value for two different > purposes: the ID to identfy the export within QEMU (must be > distinct from any other exports in the same QEMU

About support usb audio device hotplug

2022-06-01 Thread ??????
Hi, I'mnewtoQEMUandrecently,I'musinganaudiodeviceinqemuVM.WhatIhavedoneisaddingadevicewhenIstartQEMU.ItworksfinebutIwanttodobetter.Iwannamaketheaudiodevicehotplug-able.Doyouguyshaveanysuggestions?Thanksalot.

Re: Outreachy project task: Adding QEMU block layer APIs resembling Linux ZBD ioctls.

2022-06-01 Thread Stefan Hajnoczi
On Wed, 1 Jun 2022 at 06:47, Damien Le Moal wrote: > > On 6/1/22 11:57, Sam Li wrote: > > Hi Stefan, > > > > Stefan Hajnoczi 于2022年5月30日周一 19:19写道: > > > > > >> > >> On Mon, 30 May 2022 at 06:09, Sam Li wrote: > >>> > >>> Hi everyone, > >>> I'm Sam Li, working on the Outreachy project which is

Re: Outreachy project task: Adding QEMU block layer APIs resembling Linux ZBD ioctls.

2022-06-01 Thread Stefan Hajnoczi
On Wed, 1 Jun 2022 at 11:19, Sam Li wrote: > Damien Le Moal 于2022年6月1日周三 13:47写道: > > On 6/1/22 11:57, Sam Li wrote: > > > Stefan Hajnoczi 于2022年5月30日周一 19:19写道: > > >> On Mon, 30 May 2022 at 06:09, Sam Li wrote: > > For the zone struct: You may need to add a read-write lock per zone to be > >

Re: Outreachy project task: Adding QEMU block layer APIs resembling Linux ZBD ioctls.

2022-06-01 Thread Sam Li
Hi Damien, Damien Le Moal 于2022年6月1日周三 13:47写道: > > On 6/1/22 11:57, Sam Li wrote: > > Hi Stefan, > > > > Stefan Hajnoczi 于2022年5月30日周一 19:19写道: > > > > > >> > >> On Mon, 30 May 2022 at 06:09, Sam Li wrote: > >>> > >>> Hi everyone, > >>> I'm Sam Li, working on the Outreachy project which is to

EXT4-fs error (device mmcblk0p2)

2022-06-01 Thread Pascal
hi, I play to emulate the Raspberry Pi and, to avoid having to wait for the (re)start of my slow VM, I recorded a snapshot at the end of the first boot. but when I reload this snapshot, I have a lot of error messages (EXT4-fs error (device mmcblk0p2) ... reading directory lblock 0) and I cannot