Re: [PATCH 08/26] virtio-mem: use array_size

2023-06-24 Thread Xuan Zhuo
On Fri, 23 Jun 2023 23:14:39 +0200, Julia Lawall wrote: > Use array_size to protect against multiplication overflows. > > The changes were done using the following Coccinelle semantic patch: > > // > @@ > expression E1, E2; > constant C1, C2; > identifier alloc = {vmalloc,vzalloc}; >

Re: [PATCH vhost v10 05/10] virtio_ring: split-detach: support return dma info to driver

2023-06-24 Thread Xuan Zhuo
On Thu, 22 Jun 2023 15:36:41 -0400, "Michael S. Tsirkin" wrote: > On Fri, Jun 02, 2023 at 05:22:01PM +0800, Xuan Zhuo wrote: > > Under the premapped mode, the driver needs to unmap the DMA address > > after receiving the buffer. The virtio core records the DMA address, > > so the driver needs a w

Re: [PATCH vhost v10 10/10] virtio_net: support dma premapped

2023-06-24 Thread Xuan Zhuo
On Thu, 22 Jun 2023 08:15:03 -0400, "Michael S. Tsirkin" wrote: > On Fri, Jun 02, 2023 at 05:22:06PM +0800, Xuan Zhuo wrote: > > Introduce the module param "experiment_premapped" to enable the function > > that the virtio-net do dma mapping. > > > > If that is true, the vq of virtio-net is under