Question about VFIO_DEVICE_RESET

Niket Kandya niketkandya at google.com
Fri Sep 30 22:48:05 CEST 2022


Hi Folks,

After running into a reset related issue recently and browsing through
code, I reached at this function *pci_rte_vfio_setup_device*.

I do not understand the rationale of the *VFIO_DEVICE_RESET* at the end of
this function.
Looks like the function sets up interrupts, enables bus mastering and then
resets the device?

See below from the PCIe spec:
*`Note that the controls that enable the Function to initiate requests on
PCI Express are cleared, including Bus Master Enable, MSI Enable, and the
like, effectively causing the Function to become quiescent on the Link.`*

Is the function effectively undoing everything by doing the reset at the
end?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20220930/81909243/attachment-0001.htm>


More information about the dev mailing list