[PATCH v4 0/2] fix two issues in hisi_acc_vfio_pci driver

Longfang Liu posted 2 patches 6 days, 15 hours ago
There is a newer version of this series
.../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 49 ++++++++++++-------
1 file changed, 32 insertions(+), 17 deletions(-)
[PATCH v4 0/2] fix two issues in hisi_acc_vfio_pci driver
Posted by Longfang Liu 6 days, 15 hours ago
This series fixes two issues in the HiSilicon ACC VFIO PCI driver:
1. A NULL pointer dereference in reset_prepare() when a PF is bound
to the driver and passed through to a VM.
2. A 64KB page incompatibility on QM_HW_V3 hardware that breaks
migration and the guest kernel.

Changes since v3:
- Merged the set_reset_flag fix into patch 1 (was a separate patch in v3)
- Replaced pf_qm guards with a mig_ops check at function entry, per
  Alex Williamson's suggestion
- Moved the 64KB page check from open_device to probe, selecting generic
  ops instead of rejecting the device, per Alex Williamson's suggestion

Longfang Liu (2):
  hisi_acc_vfio_pci: fix NULL dereference in reset_prepare on PF
    passthrough
  hisi_acc_vfio_pci: reject live migration on 64KB page with QM_HW_V3
    hardware

 .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c    | 49 ++++++++++++-------
 1 file changed, 32 insertions(+), 17 deletions(-)

-- 
2.43.0