[PATCH v2 19/21] conf: pass parseFlags down to virDomainDefAddConsoleCompat

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

 



From: Pino Toscano <ptoscano@xxxxxxxxxx>

Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 10 ++++++----
 src/conf/domain_conf.h |  3 ++-
 src/vz/vz_sdk.c        |  2 +-
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 1dcd0e91a..c4497ab0f 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -3980,7 +3980,8 @@ virDomainDefPostParseMemory(virDomainDefPtr def,
 
 
 static int
-virDomainDefAddConsoleCompat(virDomainDefPtr def)
+virDomainDefAddConsoleCompat(virDomainDefPtr def,
+                             unsigned int parseFlags ATTRIBUTE_UNUSED)
 {
     size_t i;
 
@@ -4941,7 +4942,7 @@ virDomainDefPostParseCommon(virDomainDefPtr def,
     if (virDomainDefPostParseTimer(def) < 0)
         return -1;
 
-    if (virDomainDefAddImplicitDevices(def) < 0)
+    if (virDomainDefAddImplicitDevices(def, data->parseFlags) < 0)
         return -1;
 
     if (def->nvideos != 0) {
@@ -22016,9 +22017,10 @@ virDomainDefAddImplicitVideo(virDomainDefPtr def)
 }
 
 int
-virDomainDefAddImplicitDevices(virDomainDefPtr def)
+virDomainDefAddImplicitDevices(virDomainDefPtr def,
+                               unsigned int parseFlags)
 {
-    if (virDomainDefAddConsoleCompat(def) < 0)
+    if (virDomainDefAddConsoleCompat(def, parseFlags) < 0)
         return -1;
 
     if (virDomainDefAddImplicitControllers(def) < 0)
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index b06f40ab8..0c2daa81a 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2949,7 +2949,8 @@ bool virDomainDefCheckABIStabilityFlags(virDomainDefPtr src,
                                         virDomainXMLOptionPtr xmlopt,
                                         unsigned int flags);
 
-int virDomainDefAddImplicitDevices(virDomainDefPtr def);
+int virDomainDefAddImplicitDevices(virDomainDefPtr def,
+                                   unsigned int parseFlags);
 
 virDomainIOThreadIDDefPtr virDomainIOThreadIDFind(const virDomainDef *def,
                                                   unsigned int iothread_id);
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index eea5f6fc6..35522f46c 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -1932,7 +1932,7 @@ prlsdkLoadDomain(vzDriverPtr driver,
     if (prlsdkGetDomainState(dom, sdkdom, &domainState) < 0)
         goto error;
 
-    if (!IS_CT(def) && virDomainDefAddImplicitDevices(def) < 0)
+    if (!IS_CT(def) && virDomainDefAddImplicitDevices(def, 0) < 0)
         goto error;
 
     if (def->ngraphics > 0) {
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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