From nobody Fri Nov 1 00:19:32 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1672232736; cv=none; d=zohomail.com; s=zohoarc; b=XlqGLh5h7qSQ1+kXoSa7grmGHRiY8APBp+3PZC6+vljucK40/i9+7bCOMxwkKkDGPs5RXGd3V1QKcDXdurNiYO4XkTpxkGzZ3o+OavCUfevDiqZ4as92+HDwx+RE4IivJpND3tSrCV7qa1umKJHZ2tj27NULPIp7HdEGTZPO3EQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672232736; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=J11etKy1I+eD1ZxYBXlK61HtI3MDE9eu0yS0RM5yA44=; b=A+jAwcsu6Z0AuFSTmhQva7LZHTPNUfF1Koc+K4HxXsyEWG+WS28fWulWnfljYfjE/iET8mk2dZa7dGkvKUDsGoq5af+bpDzO7xcZwKJcB6A5KNazkATZHUzuaZrAWAhFd+YH9UxXAX676wbo0ynYI3h8kAuGW8LAzKWoIYKKkzA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1672232736812613.5903077193394; Wed, 28 Dec 2022 05:05:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAW7M-0005MU-EF; Wed, 28 Dec 2022 08:05:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAW6x-0005KD-Az for qemu-devel@nongnu.org; Wed, 28 Dec 2022 08:04:51 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAW6u-0002JU-6r for qemu-devel@nongnu.org; Wed, 28 Dec 2022 08:04:46 -0500 Received: by mail-wr1-x42a.google.com with SMTP id d4so6900005wrw.6 for ; Wed, 28 Dec 2022 05:04:43 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id v7-20020adfe287000000b00241bd177f89sm15323279wri.14.2022.12.28.05.04.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 28 Dec 2022 05:04:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J11etKy1I+eD1ZxYBXlK61HtI3MDE9eu0yS0RM5yA44=; b=ZCFsDORq/unrNsJDI1vegAbZXKMgvZ1by2Mnh7laqYUXMuiCBXLRPGxZcckDtA2uBW Y+mfZvQx3+qOwU1JqNUQVBQa6aPHi590h4wDRKC95vJykYwh24YtfTx3Mv3f8MFE0oOT eMt7GSXHOYKAUiLIkS0B9wIT8hm/1t3CL5tCbvkHsj/lHgR8PnUSI7ygz4fCriObjl01 8hMPMRWzySzo7OYMF6oH7lVmTUif9b8XXP7kMN20Ydj8yDyOGt5i79Q/vRHMdc3MS04F V6Ypd6hOY6otIP3vPNMkVGtsbOliSLZcQAoOgCd7dcdysHTGgyCrOTuuPLlWm1uLimFO 9DuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J11etKy1I+eD1ZxYBXlK61HtI3MDE9eu0yS0RM5yA44=; b=3zqbv+9YaHNOU7Vd7x0oOZuj28zdeL1e3SGyZBRXmdGRkblO5vRBuMCjjaVSf5z+IB 4rvbH6LftMPHnlUEdCtYrDdCaJCknLvEuzVihBUD8EJn8MuOsKdshu36IG8hfhgGmDU1 zQR8GtrF5UOl/g15iFgVFMNHhgyocQVZukP5oJZoOeTU9VzdX0GMqcLVmmdrVEn2u5HX 79i9ADcewCPGg7LMKBog4LBZRn8vx9KdfQU+9kzt1tf9Ve3FD4LI04nLLdkNMyptaOfc NduTujV+6om9Id9ZlAcAodOa/xMAzP9Ln2tEpqvhUvgSYOel9B2XJUsU3JNv05kbtqVr i5uA== X-Gm-Message-State: AFqh2kpSuNltVdVhNiqr2bUd8bR9uXmhW+TQsvCdHfpZV/JDdFLfUpNt 6Xwl/9Go6Ztc7sAq5rEwwe2vZZWyxKApcxQg X-Google-Smtp-Source: AMrXdXsQpv+bhPNA33i/6X+zPcOUNzSi932oBgGtTwxBm0h8b5EQWTfJDZOamk1kGHQSAdnpi/ngGA== X-Received: by 2002:a5d:43c7:0:b0:26b:c52e:f7c7 with SMTP id v7-20020a5d43c7000000b0026bc52ef7c7mr19673387wrr.29.1672232681669; Wed, 28 Dec 2022 05:04:41 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Xu , David Hildenbrand , Paolo Bonzini , qemu-trivial@nongnu.org, Mark Burton , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] memory: Do not print MR priority in flatview HMP output Date: Wed, 28 Dec 2022 14:04:39 +0100 Message-Id: <20221228130439.80341-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1672232738490000001 When requesting the flatview output with 'info mtree -f', the MemoryRegion priority is irrelevant and noise. Remove it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- softmmu/memory.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/softmmu/memory.c b/softmmu/memory.c index e05332d07f..89713dd5ce 100644 --- a/softmmu/memory.c +++ b/softmmu/memory.c @@ -3330,22 +3330,20 @@ static void mtree_print_flatview(gpointer key, gpoi= nter value, mr =3D range->mr; if (range->offset_in_region) { qemu_printf(MTREE_INDENT TARGET_FMT_plx "-" TARGET_FMT_plx - " (prio %d, %s%s): %s @" TARGET_FMT_plx, + " (%s%s): %s @" TARGET_FMT_plx, int128_get64(range->addr.start), int128_get64(range->addr.start) + MR_SIZE(range->addr.size), - mr->priority, range->nonvolatile ? "nv-" : "", range->readonly ? "rom" : memory_region_type(mr), memory_region_name(mr), range->offset_in_region); } else { qemu_printf(MTREE_INDENT TARGET_FMT_plx "-" TARGET_FMT_plx - " (prio %d, %s%s): %s", + " (%s%s): %s", int128_get64(range->addr.start), int128_get64(range->addr.start) + MR_SIZE(range->addr.size), - mr->priority, range->nonvolatile ? "nv-" : "", range->readonly ? "rom" : memory_region_type(mr), memory_region_name(mr)); --=20 2.38.1