From patchwork Tue Mar 23 18:07:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 48357 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 84CC2B7CCD for ; Wed, 24 Mar 2010 05:08:16 +1100 (EST) Received: from localhost ([127.0.0.1]:35210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu8WS-0004NC-Im for incoming@patchwork.ozlabs.org; Tue, 23 Mar 2010 14:08:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu8Vn-0004LP-MF for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:31 -0400 Received: from [140.186.70.92] (port=60194 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu8Vk-0004IP-J4 for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nu8Vj-0004J1-30 for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:28 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:44201) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu8Vi-0004I0-5N for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:26 -0400 Received: from blackfin.pond.sub.org (pD9E3A7EE.dip.t-dialin.net [217.227.167.238]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 317D6276DA2 for ; Tue, 23 Mar 2010 19:07:22 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 9A1A97F; Tue, 23 Mar 2010 19:07:21 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Tue, 23 Mar 2010 19:07:19 +0100 Message-Id: <1269367641-6241-2-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1269367641-6241-1-git-send-email-armbru@redhat.com> References: <1269367641-6241-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH 1/3] QError: New QERR_MIGRATION_IN_PROGRESS 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: Markus Armbruster --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 8d885cd..560e70d 100644 --- a/qerror.c +++ b/qerror.c @@ -141,6 +141,10 @@ static const QErrorStringTable qerror_table[] = { .desc = "Using KVM without %(capability), %(feature) unavailable", }, { + .error_fmt = QERR_MIGRATION_IN_PROGRESS, + .desc = "Migration already in progress" + }, + { .error_fmt = QERR_MISSING_PARAMETER, .desc = "Parameter '%(name)' is missing", }, diff --git a/qerror.h b/qerror.h index bae08c0..ecc13e4 100644 --- a/qerror.h +++ b/qerror.h @@ -121,6 +121,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_KVM_MISSING_CAP \ "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" +#define QERR_MIGRATION_IN_PROGRESS \ + "{ 'class': 'MigrationInProgress', 'data': {} }" + #define QERR_MISSING_PARAMETER \ "{ 'class': 'MissingParameter', 'data': { 'name': %s } }"