From patchwork Sun Mar 11 11:00:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 145971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F00A7B6FA4 for ; Sun, 11 Mar 2012 22:00:59 +1100 (EST) Received: from localhost ([::1]:50454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6gWH-0006Lv-Re for incoming@patchwork.ozlabs.org; Sun, 11 Mar 2012 07:00:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6gWA-0006Is-HN for qemu-devel@nongnu.org; Sun, 11 Mar 2012 07:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6gW8-00021b-Ti for qemu-devel@nongnu.org; Sun, 11 Mar 2012 07:00:50 -0400 Received: from mail-iy0-f173.google.com ([209.85.210.173]:37511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6gW8-00021W-MR for qemu-devel@nongnu.org; Sun, 11 Mar 2012 07:00:48 -0400 Received: by iafj26 with SMTP id j26so5656924iaf.4 for ; Sun, 11 Mar 2012 04:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ZFtbrXaaCPPoRiVk9n/JnSu0oNUU7zFfksyqoXR+QCc=; b=HVZFfdeNMn1aahkSAI4EyF/pPhOTKNfx0x8k4Hzz7nEPYSbWaj/ip7+RJYOZwhaNl8 6wVQM813hzju6VUQsP0vNMA0CgPqEl+HqflsXWnWouXMxnvcT59xfk5odoHdw13bKOYq v8byvWKHrvvDvsEWptu1teIE4+5Ql+IJFp7sIHW3aytWacSEYgKDr6ZJj5V8jhCKvhFS KT8nimorGHzfuaEYSNnYlRLq2QUi6+/PkdHDbMHxBMLjpMbthfbQQxcShNt/SRa33HM4 INklxoiOWCaFYjKqJsPtYNiamAoTrjNzYqdScygsBLAZTGQwTGEbmbMsyc/JVoPK9Dez xGSg== Received: by 10.50.222.196 with SMTP id qo4mr13082361igc.59.1331463646828; Sun, 11 Mar 2012 04:00:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.75.41 with HTTP; Sun, 11 Mar 2012 04:00:26 -0700 (PDT) From: Blue Swirl Date: Sun, 11 Mar 2012 11:00:26 +0000 Message-ID: To: Avi Kivity , qemu-devel X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.173 Subject: [Qemu-devel] [PATCH 2/2] memory: print aliased IO ranges in info mtree 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 Print also I/O ports behind bridges and other aliases. Signed-off-by: Blue Swirl --- memory.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) From a93566c2bc6dcb703020cf50b1324a1d437d8802 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <8afc6dd4b177f1dc631d880964191de609d73b54.1331463059.git.blauwirbel@gmail.com> References: <8afc6dd4b177f1dc631d880964191de609d73b54.1331463059.git.blauwirbel@gmail.com> From: Blue Swirl Date: Sat, 10 Mar 2012 16:58:35 +0000 Subject: [PATCH 2/5] memory: print aliased IO ranges in info mtree Print also I/O ports behind bridges and other aliases. Signed-off-by: Blue Swirl --- memory.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index 4c3dc49..0201392 100644 --- a/memory.c +++ b/memory.c @@ -1639,7 +1639,20 @@ void mtree_info(fprintf_function mon_printf, void *f) if (address_space_io.root && !QTAILQ_EMPTY(&address_space_io.root->subregions)) { QTAILQ_INIT(&ml_head); + mon_printf(f, "I/O\n"); mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head); + + /* print aliased I/O regions */ + QTAILQ_FOREACH(ml, &ml_head, queue) { + if (!ml->printed) { + mon_printf(f, "%s\n", ml->mr->name); + mtree_print_mr(mon_printf, f, ml->mr, 0, 0, &ml_head); + } + } + } + + QTAILQ_FOREACH_SAFE(ml, &ml_head, queue, ml2) { + g_free(ml); } } -- 1.7.2.5