From 968b6c60e9b1889dbaf72cfee1c4fccbd640d69d 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. --- 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 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; } }