From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu8Vt-0004OU-Cg for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:37 -0400 Received: from [140.186.70.92] (port=60240 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu8Vo-0004MM-Tl for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nu8Vj-0004J9-9n for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:32 -0400 Received: from oxygen.pond.sub.org ([213.239.205.148]:44199) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu8Vi-0004Hy-Qr for qemu-devel@nongnu.org; Tue, 23 Mar 2010 14:07:27 -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 30215276D13 for ; Tue, 23 Mar 2010 19:07:22 +0100 (CET) From: Markus Armbruster Date: Tue, 23 Mar 2010 19:07:20 +0100 Message-Id: <1269367641-6241-3-git-send-email-armbru@redhat.com> In-Reply-To: <1269367641-6241-1-git-send-email-armbru@redhat.com> References: <1269367641-6241-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] QError: New QERR_MIGRATION_FAILED List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com 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 560e70d..05ea9de 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_FAILED, + .desc = "Migration failed" + }, + { .error_fmt = QERR_MIGRATION_IN_PROGRESS, .desc = "Migration already in progress" }, diff --git a/qerror.h b/qerror.h index ecc13e4..b0f909c 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_FAILED \ + "{ 'class': 'MigrationFailed', 'data': {} }" + #define QERR_MIGRATION_IN_PROGRESS \ "{ 'class': 'MigrationInProgress', 'data': {} }" -- 1.6.6.1