Re: [PATCH 1/3] virtio: move struct VirtQueue to include file

2023-01-28 Thread Xuan Zhuo
On Sat, 28 Jan 2023 05:23:46 -0500, "Michael S. Tsirkin" wrote: > On Sat, Jan 28, 2023 at 03:17:22PM +0800, Xuan Zhuo wrote: > > This patch move struct VirtQueue into virtio.h. > > > > In order to implement Queue Reset, we have to record the queue reset > > status of in struct VirtQueue and provi

Re: [PATCH 1/3] virtio: move struct VirtQueue to include file

2023-01-28 Thread Michael S. Tsirkin
On Sat, Jan 28, 2023 at 03:17:22PM +0800, Xuan Zhuo wrote: > This patch move struct VirtQueue into virtio.h. > > In order to implement Queue Reset, we have to record the queue reset > status of in struct VirtQueue and provide it to device. > > Signed-off-by: Xuan Zhuo So add an API please, no n

[PATCH 1/3] virtio: move struct VirtQueue to include file

2023-01-27 Thread Xuan Zhuo
This patch move struct VirtQueue into virtio.h. In order to implement Queue Reset, we have to record the queue reset status of in struct VirtQueue and provide it to device. Signed-off-by: Xuan Zhuo --- hw/virtio/virtio.c | 49 --- include/hw/virtio/virtio