Patchwork [6/7] QError: Add do_info_balloon() errors

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 29, 2009, 6:42 p.m.
Message ID <1256841750-15228-7-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/37222/
State New
Headers show

Comments

Luiz Capitulino - Oct. 29, 2009, 6:42 p.m.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qerror.c |    8 ++++++++
 qerror.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)

Patch

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;