From 82a60711dd5857ec79effd8ef4a2c29bf42540c0 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 18 Nov 2009 23:05:35 -0200 Subject: [PATCH] QError: Add QERR_KVM_MISSING_CAP New class for KVM unavailable features errors. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/qerror.c b/qerror.c index 0c0a5100aa..d8b125e512 100644 --- a/qerror.c +++ b/qerror.c @@ -48,6 +48,10 @@ const QErrorStringTable qerror_table[] = { .error_fmt = QERR_DEVICE_NOT_ACTIVE, .desc = "The %(device) device has not been activated by the guest", }, + { + .error_fmt = QERR_KVM_MISSING_CAP, + .desc = "Using KVM without %(capability), %(feature) unavailable", + }, {} }; diff --git a/qerror.h b/qerror.h index c1be8b96e4..6c100afc29 100644 --- a/qerror.h +++ b/qerror.h @@ -44,4 +44,7 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_DEVICE_NOT_ACTIVE \ "{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }" +#define QERR_KVM_MISSING_CAP \ + "{ 'class': 'KVMMissingCap', 'data': { 'capability': %s, 'feature': %s } }" + #endif /* QERROR_H */ -- 2.11.4.GIT