From: Osier Yang Date: Mon, 25 Jun 2012 13:34:22 +0000 (+0800) Subject: qemu: Improve error if setmem fails for lacking of balloon support X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=968b6c60e9b1889dbaf72cfee1c4fccbd640d69d;p=libvirt.git 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 2177c3096d..2f934040ea 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2037,7 +2037,8 @@ static int qemudDomainSetMemoryFlags(virDomainPtr dom, unsigned long newmem, /* Lack of balloon support is a fatal error */ if (r == 0) { 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; } }