Re: [PATCH 0/6] vDPA driver for legacy virtio-pci device

2021-09-08 Thread Jason Wang
On Thu, Sep 9, 2021 at 11:05 AM Jason Wang wrote: > > On Wed, Sep 8, 2021 at 8:22 PM Wu Zongyong > wrote: > > > > This series implements the vDPA driver for legacy virtio-pci device. > > Currently we already have the vDPA driver for modern virtio-pci device > > only, but there are some legacy

Re: [PATCH 0/6] vDPA driver for legacy virtio-pci device

2021-09-08 Thread Jason Wang
On Wed, Sep 8, 2021 at 8:22 PM Wu Zongyong wrote: > > This series implements the vDPA driver for legacy virtio-pci device. > Currently we already have the vDPA driver for modern virtio-pci device > only, but there are some legacy virtio-pci devices conforming to the > virtio-pci specifications of

Re: [PATCH 5/6] vdpa: add get_vq_num_unchangeable callback in vdpa_config_ops

2021-09-08 Thread Jason Wang
On Wed, Sep 8, 2021 at 8:23 PM Wu Zongyong wrote: > > This new callback is used to indicate whether the vring size can be > change or not. It is useful when we have a legacy virtio pci device as > the vdpa device for there is no way to negotiate the vring num by the > specification. So I'm not

Re: [PATCH 3/6] vp_vdpa: add vq irq offloading support

2021-09-08 Thread Jason Wang
On Wed, Sep 8, 2021 at 8:23 PM Wu Zongyong wrote: > > This patch implements the get_vq_irq() callback for virtio pci devices > to allow irq offloading. > > Signed-off-by: Wu Zongyong > --- > drivers/vdpa/virtio_pci/vp_vdpa.c | 8 > 1 file changed, 8 insertions(+) Acked-by: Jason Wang

Re: [PATCH] vhost_net: fix OoB on sendmsg() failure.

2021-09-08 Thread Jason Wang
On Wed, Sep 8, 2021 at 7:42 PM Paolo Abeni wrote: > > If the sendmsg() call in vhost_tx_batch() fails, both the 'batched_xdp' > and 'done_idx' indexes are left unchanged. If such failure happens > when batched_xdp == VHOST_NET_BATCH, the next call to > vhost_net_build_xdp() will access and write

[PATCH] vhost_net: fix OoB on sendmsg() failure.

2021-09-08 Thread Paolo Abeni
If the sendmsg() call in vhost_tx_batch() fails, both the 'batched_xdp' and 'done_idx' indexes are left unchanged. If such failure happens when batched_xdp == VHOST_NET_BATCH, the next call to vhost_net_build_xdp() will access and write memory outside the xdp buffers area. Since sendmsg() can

Re: [Virtio-fs] [virtiofsd PATCH v4 4/4] virtiofsd: support per-file DAX in FUSE_LOOKUP

2021-09-08 Thread JeffleXu
On 8/24/21 6:15 PM, Greg Kurz wrote: > On Fri, 20 Aug 2021 13:03:23 +0800 > JeffleXu wrote: >> >> Fine. Got it. However the returned fd (opened without O_PATH) is only >> used for FS_IOC_GETFLAGS/FS_IOC_FSGETXATTR ioctl, while in most cases >> for special device files, these two ioctls should

Re: [PATCH 1/2] fuse: disable atomic_o_trunc if no_open is enabled

2021-09-08 Thread JeffleXu
On 9/7/21 4:34 PM, Miklos Szeredi wrote: > On Thu, 12 Aug 2021 at 07:46, Jeffle Xu wrote: >> >> From: Liu Bo >> >> When 'no_open' is used by virtiofsd, guest kernel won't send OPEN request >> any more. However, with atomic_o_trunc, SETATTR request is also omitted in >> OPEN(O_TRUNC) so that