From patchwork Thu Oct 29 18:42:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 37222 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 5528CB7BF0 for ; Fri, 30 Oct 2009 05:53:56 +1100 (EST) Received: from localhost ([127.0.0.1]:34692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3a89-0001Qo-U3 for incoming@patchwork.ozlabs.org; Thu, 29 Oct 2009 14:53:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3Zxc-00052w-IZ for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:43:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3ZxX-00050A-AL for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:59 -0400 Received: from [199.232.76.173] (port=39779 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3ZxX-000505-74 for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1832) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3ZxW-0008Pp-JZ for qemu-devel@nongnu.org; Thu, 29 Oct 2009 14:42:54 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9TIgrkr017811; Thu, 29 Oct 2009 14:42:54 -0400 Received: from localhost (vpn-12-126.rdu.redhat.com [10.11.12.126]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9TIgqa8015903; Thu, 29 Oct 2009 14:42:53 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Thu, 29 Oct 2009 16:42:29 -0200 Message-Id: <1256841750-15228-7-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> References: <1256841750-15228-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: pbonzini@redhat.com, aliguori@us.ibm.com, kraxel@redhat.com, hollisb@us.ibm.com Subject: [Qemu-devel] [PATCH 6/7] QError: 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 --- qerror.c | 8 ++++++++ qerror.h | 2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 69eabfb..ad8d4e0 100644 --- a/qerror.c +++ b/qerror.c @@ -55,6 +55,14 @@ static QErrorTable qerror_table[] = { .code = QERR_DEV_NFOUND, .desc = "device \"%(name)s\" not found", }, + { + .code = QERR_BAL_MMU, + .desc = "Using KVM without synchronous MMU, ballooning disabled", + }, + { + .code = QERR_BAL_DIS, + .desc = "Ballooning not activated in VM", + }, }; /** diff --git a/qerror.h b/qerror.h index 7f45360..6a4c8a9 100644 --- a/qerror.h +++ b/qerror.h @@ -22,6 +22,8 @@ typedef enum QErrorCode { QERR_UNKNOWN, QERR_DEV_NFOUND, + QERR_BAL_MMU, + QERR_BAL_DIS, QERR_MAX, } QErrorCode;