From patchwork Tue Mar 23 18:07:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] QError: New QERR_MIGRATION_FAILED Date: Tue, 23 Mar 2010 08:07:20 -0000 From: Markus Armbruster X-Patchwork-Id: 48359 Message-Id: <1269367641-6241-3-git-send-email-armbru@redhat.com> 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': {} }"