This function will be useful in qemu_domain_address.c,
so promote it from static.
Signed-off-by: Shivaprasad G Bhat <sbhat(a)linux.vnet.ibm.com>
---
src/libvirt_private.syms | 1 +
src/util/virhostdev.c | 2 +-
src/util/virhostdev.h | 3 +++
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 68b648ba31..b092c240d8 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1918,6 +1918,7 @@ virHostdevFindUSBDevice;
virHostdevHostSupportsPassthroughKVM;
virHostdevHostSupportsPassthroughVFIO;
virHostdevIsSCSIDevice;
+virHostdevIsVirtualFunction;
virHostdevManagerGetDefault;
virHostdevPCIDevicesBelongToSameSlot;
virHostdevPCINodeDeviceDetach;
diff --git a/src/util/virhostdev.c b/src/util/virhostdev.c
index 9508a29954..454ae3568c 100644
--- a/src/util/virhostdev.c
+++ b/src/util/virhostdev.c
@@ -289,7 +289,7 @@ virHostdevPCISysfsPath(virDomainHostdevDefPtr hostdev,
}
-static int
+int
virHostdevIsVirtualFunction(virDomainHostdevDefPtr hostdev)
{
char *sysfs_path = NULL;
diff --git a/src/util/virhostdev.h b/src/util/virhostdev.h
index ded7620355..d696b5fdcc 100644
--- a/src/util/virhostdev.h
+++ b/src/util/virhostdev.h
@@ -196,6 +196,9 @@ virHostdevReAttachDomainDevices(virHostdevManagerPtr mgr,
bool
virHostdevIsSCSIDevice(virDomainHostdevDefPtr hostdev)
ATTRIBUTE_NONNULL(1);
+int
+virHostdevIsVirtualFunction(virDomainHostdevDefPtr hostdev)
+ ATTRIBUTE_NONNULL(1);
/* functions used by NodeDevDetach/Reattach/Reset */
int virHostdevPCINodeDeviceDetach(virHostdevManagerPtr mgr,