<div dir="ltr">Thanks, I will raise an issue and look to see if I can raise a patch.<div><br></div><div>Regards</div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 19, 2021 at 11:38 AM Michal Prívozník <<a href="mailto:mprivozn@redhat.com">mprivozn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/17/21 8:36 PM, Simon Fairweather wrote:<br>
> I am looking to be able to check if a specific PCI device is allocated to a<br>
> guest.<br>
> <br>
> An error is produced if a domain is started and the device is in use within<br>
> another domain via this function.<br>
> <br>
> I cannot see a publicly available function to use to get this information,<br>
> is there one available or is there another way to check the state of the<br>
> PCI device.<br>
> <br>
<br>
Yeah, there's no public API. So far we recommended mgmt apps to track<br>
the usage themselves, however I don't see why we shouldn't have a new<br>
API, say:<br>
<br>
int virNodeDeviceGetUsed(virNodeDevicePtr dev, char **drvname, char<br>
**domname);<br>
<br>
Can you please open a gitlab issue for this? Or, are you willing to<br>
submit patches?<br>
<br>
Michal<br>
<br>
</blockquote></div>