linux-stable/drivers/vdpa
Parav Pandit fbfa91978c vduse: Tie vduse mgmtdev and its device
[ Upstream commit 0e0348ac3f ]

vduse devices are not backed by any real devices such as PCI. Hence it
doesn't have any parent device linked to it.

Kernel driver model in [1] suggests to avoid an empty device
release callback.

Hence tie the mgmtdevice object's life cycle to an allocate dummy struct
device instead of static one.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/kobject.rst?h=v5.18-rc7#n284

Signed-off-by: Parav Pandit <parav@nvidia.com>
Message-Id: <20220613195223.473966-1-parav@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-22 10:21:46 +02:00
..
alibaba vdpa: Provide interface to read driver features 2022-01-14 18:50:53 -05:00
ifcvf vdpa: ifcvf: set pci driver data in probe 2022-06-14 18:44:58 +02:00
mlx5 vdpa/mlx5: Initialize CVQ vringh only once 2022-07-22 10:21:46 +02:00
vdpa_sim vdpasim: allow to enable a vq repeatedly 2022-06-09 10:30:55 +02:00
vdpa_user vduse: Tie vduse mgmtdev and its device 2022-07-22 10:21:46 +02:00
virtio_pci vdpa: fix use-after-free on vp_vdpa_remove 2022-03-06 06:06:50 -05:00
Kconfig eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
Makefile eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
vdpa.c vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit 2022-06-14 18:44:57 +02:00