acrn-kernel/drivers/vdpa
Stefano Garzarella 9da667e50c vdpa_sim_net: complete the initialization before register the device
Initialization must be completed before calling _vdpa_register_device()
since it can connect the device to the vDPA bus, so requests can arrive
after that call.

So for example vdpasim_net_work(), which uses the net->*_stats variables,
can be scheduled before they are initialized.

Let's move _vdpa_register_device() to the end of vdpasim_net_dev_add()
and add a comment to avoid future issues.

Fixes: 0899774cb3 ("vdpa_sim_net: vendor satistics")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20230329160321.187176-1-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2023-04-04 14:22:12 -04:00
..
alibaba vdpa: multiple address spaces support 2022-05-31 12:44:27 -04:00
ifcvf vDPA/ifcvf: implement features provisioning 2023-02-20 19:26:55 -05:00
mlx5 vdpa/mlx5: Add and remove debugfs in setup/teardown driver 2023-04-04 11:08:30 -04:00
solidrun virtio: vdpa: new SolidNET DPU driver. 2023-02-20 19:26:56 -05:00
vdpa_sim vdpa_sim_net: complete the initialization before register the device 2023-04-04 14:22:12 -04:00
vdpa_user - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
virtio_pci vp_vdpa: fix the crash in hot unplug with vp_vdpa 2023-03-10 03:48:27 -05:00
Kconfig virtio: vdpa: new SolidNET DPU driver. 2023-02-20 19:26:56 -05:00
Makefile virtio: vdpa: new SolidNET DPU driver. 2023-02-20 19:26:56 -05:00
vdpa.c vdpa: validate device feature provisioning against supported class 2023-02-20 19:27:00 -05:00