From 79265b98348cbb100bcac7f817eb526ee498fe7a Mon Sep 17 00:00:00 2001 From: Maxim Nestratov Date: Thu, 12 Mar 2015 18:43:29 +0300 Subject: [PATCH] parallels: fix prlsdkCheckUnsupportedParams checks for memory limits since unset ones are no longer zero Signed-off-by: Maxim Nestratov --- src/parallels/parallels_sdk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c index fde908b123..89a9a58c75 100644 --- a/src/parallels/parallels_sdk.c +++ b/src/parallels/parallels_sdk.c @@ -1781,10 +1781,10 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def) } if (def->mem.nhugepages || - def->mem.hard_limit || - def->mem.soft_limit || + virMemoryLimitIsSet(def->mem.hard_limit) || + virMemoryLimitIsSet(def->mem.soft_limit) || def->mem.min_guarantee || - def->mem.swap_hard_limit) { + virMemoryLimitIsSet(def->mem.swap_hard_limit)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("Memory parameter is not supported "