提交 79265b98 编写于 作者: M Maxim Nestratov 提交者: Peter Krempa

parallels: fix prlsdkCheckUnsupportedParams checks

for memory limits since unset ones are no longer zero
Signed-off-by: NMaxim Nestratov <mnestratov@parallels.com>
上级 1988a96e
......@@ -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 "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册