From 9fc5b7da1db2084f47aa13e387ee85d79ac49d6f Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Mon, 25 Jun 2012 21:34:22 +0800 Subject: [PATCH] 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 968b6c60e9b1889dbaf72cfee1c4fccbd640d69d) --- src/qemu/qemu_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 7d71d7b4d4..72a91d693f 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2007,7 +2007,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; } }