[PATCH Libvirt v2 05/10] domain_validate: Export virDomainDefHasDirtyLimitStartupVcpus symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hyman Huang(黄勇) <yong.huang@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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 db3b7e1d9d..7036fcae1d 100644
--- a/src/conf/domain_validate.c
+++ b/src/conf/domain_validate.c
@@ -1798,7 +1798,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 da60c965dd..984e9d6b3a 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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux