[virtio-dev] Re: [virtio-comment] [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

2023-09-06 Thread Zhu, Lingshan
On 9/6/2023 9:49 PM, Michael S. Tsirkin wrote: On Wed, Sep 06, 2023 at 04:38:44PM +0800, Zhu, Lingshan wrote: On 9/6/2023 4:29 PM, Michael S. Tsirkin wrote: On Wed, Sep 06, 2023 at 04:16:32PM +0800, Zhu Lingshan wrote: This series introduces 1)a new SUSPEND bit in the device status Which i

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Bobby Eshleman
On Wed, Sep 06, 2023 at 04:28:12PM +0200, Stefano Garzarella wrote: > On Sat, Sep 02, 2023 at 04:35:25AM -0400, Michael S. Tsirkin wrote: > > On Sat, Sep 02, 2023 at 04:56:42AM +, Bobby Eshleman wrote: > > > On Fri, Sep 01, 2023 at 02:45:14PM +0200, Stefano Garzarella wrote: > > > > On Tue, Aug

Re: [virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Bobby Eshleman
On Wed, Sep 06, 2023 at 04:17:59AM -0400, Michael S. Tsirkin wrote: > On Sat, Sep 02, 2023 at 09:24:26AM +, Bobby Eshleman wrote: > > On Sat, Sep 02, 2023 at 04:41:28AM -0400, Michael S. Tsirkin wrote: > > > On Sat, Sep 02, 2023 at 04:37:19AM +, Bobby Eshleman wrote: > > > > On Fri, Sep 01,

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Stefano Garzarella
On Sat, Sep 02, 2023 at 04:35:25AM -0400, Michael S. Tsirkin wrote: On Sat, Sep 02, 2023 at 04:56:42AM +, Bobby Eshleman wrote: On Fri, Sep 01, 2023 at 02:45:14PM +0200, Stefano Garzarella wrote: > On Tue, Aug 29, 2023 at 09:29:45PM +, Bobby Eshleman wrote: > > This adds support for data

[virtio-dev] Re: [PATCH v3] virtio-spi: add the device specification

2023-09-06 Thread Harald Mommer
Hello Haixu Cui, On 01.09.23 05:29, Haixu Cui wrote: virtio-spi is a virtual SPI master and it allows a guset to operate and guest use the physical SPI master controlled by the host. This patch adds the specification for virtio-spi. Signed-off-by: Haixu Cui --- device-types/spi/description

[virtio-dev] Re: [virtio-comment] [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

2023-09-06 Thread Michael S. Tsirkin
On Wed, Sep 06, 2023 at 04:38:44PM +0800, Zhu, Lingshan wrote: > > > On 9/6/2023 4:29 PM, Michael S. Tsirkin wrote: > > On Wed, Sep 06, 2023 at 04:16:32PM +0800, Zhu Lingshan wrote: > > > This series introduces > > > 1)a new SUSPEND bit in the device status > > > Which is used to suspend the devi

[virtio-dev] Re: [virtio-comment] [PATCH 1/5] virtio: introduce vq state as basic facility

2023-09-06 Thread Zhu, Lingshan
On 9/6/2023 4:28 PM, Michael S. Tsirkin wrote: On Wed, Sep 06, 2023 at 04:16:33PM +0800, Zhu Lingshan wrote: This patch adds new device facility to save and restore virtqueue state. The virtqueue state is split into two parts: - The available state: The state that is used for read the next

[virtio-dev] [PATCH] virtio-tee: Reserve device ID 46 for TEE device

2023-09-06 Thread jeshwank
The virtio-tee device allows guest OS to access the TEE present in host system, to perform secure operations. This patch is to reserve a device ID 46 for virtio-tee device. Signed-off-by: jeshwank --- content.tex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.tex b/content.tex in

[virtio-dev] Re: [virtio-comment] [PATCH 5/5] virtio-pci: implement VIRTIO_F_QUEUE_STATE

2023-09-06 Thread Zhu, Lingshan
On 9/6/2023 4:32 PM, Michael S. Tsirkin wrote: On Wed, Sep 06, 2023 at 04:16:37PM +0800, Zhu Lingshan wrote: This patch adds two new le16 fields to common configuration structure to support VIRTIO_F_QUEUE_STATE in PCI transport layer. Signed-off-by: Zhu Lingshan I do not see why this woul

[virtio-dev] Re: [virtio-comment] [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

2023-09-06 Thread Zhu, Lingshan
On 9/6/2023 4:29 PM, Michael S. Tsirkin wrote: On Wed, Sep 06, 2023 at 04:16:32PM +0800, Zhu Lingshan wrote: This series introduces 1)a new SUSPEND bit in the device status Which is used to suspend the device, so that the device states and virtqueue states are stabilized. 2)virtqueue state a

[virtio-dev] RE: [virtio-comment] [PATCH 5/5] virtio-pci: implement VIRTIO_F_QUEUE_STATE

