DPDK patches and discussions
 help / color / mirror / Atom feed
* Question about why doing VFIO RESET after device open
@ 2024-05-06  7:37 Chenbo Xia
  0 siblings, 0 replies; only message in thread
From: Chenbo Xia @ 2024-05-06  7:37 UTC (permalink / raw)
  To: dev, Anatoly Burakov, jerinjacobk, nipun.gupta
  Cc: NBU-Contact-Thomas Monjalon (EXTERNAL), niketkandya

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-06  7:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06  7:37 Question about why doing VFIO RESET after device open Chenbo Xia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).