<div dir="ltr"><div>Hello,</div><div>I am trying to port kernel mode driver for PCIe device to user space with the help of VFIO. <br></div><div>I am wondering how to enable and disable pci bus mastering for the device ?<br></div><div></div><div><br></div><div>InĀ  Kerenel mode we call pci_set_master() and pci_clear_master() .</div><div><br></div><div>Best Regards</div><div>Steev<br></div><div><br></div><div><br></div></div>