diff mbox

[13/14] monitor-error: Add do_info_balloon() errors

Message ID 1254412245-10452-14-git-send-email-lcapitulino@redhat.com
State Superseded
Headers show

Commit Message

Luiz Capitulino Oct. 1, 2009, 3:50 p.m. UTC
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 monitor-error.c |    6 ++++++
 monitor-error.h |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/monitor-error.c b/monitor-error.c
index 35f61b8..078bae2 100644
--- a/monitor-error.c
+++ b/monitor-error.c
@@ -70,6 +70,12 @@  static void set_error_desc(MonitorError *error)
         case MON_ERR_EXTCHAR:
             str = "extraneous characters at the end of line";
             break;
+        case MON_ERR_BAL_MMU:
+            str = "Using KVM without synchronous MMU, ballooning disabled";
+            break;
+        case MON_ERR_BAL_DIS:
+            str = "Ballooning not activated in VM";
+            break;
         default:
             str = "unknown";
             break;
diff --git a/monitor-error.h b/monitor-error.h
index cd2f82c..36299d4 100644
--- a/monitor-error.h
+++ b/monitor-error.h
@@ -29,6 +29,11 @@  typedef enum MonitorErrCodes {
     MON_ERR_EXTCHAR,
 } MonitorErrCodes;
 
+typedef enum MonitorHndErrCodes {
+    MON_ERR_BAL_MMU = 30,
+    MON_ERR_BAL_DIS,
+} MonitorHndErrCodes;
+
 typedef struct MonitorError {
     QInt *code;     /* error code */
     QString *desc;  /* 'global' error description */