From: Pino Toscano <ptoscano(a)redhat.com>
Signed-off-by: Pino Toscano <ptoscano(a)redhat.com>
---
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 ccd81ef97..9a3cdc777 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -3967,7 +3967,8 @@ virDomainDefPostParseMemory(virDomainDefPtr def,
static int
-virDomainDefAddConsoleCompat(virDomainDefPtr def)
+virDomainDefAddConsoleCompat(virDomainDefPtr def,
+ unsigned int parseFlags ATTRIBUTE_UNUSED)
{
size_t i;
@@ -4929,7 +4930,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) {
@@ -21945,9 +21946,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 93a326018..bab9680b1 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2932,7 +2932,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 c9f2a13e4..2e3a3d0f8 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.13.6