<div dir="ltr">Hi everyone, as title.<div><br></div><div>I know this is a silly question, because you just need to check VM is on or off to know the VFIO device is occupied or not.</div><div><br></div><div>But I have this requirement when I'm using pass-through on OpenStack.</div><div>Because you don't know which device that OpenStack will choose if you got multiple devices on same model.</div><div><br></div><div>Using lspci -k is another way, but since these devices already controlled by vfio-pci, it's hard to know which device is occupied.</div><div><br></div><div>Is VFIO have a command to do that? Or any other way to know the device is using by VM?<br><br><br></div><div>Bad English, so the question may not clear.</div><div><br></div><div>Many thanks,</div><div>Eddie.</div></div>