Hi, I am not sure why we are calling ioctl(vfio_dev_fd, VFIO_DEVICE_RESET) in pci_rte_vfio_setup_device() , which is after opening the VFIO device fd. As I see in linux kernel, opening the vfio device fd will trigger the device reset and put device into clean state. Another VFIO_DEVICE_RESET seems not needed?
Could anyone help confirm or correct me? There was also a related question in community two years ago: https://mails.dpdk.org/archives/dev/2022-September/251640.html Thanks, Chenbo