From patchwork Thu Oct 1 15:50:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 34748 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A69BBB7BCA for ; Fri, 2 Oct 2009 02:23:07 +1000 (EST) Received: from localhost ([127.0.0.1]:59892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtOQq-0008PW-Kq for incoming@patchwork.ozlabs.org; Thu, 01 Oct 2009 12:23:04 -0400 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 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n91FpeDl002679; Thu, 1 Oct 2009 11:51:40 -0400 Received: from localhost (vpn-12-143.rdu.redhat.com [10.11.12.143]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n91Fpcoi002843; Thu, 1 Oct 2009 11:51:39 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, avi@redhat.com Subject: [Qemu-devel] [PATCH 13/14] monitor-error: Add do_info_balloon() errors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 */