Re: [PATCH v12 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-07-20 Thread Jason Wang
在 2022/7/20 11:03, Xuan Zhuo 写道: reset can be divided into the following four steps (example): 1. transport: notify the device to reset the queue 2. vring: recycle the buffer submitted 3. vring: reset/resize the vring (may re-alloc) 4. transport: mmap vring to device, and enable

Re: [PATCH v12 01/40] virtio: record the maximum queue num supported by the device.

2022-07-20 Thread Jason Wang
在 2022/7/20 11:03, Xuan Zhuo 写道: virtio-net can display the maximum (supported by hardware) ring size in ethtool -g eth0. When the subsequent patch implements vring reset, it can judge whether the ring size passed by the driver is legal based on this. Signed-off-by: Xuan Zhuo Acked-by: Jaso

Re: VIRTIO_NET_F_MTU not negotiated

2022-07-20 Thread Michael S. Tsirkin
On Wed, Jul 20, 2022 at 08:17:29AM +, Eli Cohen wrote: > > From: Eugenio Perez Martin > > Sent: Wednesday, July 20, 2022 10:47 AM > > To: Eli Cohen > > Cc: Michael S. Tsirkin ; Jason Wang ; > > virtualization@lists.linux-foundation.org > > Subject: Re: VIRTIO_NET_F_MTU not negotiated > > >

Re: [PATCH] virtio: Force DMA restricted devices through DMA API

2022-07-20 Thread Michael S. Tsirkin
On Wed, Jul 20, 2022 at 08:27:51AM +, Keir Fraser wrote: > On Wed, Jul 20, 2022 at 02:59:53AM -0400, Michael S. Tsirkin wrote: > > On Tue, Jul 19, 2022 at 04:11:50PM +, Keir Fraser wrote: > > > On Tue, Jul 19, 2022 at 08:51:54AM -0700, Christoph Hellwig wrote: > > > > On Tue, Jul 19, 2022 a

Re: [RFC PATCH v1 0/3] virtio/vsock: use SO_RCVLOWAT to set POLLIN/POLLRDNORM

2022-07-20 Thread Stefano Garzarella
On Wed, Jul 20, 2022 at 06:07:47AM +, Arseniy Krasnov wrote: On 19.07.2022 15:58, Stefano Garzarella wrote: On Mon, Jul 18, 2022 at 08:12:52AM +, Arseniy Krasnov wrote: Hello, during my experiments with zerocopy receive, i found, that in some cases, poll() implementation violates POSIX

Re: [PATCH v3 5/5] vduse: Support querying information of IOVA regions

2022-07-20 Thread Jason Wang
On Wed, Jul 20, 2022 at 12:42 PM Xie Yongji wrote: > > This introduces a new ioctl: VDUSE_IOTLB_GET_INFO to > support querying some information of IOVA regions. > > Now it can be used to query whether the IOVA region > supports userspace memory registration. > > Signed-off-by: Xie Yongji > --- >

Re: [PATCH v3 4/5] vduse: Support registering userspace memory for IOVA regions

2022-07-20 Thread Jason Wang
On Wed, Jul 20, 2022 at 12:42 PM Xie Yongji wrote: > > Introduce two ioctls: VDUSE_IOTLB_REG_UMEM and > VDUSE_IOTLB_DEREG_UMEM to support registering > and de-registering userspace memory for IOVA > regions. > > Now it only supports registering userspace memory > for bounce buffer region in virtio

Re: [RFC PATCH v1 3/3] vsock_test: POLLIN + SO_RCVLOWAT test.

2022-07-20 Thread Stefano Garzarella
On Wed, Jul 20, 2022 at 05:46:01AM +, Arseniy Krasnov wrote: On 19.07.2022 15:52, Stefano Garzarella wrote: On Mon, Jul 18, 2022 at 08:19:06AM +, Arseniy Krasnov wrote: This adds test to check, that when poll() returns POLLIN and POLLRDNORM bits, next read call won't block. Signed-off-

Re: [PATCH v1 4/6] dma-buf: Acquire wait-wound context on attachment

2022-07-20 Thread Christian König via Virtualization
Am 19.07.22 um 22:05 schrieb Dmitry Osipenko: On 7/15/22 09:59, Dmitry Osipenko wrote: On 7/15/22 09:50, Christian König wrote: Am 15.07.22 um 02:52 schrieb Dmitry Osipenko: Intel i915 GPU driver uses wait-wound mutex to lock multiple GEMs on the attachment to the i915 dma-buf. In order to let

Re: [RFC PATCH v1 2/3] virtio/vsock: use 'target' in notify_poll_in, callback.

2022-07-20 Thread Stefano Garzarella
On Wed, Jul 20, 2022 at 05:38:03AM +, Arseniy Krasnov wrote: On 19.07.2022 15:48, Stefano Garzarella wrote: On Mon, Jul 18, 2022 at 08:17:31AM +, Arseniy Krasnov wrote: This callback controls setting of POLLIN,POLLRDNORM output bits of poll() syscall,but in some cases,it is incorrectly

Re: [PATCH] virtio: Force DMA restricted devices through DMA API

2022-07-20 Thread Michael S. Tsirkin
On Tue, Jul 19, 2022 at 04:11:50PM +, Keir Fraser wrote: > On Tue, Jul 19, 2022 at 08:51:54AM -0700, Christoph Hellwig wrote: > > On Tue, Jul 19, 2022 at 03:46:08PM +, Keir Fraser wrote: > > > However, if the general idea at least is acceptable, would the > > > implementation be acceptable