From: Hyman Huang(黄勇) <yong.huang(a)smartx.com>
Export virDomainDefHasDirtyLimitStartupVcpus as a util function,
which could be used in qemu_process.c file for the next commit.
Signed-off-by: Hyman Huang(黄勇) <yong.huang(a)smartx.com>
---
src/conf/domain_validate.c | 2 +-
src/conf/domain_validate.h | 2 ++
src/libvirt_private.syms | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c
index 2df9db3467..04c18462da 100644
--- a/src/conf/domain_validate.c
+++ b/src/conf/domain_validate.c
@@ -1785,7 +1785,7 @@ virDomainDefValidateIOThreads(const virDomainDef *def)
return 0;
}
-static int
+int
virDomainDefHasDirtyLimitStartupVcpus(const virDomainDef *def)
{
size_t maxvcpus = virDomainDefGetVcpusMax(def);
diff --git a/src/conf/domain_validate.h b/src/conf/domain_validate.h
index fc441cef5b..ccec3663cc 100644
--- a/src/conf/domain_validate.h
+++ b/src/conf/domain_validate.h
@@ -47,3 +47,5 @@ int virDomainDiskDefSourceLUNValidate(const virStorageSource *src);
int virDomainDefOSValidate(const virDomainDef *def,
virDomainXMLOption *xmlopt);
+
+int virDomainDefHasDirtyLimitStartupVcpus(const virDomainDef *def);
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index f8cda2f773..32656dea7a 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -793,6 +793,7 @@ virDomainDefPostParse;
# conf/domain_validate.h
virDomainActualNetDefValidate;
+virDomainDefHasDirtyLimitStartupVcpus;
virDomainDefOSValidate;
virDomainDefValidate;
virDomainDeviceValidateAliasForHotplug;
--
2.38.5