From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7big-0007S3-0C for qemu-devel@nongnu.org; Mon, 08 May 2017 02:00:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7bic-00052i-0Z for qemu-devel@nongnu.org; Mon, 08 May 2017 02:00:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7bib-00052e-Qu for qemu-devel@nongnu.org; Mon, 08 May 2017 02:00:25 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F04DB3DBE5 for ; Mon, 8 May 2017 06:00:23 +0000 (UTC) From: Peter Xu Date: Mon, 8 May 2017 14:00:02 +0800 Message-Id: <1494223204-16388-1-git-send-email-peterx@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/2] ramblock: add hmp command "info ramblock" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Markus Armbruster , peterx@redhat.com, "Dr. David Alan Gilbert" v4: - move page_size_to_str() into util/cutil.c [Dave] v3: - cast the three PRIx64 addresses using (uint64_t) [Fam] - add more comment in patch 2 to emphasize that this command is only suitable for HMP, not QMP [Markus] v2: - replace "lx" with "PRIx64" in three places Sometimes I would like to know ramblock info for a VM. This command would help. It provides a way to dump ramblock info. Currently the list is by default sorted by size, though I think it's good enough. Please review, thanks. Peter Xu (2): ramblock: add RAMBLOCK_FOREACH() ramblock: add new hmp command "info ramblock" exec.c | 42 +++++++++++++++++++++++++++++++----------- hmp-commands-info.hx | 14 ++++++++++++++ hmp.c | 6 ++++++ hmp.h | 1 + include/exec/ramlist.h | 6 ++++++ include/qemu-common.h | 1 + migration/ram.c | 15 ++++++++------- util/cutils.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 113 insertions(+), 18 deletions(-) -- 2.7.4