vdpa/pds: fixes for VF vdpa flr-aer handling
authorShannon Nelson <shannon.nelson@amd.com>
Tue, 20 Feb 2024 01:10:50 +0000 (17:10 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Mar 2024 06:45:49 +0000 (02:45 -0400)
commitba6faaa68ddab7961fc1be10193ee731c6e2a1f5
treec8e15e7a04489dbfc1e6a01d883875d1298363cd
parentd7b4e3287ca3a7baf66efd9158498e551a9550da
vdpa/pds: fixes for VF vdpa flr-aer handling

This addresses a couple of things found while testing the FLR and AER
handling with the VFs.
 - release irqs before calling vp_modern_remove()
 - make sure we have a valid struct pointer before using it to release irqs
 - make sure the FW is alive before trying to add a new device

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Message-Id: <20240220011050.30913-1-shannon.nelson@amd.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/pds/aux_drv.c
drivers/vdpa/pds/vdpa_dev.c
drivers/vdpa/pds/vdpa_dev.h