@@ -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;
@@ -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 */
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor-error.c | 6 ++++++ monitor-error.h | 5 +++++ 2 files changed, 11 insertions(+), 0 deletions(-)