summaryrefslogtreecommitdiffstats
path: root/hw/xen/xen-host-pci-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xen/xen-host-pci-device.c')
-rw-r--r--hw/xen/xen-host-pci-device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xen/xen-host-pci-device.c b/hw/xen/xen-host-pci-device.c
index a54b7de..be28ca2 100644
--- a/hw/xen/xen-host-pci-device.c
+++ b/hw/xen/xen-host-pci-device.c
@@ -392,6 +392,11 @@ error:
return rc;
}
+bool xen_host_pci_device_closed(XenHostPCIDevice *d)
+{
+ return d->config_fd == -1;
+}
+
void xen_host_pci_device_put(XenHostPCIDevice *d)
{
if (d->config_fd >= 0) {
OpenPOWER on IntegriCloud