Question about why doing VFIO RESET after device open
Chenbo Xia
chenbox at nvidia.com
Mon May 6 09:37:09 CEST 2024
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
More information about the dev
mailing list