From patchwork Sun Oct 2 14:32:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 117304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 70C1CB6F75 for ; Mon, 3 Oct 2011 01:33:27 +1100 (EST) Received: from localhost ([::1]:57501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAN6Z-0007j9-6a for incoming@patchwork.ozlabs.org; Sun, 02 Oct 2011 10:33:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAN5l-0005Bn-BS for qemu-devel@nongnu.org; Sun, 02 Oct 2011 10:32:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAN5j-0000b2-0v for qemu-devel@nongnu.org; Sun, 02 Oct 2011 10:32:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAN5i-0000aN-Po for qemu-devel@nongnu.org; Sun, 02 Oct 2011 10:32:30 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p92EWRp6006420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 2 Oct 2011 10:32:27 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p92EWQJL024248; Sun, 2 Oct 2011 10:32:26 -0400 Received: from s01.tlv.redhat.com (s01.tlv.redhat.com [10.35.255.8]) by cleopatra.tlv.redhat.com (Postfix) with ESMTP id C3A49250B63; Sun, 2 Oct 2011 16:32:22 +0200 (IST) From: Avi Kivity To: Anthony Liguori , Blue Swirl , qemu-devel@nongnu.org Date: Sun, 2 Oct 2011 16:32:17 +0200 Message-Id: <1317565939-14900-3-git-send-email-avi@redhat.com> In-Reply-To: <1317565939-14900-1-git-send-email-avi@redhat.com> References: <1317565939-14900-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/4] memory: Print region priority X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jan Kiszka Useful to discover eclipses. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index a85d118..eae67be 100644 --- a/memory.c +++ b/memory.c @@ -1316,18 +1316,20 @@ static void mtree_print_mr(fprintf_function mon_printf, void *f, ml->printed = false; QTAILQ_INSERT_TAIL(print_queue, ml, queue); } - mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " : alias %s @%s " + mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): alias %s @%s " TARGET_FMT_plx "-" TARGET_FMT_plx "\n", base + mr->addr, base + mr->addr + (target_phys_addr_t)mr->size - 1, + mr->priority, mr->name, mr->alias->name, mr->alias_offset, mr->alias_offset + (target_phys_addr_t)mr->size - 1); } else { - mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " : %s\n", + mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): %s\n", base + mr->addr, base + mr->addr + (target_phys_addr_t)mr->size - 1, + mr->priority, mr->name); } QTAILQ_FOREACH(submr, &mr->subregions, subregions_link) {