Re: [PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue

2024-01-31 Thread Xuan Zhuo
On Wed, 31 Jan 2024 17:12:43 +0800, Jason Wang wrote: > On Tue, Jan 30, 2024 at 7:43 PM Xuan Zhuo wrote: > > > > Export the premapped to drivers, then drivers can check > > the vq premapped mode after the find_vqs(). > > This looks odd, it's the charge of the driver to set premapped, so it > sho

Re: [PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue

2024-01-31 Thread Jason Wang
On Tue, Jan 30, 2024 at 7:43 PM Xuan Zhuo wrote: > > Export the premapped to drivers, then drivers can check > the vq premapped mode after the find_vqs(). This looks odd, it's the charge of the driver to set premapped, so it should know it? Thanks

[PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue

2024-01-30 Thread Xuan Zhuo
Export the premapped to drivers, then drivers can check the vq premapped mode after the find_vqs(). Because the find_vqs() just try to enable the vq premapped mode, the driver must check that after find_vqs(). Signed-off-by: Xuan Zhuo --- drivers/virtio/virtio_ring.c | 13 + include/