Received: from eggs.gnu.org ([140.186.70.92]:48457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuUB-00005n-NQ for qemu-devel@nongnu.org; Thu, 19 Jan 2012 11:05:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnuM4-0007yj-Vb for qemu-devel@nongnu.org; Thu, 19 Jan 2012 10:56:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnuM4-0007yG-Ny for qemu-devel@nongnu.org; Thu, 19 Jan 2012 10:56:48 -0500 From: Luiz Capitulino Date: Thu, 19 Jan 2012 13:56:29 -0200 Message-Id: <1326988591-27241-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1326988591-27241-1-git-send-email-lcapitulino@redhat.com> References: <1326988591-27241-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 3/5] balloon: Drop old stats interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, armbru@redhat.com, mdroth@linux.vnet.ibm.com, agl@us.ibm.com, amit.shah@redhat.com, eblake@redhat.com It has never been used and next patches will introduce a new, usable interface. Note that dropping this won't break compatibility because all fields are optional. Signed-off-by: Luiz Capitulino --- hmp.c | 25 +------------------------ qapi-schema.json | 21 +-------------------- 2 files changed, 2 insertions(+), 44 deletions(-) diff --git a/hmp.c b/hmp.c index 8a77780..42f719a 100644 --- a/hmp.c +++ b/hmp.c @@ -381,30 +381,7 @@ void hmp_info_balloon(Monitor *mon) return; } - monitor_printf(mon, "balloon: actual=%" PRId64, info->actual >> 20); - if (info->has_mem_swapped_in) { - monitor_printf(mon, " mem_swapped_in=%" PRId64, info->mem_swapped_in); - } - if (info->has_mem_swapped_out) { - monitor_printf(mon, " mem_swapped_out=%" PRId64, info->mem_swapped_out); - } - if (info->has_major_page_faults) { - monitor_printf(mon, " major_page_faults=%" PRId64, - info->major_page_faults); - } - if (info->has_minor_page_faults) { - monitor_printf(mon, " minor_page_faults=%" PRId64, - info->minor_page_faults); - } - if (info->has_free_mem) { - monitor_printf(mon, " free_mem=%" PRId64, info->free_mem); - } - if (info->has_total_mem) { - monitor_printf(mon, " total_mem=%" PRId64, info->total_mem); - } - - monitor_printf(mon, "\n"); - + monitor_printf(mon, "balloon: actual=%" PRId64 "\n", info->actual >> 20); qapi_free_BalloonInfo(info); } diff --git a/qapi-schema.json b/qapi-schema.json index 44cf764..d9b1965 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -679,28 +679,9 @@ # # @actual: the number of bytes the balloon currently contains # -# @mem_swapped_in: #optional number of pages swapped in within the guest -# -# @mem_swapped_out: #optional number of pages swapped out within the guest -# -# @major_page_faults: #optional number of major page faults within the guest -# -# @minor_page_faults: #optional number of minor page faults within the guest -# -# @free_mem: #optional amount of memory (in bytes) free in the guest -# -# @total_mem: #optional amount of memory (in bytes) visible to the guest -# # Since: 0.14.0 -# -# Notes: all current versions of QEMU do not fill out optional information in -# this structure. ## -{ 'type': 'BalloonInfo', - 'data': {'actual': 'int', '*mem_swapped_in': 'int', - '*mem_swapped_out': 'int', '*major_page_faults': 'int', - '*minor_page_faults': 'int', '*free_mem': 'int', - '*total_mem': 'int'} } +{ 'type': 'BalloonInfo', 'data': { 'actual': 'int' } } ## # @query-balloon: -- 1.7.9.rc0.dirty