2023-09-06 Thread Parav Pandit
> From: virtio-comm...@lists.oasis-open.org open.org> On Behalf Of Michael S. Tsirkin > Sent: Wednesday, September 6, 2023 2:03 PM > To: Zhu Lingshan > Cc: jasow...@redhat.com; epere...@redhat.com; coh...@redhat.com; > stefa...@redhat.com; virtio-comm...@lists.oasis-open.org; virtio- > d...@lists

[virtio-dev] Re: [virtio-comment] [PATCH 5/5] virtio-pci: implement VIRTIO_F_QUEUE_STATE

2023-09-06 Thread Michael S. Tsirkin
On Wed, Sep 06, 2023 at 04:16:37PM +0800, Zhu Lingshan wrote: > This patch adds two new le16 fields to common configuration structure > to support VIRTIO_F_QUEUE_STATE in PCI transport layer. > > Signed-off-by: Zhu Lingshan I do not see why this would be pci specific at all. But besides I thou

[virtio-dev] Re: [virtio-comment] [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

2023-09-06 Thread Michael S. Tsirkin
On Wed, Sep 06, 2023 at 04:16:32PM +0800, Zhu Lingshan wrote: > This series introduces > 1)a new SUSPEND bit in the device status > Which is used to suspend the device, so that the device states > and virtqueue states are stabilized. > > 2)virtqueue state and its accessor, to get and set last_avai

[virtio-dev] Re: [virtio-comment] [PATCH 1/5] virtio: introduce vq state as basic facility

2023-09-06 Thread Michael S. Tsirkin
On Wed, Sep 06, 2023 at 04:16:33PM +0800, Zhu Lingshan wrote: > This patch adds new device facility to save and restore virtqueue > state. The virtqueue state is split into two parts: > > - The available state: The state that is used for read the next > available buffer. > - The used state: The

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Michael S. Tsirkin
On Sat, Sep 02, 2023 at 09:24:26AM +, Bobby Eshleman wrote: > On Sat, Sep 02, 2023 at 04:41:28AM -0400, Michael S. Tsirkin wrote: > > On Sat, Sep 02, 2023 at 04:37:19AM +, Bobby Eshleman wrote: > > > On Fri, Sep 01, 2023 at 09:31:03AM -0400, Michael S. Tsirkin wrote: > > > > On Wed, Aug 30,

[virtio-dev] [PATCH 4/5] virtqueue: ignore resetting vqs when SUSPEND

2023-09-06 Thread Zhu Lingshan
When SUSPEND is set, the device should stabilize the device states and virtqueue states, therefore the device should ignore resetting vqs when SUSPEND is set in device status. Signed-off-by: Zhu Lingshan --- content.tex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content.tex b/content

[virtio-dev] [PATCH 5/5] virtio-pci: implement VIRTIO_F_QUEUE_STATE

2023-09-06 Thread Zhu Lingshan
This patch adds two new le16 fields to common configuration structure to support VIRTIO_F_QUEUE_STATE in PCI transport layer. Signed-off-by: Zhu Lingshan --- transport-pci.tex | 18 ++ 1 file changed, 18 insertions(+) diff --git a/transport-pci.tex b/transport-pci.tex index a5c6

[virtio-dev] [PATCH 3/5] virtqueue: constraints for virtqueue state

2023-09-06 Thread Zhu Lingshan
This commit specifies the constraints of the virtqueue state, and the actions should be taken by the device when SUSPEND and DRIVER_OK is set Signed-off-by: Zhu Lingshan Signed-off-by: Jason Wang Signed-off-by: Eugenio Pérez --- content.tex | 19 +++ 1 file changed, 19 insertio

[virtio-dev] [PATCH 2/5] virtio: introduce SUSPEND bit in device status

2023-09-06 Thread Zhu Lingshan
This patch introduces a new status bit in the device status: SUSPEND. This SUSPEND bit can be used by the driver to suspend a device, in order to stabilize the device states and virtqueue states. Its main use case is live migration. Signed-off-by: Zhu Lingshan Signed-off-by: Jason Wang Signed-

[virtio-dev] [PATCH 0/5] virtio: introduce SUSPEND bit and vq state

2023-09-06 Thread Zhu Lingshan
This series introduces 1)a new SUSPEND bit in the device status Which is used to suspend the device, so that the device states and virtqueue states are stabilized. 2)virtqueue state and its accessor, to get and set last_avail_idx and last_used_idx of virtqueues. The main usecase of these new faci

[virtio-dev] [PATCH 1/5] virtio: introduce vq state as basic facility

2023-09-06 Thread Zhu Lingshan
This patch adds new device facility to save and restore virtqueue state. The virtqueue state is split into two parts: - The available state: The state that is used for read the next available buffer. - The used state: The state that is used for make buffer used. This will simply the transport s