[PATCH] vdpa: regist vhost-vdpa dev class

2021-12-22 Thread Yi Wang
From: Zhang Min Some applications like kata-containers need to acquire MAJOR/MINOR/DEVNAME for devInfo [1], so regist vhost-vdpa dev class to expose uevent. 1. https://github.com/kata-containers/kata-containers/blob/main/src/runtime/virtcontainers/device/config/config.go Signed-off-by: Zhang M

Re: [PATCH] virtio/virtio_pci_legacy_dev: ensure the correct return value

2021-12-22 Thread Jason Wang
On Wed, Dec 22, 2021 at 7:21 PM Peng Hao wrote: > > When pci_iomap return NULL, the return value is zero. > > Signed-off-by: Peng Hao > --- Acked-by: Jason Wang > drivers/virtio/virtio_pci_legacy_dev.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/virtio/

[PATCH] kthread: Generalize pf_io_worker so it can point to struct kthread

2021-12-22 Thread Eric W. Biederman
The point of using set_child_tid to hold the kthread pointer was that it already did what is necessary. There are now restrictions on when set_child_tid can be initialized and when set_child_tid can be used in schedule_tail. Which indicates that continuing to use set_child_tid to hold the kthre

Re: [PATCH 09/10] kthread: Ensure struct kthread is present for all kthreads

2021-12-22 Thread Eric W. Biederman
Added a couple of people from the vhost thread. Linus Torvalds writes: > On Wed, Dec 22, 2021 at 3:25 PM Eric W. Biederman > wrote: >> >> Solve this by skipping the put_user for all kthreads. > > Ugh. > > While this fixes the problem, could we please just not mis-use that > 'set_child_tid' a

Re: [PATCH v5 10/13] vdpa: Support reporting max device virtqueues

2021-12-22 Thread Si-Wei Liu
On 12/22/2021 6:27 PM, Jason Wang wrote: On Thu, Dec 23, 2021 at 3:25 AM Si-Wei Liu wrote: On 12/21/2021 11:54 PM, Eli Cohen wrote: On Tue, Dec 21, 2021 at 11:29:36PM -0800, Si-Wei Liu wrote: On 12/21/2021 11:10 PM, Eli Cohen wrote: On Wed, Dec 22, 2021 at 09:03:37AM +0200, Parav Pandit

Re: [PATCH v5 10/13] vdpa: Support reporting max device virtqueues

2021-12-22 Thread Jason Wang
On Thu, Dec 23, 2021 at 3:25 AM Si-Wei Liu wrote: > > > > On 12/21/2021 11:54 PM, Eli Cohen wrote: > > On Tue, Dec 21, 2021 at 11:29:36PM -0800, Si-Wei Liu wrote: > >> > >> On 12/21/2021 11:10 PM, Eli Cohen wrote: > >>> On Wed, Dec 22, 2021 at 09:03:37AM +0200, Parav Pandit wrote: > > From: El

Re: [PATCH v6 10/13] vdpa: Support reporting max device virtqueues

2021-12-22 Thread Si-Wei Liu
On 12/22/2021 6:20 AM, Eli Cohen wrote: Add max_supported_vqs field to struct vdpa_mgmt_dev. Upstream drivers need to feel this value according to the device capabilities. This value is reported back in a netlink message when showing management devices. Examples: $ vdpa mgmtdev show auxilia

Re: [PATCH v6 03/13] vdpa: Sync calls set/get config/status with cf_mutex

2021-12-22 Thread Si-Wei Liu
On 12/22/2021 6:20 AM, Eli Cohen wrote: Add wrappers to get/set status and protect these operations with cf_mutex to serialize these operations with respect to get/set config operations. Need to protect vdpa_reset() which is essentially vdpa_set_status(0) -Siwei Signed-off-by: Eli Cohen -

Re: [PATCH V6 01/10] Use copy_process in vhost layer

2021-12-22 Thread Michael S. Tsirkin
On Wed, Dec 22, 2021 at 12:24:08PM -0600, Eric W. Biederman wrote: > Mike Christie writes: > > > On 12/21/21 6:20 PM, Eric W. Biederman wrote: > >> michael.chris...@oracle.com writes: > >> > >>> On 12/17/21 1:26 PM, Eric W. Biederman wrote: > Mike Christie writes: > > > The follow

Re: [PATCH v5 10/13] vdpa: Support reporting max device virtqueues

2021-12-22 Thread Si-Wei Liu
On 12/21/2021 11:54 PM, Eli Cohen wrote: On Tue, Dec 21, 2021 at 11:29:36PM -0800, Si-Wei Liu wrote: On 12/21/2021 11:10 PM, Eli Cohen wrote: On Wed, Dec 22, 2021 at 09:03:37AM +0200, Parav Pandit wrote: From: Eli Cohen Sent: Wednesday, December 22, 2021 12:17 PM --- a/drivers/vdpa/vdpa

Re: [PATCH V6 01/10] Use copy_process in vhost layer

2021-12-22 Thread Eric W. Biederman
Mike Christie writes: > On 12/21/21 6:20 PM, Eric W. Biederman wrote: >> michael.chris...@oracle.com writes: >> >>> On 12/17/21 1:26 PM, Eric W. Biederman wrote: Mike Christie writes: > The following patches made over Linus's tree, allow the vhost layer to do > a copy_process

Re: [PATCH V6 01/10] Use copy_process in vhost layer

2021-12-22 Thread Mike Christie
On 12/21/21 6:20 PM, Eric W. Biederman wrote: > michael.chris...@oracle.com writes: > >> On 12/17/21 1:26 PM, Eric W. Biederman wrote: >>> Mike Christie writes: >>> The following patches made over Linus's tree, allow the vhost layer to do a copy_process on the thread that does the VHOST

Re: [PATCH 0/4] driver_core: Auxiliary drvdata helper cleanup

2021-12-22 Thread Jason Gunthorpe
On Tue, Dec 21, 2021 at 04:48:17PM -0800, David E. Box wrote: > On Tue, 2021-12-21 at 20:09 -0400, Jason Gunthorpe wrote: > > On Tue, Dec 21, 2021 at 03:58:48PM -0800, David E. Box wrote: > > > Depends on "driver core: auxiliary bus: Add driver data helpers" patch > > > [1]. > > > Applies the help

Re: [PATCH 2/4] soundwire: intel: Use auxiliary_device driver data helpers

2021-12-22 Thread Andy Shevchenko
On Tue, Dec 21, 2021 at 03:58:50PM -0800, David E. Box wrote: > Use auxiliary_get_drvdata and auxiliary_set_drvdata helpers. Reviewed-by: Andy Shevchenko > Signed-off-by: David E. Box > --- > drivers/soundwire/intel.c | 8 > drivers/soundwire/intel_init.c | 2 +- > 2 files change

Re: [PATCH v3 03/10] drm/bochs: Replace module-init boiler-plate code with DRM helpers

2021-12-22 Thread Gerd Hoffmann
On Wed, Dec 22, 2021 at 09:28:24AM +0100, Javier Martinez Canillas wrote: > -static int __init bochs_init(void) > -{ > - if (drm_firmware_drivers_only() && bochs_modeset == -1) > - return -EINVAL; Also cleanup bochs_modeset? I guess its not used any more after this patch ... take