Commit d511b65 ("vfio/pci: add vfio_pci_get_irq_info()") added vfio_pci_get_irq_info() API to return the initialized &struct vfio_irq_info instance in ctrl->pci.dev due to struct mismatch between caller and the libvfn library.
We should deprecated the &struct vfio_device_info and &struct vfio_irq_info from the &struct vfio_device, and make an wrapper API to request ioctl to the vfio-pci driver directly rather than returning the cached data structure in libvfn.
Commit d511b65 ("vfio/pci: add
vfio_pci_get_irq_info()") addedvfio_pci_get_irq_info()API to return the initialized &struct vfio_irq_info instance inctrl->pci.devdue to struct mismatch between caller and the libvfn library.We should deprecated the &struct vfio_device_info and &struct vfio_irq_info from the &struct vfio_device, and make an wrapper API to request
ioctlto the vfio-pci driver directly rather than returning the cached data structure in libvfn.