Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtNwY-0007vz-Sk for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtNwU-0007ns-5T for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:46 -0400 Received: from [199.232.76.173] (port=54699 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtNwT-0007nb-WB for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtNwT-0003g6-D6 for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:41 -0400 From: Luiz Capitulino Date: Thu, 1 Oct 2009 12:50:44 -0300 Message-Id: <1254412245-10452-14-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1254412245-10452-1-git-send-email-lcapitulino@redhat.com> References: <1254412245-10452-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 13/14] monitor-error: Add do_info_balloon() errors List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, avi@redhat.com Signed-off-by: Luiz Capitulino --- monitor-error.c | 6 ++++++ monitor-error.h | 5 +++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/monitor-error.c b/monitor-error.c index 35f61b8..078bae2 100644 --- a/monitor-error.c +++ b/monitor-error.c @@ -70,6 +70,12 @@ static void set_error_desc(MonitorError *error) case MON_ERR_EXTCHAR: str = "extraneous characters at the end of line"; break; + case MON_ERR_BAL_MMU: + str = "Using KVM without synchronous MMU, ballooning disabled"; + break; + case MON_ERR_BAL_DIS: + str = "Ballooning not activated in VM"; + break; default: str = "unknown"; break; diff --git a/monitor-error.h b/monitor-error.h index cd2f82c..36299d4 100644 --- a/monitor-error.h +++ b/monitor-error.h @@ -29,6 +29,11 @@ typedef enum MonitorErrCodes { MON_ERR_EXTCHAR, } MonitorErrCodes; +typedef enum MonitorHndErrCodes { + MON_ERR_BAL_MMU = 30, + MON_ERR_BAL_DIS, +} MonitorHndErrCodes; + typedef struct MonitorError { QInt *code; /* error code */ QString *desc; /* 'global' error description */ -- 1.6.5.rc2