提交 9fc5b7da 编写于 作者: O Osier Yang 提交者: Cole Robinson

qemu: Improve error if setmem fails for lacking of balloon support

"cannot set memory of an active domain" is misleading, it sounds
like setting memory of active domain is not supported.
(cherry picked from commit 968b6c60)
上级 cba21fd9
...@@ -2007,7 +2007,8 @@ static int qemudDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem, ...@@ -2007,7 +2007,8 @@ static int qemudDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem,
/* Lack of balloon support is a fatal error */ /* Lack of balloon support is a fatal error */
if (r == 0) { if (r == 0) {
qemuReportError(VIR_ERR_OPERATION_INVALID, "%s", qemuReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("cannot set memory of an active domain")); _("Unable to change memory of active domain without "
"the balloon device and guest OS balloon driver"));
goto endjob; goto endjob;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册