[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 9/9] monitor: do_info_balloon(): use QError
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PATCH 9/9] monitor: do_info_balloon(): use QError |
Date: |
Tue, 13 Oct 2009 13:57:06 -0300 |
Signed-off-by: Luiz Capitulino <address@hidden>
---
monitor.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/monitor.c b/monitor.c
index 6f0ad11..5d7c816 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1717,10 +1717,9 @@ static void do_info_balloon(Monitor *mon, QObject
**ret_data)
actual = qemu_balloon_status();
if (kvm_enabled() && !kvm_has_sync_mmu())
- monitor_printf(mon, "Using KVM without synchronous MMU, "
- "ballooning disabled\n");
+ qemu_error_structed(QERR_BAL_MMU, NULL);
else if (actual == 0)
- monitor_printf(mon, "Ballooning not activated in VM\n");
+ qemu_error_structed(QERR_BAL_DIS, NULL);
else
*ret_data = QOBJECT(qint_from_int((int)(actual >> 20)));
}
--
1.6.5.rc3.8.g8ba5e
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, (continued)
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Luiz Capitulino, 2009/10/14
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Daniel P. Berrange, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Gerd Hoffmann, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Daniel P. Berrange, 2009/10/19
- [Qemu-devel] Re: [PATCH 7/9] qdev: Use QError for not found error, Paolo Bonzini, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Anthony Liguori, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Daniel P. Berrange, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Anthony Liguori, 2009/10/19
- Re: [Qemu-devel] [PATCH 7/9] qdev: Use QError for not found error, Daniel P. Berrange, 2009/10/19
[Qemu-devel] [PATCH 8/9] QError: Add do_info_balloon() errors, Luiz Capitulino, 2009/10/13
[Qemu-devel] [PATCH 9/9] monitor: do_info_balloon(): use QError,
Luiz Capitulino <=
Re: [Qemu-devel] [PATCH v0 0/9] QError, Anthony Liguori, 2009/10/15
Re: [Qemu-devel] [PATCH v0 0/9] QError, Markus Armbruster, 2009/10/19