acrn-kernel/drivers/vdpa
Zhu Lingshan beb15de99a vDPA/ifcvf: allocate the adapter in dev_add()
commit 93139037b5 upstream.

The adapter is the container of the vdpa_device,
this commits allocate the adapter in dev_add()
rather than in probe(). So that the vdpa_device()
could be re-created when the userspace creates
the vdpa device, and free-ed in dev_del()

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Cc: stable@vger.kernel.org
Message-Id: <20221125145724.1129962-11-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 13:55:42 +01:00
..
alibaba
ifcvf vDPA/ifcvf: allocate the adapter in dev_add() 2023-03-11 13:55:42 +01:00
mlx5 vdpa/mlx5: Avoid overwriting CVQ iotlb 2023-01-24 07:24:31 +01:00
vdpa_sim vdpa_sim_net: should not drop the multicast/broadcast packet 2023-01-24 07:24:31 +01:00
vdpa_user vduse: Validate vq_num in vduse_validate_config() 2023-01-24 07:24:31 +01:00
virtio_pci vdpa/vp_vdpa: fix kfree a wrong pointer in vp_vdpa_remove 2023-01-12 12:02:08 +01:00
Kconfig
Makefile
vdpa.c