From patchwork Wed Dec 28 13:04:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 637260 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2437607pvb; Wed, 28 Dec 2022 05:05:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtiMxtX3qgfTkd/qoJDbH97oBGtr9FQuAW5zsajpbK4tM16QGSLxo29J7MFsqsefTPCDBC9 X-Received: by 2002:a05:6358:c09d:b0:e4:a5b6:da30 with SMTP id fa29-20020a056358c09d00b000e4a5b6da30mr477902rwb.25.1672232736700; Wed, 28 Dec 2022 05:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672232736; cv=none; d=google.com; s=arc-20160816; b=UDMhq7Rhy1cMe0I6jv0t/dhXIRDg8YGNe37RPFa5t02WkZbdQOhryNfZUYKxWNhLhu ICq3dXGFblpk92bmPSceG0posvPxMmLOZEGs5/aXlsQH53HFVprYe+4MnN3Db2RKD7fT IBVc1eoT6anPY47KuBdOiODQwAnfOzRh4Gt9xHYP3EGuk4caKOU+IUXWNIwTj7fzV6DT u2aC8XVv7WZq3VTN6Ittc88F2mV5kMdOlnaXKv7HtvVliKf5+Fou00jbUvYSCtDkaM1M +6fO9TVdLqJHoVIiMpubQvaJ1a2IT8f5iYm9pYxAyKkjQf6nOdFa9tKJKZXNyLnUFwZ4 LxqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=J11etKy1I+eD1ZxYBXlK61HtI3MDE9eu0yS0RM5yA44=; b=FoT6/bQ1LRp/oTRv8TG7vDZ/4HxfVP0fNNP0PDRNSGkHD8ffCtrw9jg/o8q+QU6TVb Gab4PaTr+jGzkRiMgZjULom6bBhq0za+tG70aGlXob4Mj+t38z0I1/d19iOc8xH8K661 wBfMeJQQ/v+5IuFM/tgcvv4J57l4ZyYxEG2nx9mHAPAtddaR9JVbD15O0auFuthd7d3N YcWs6OJp/RBhepqTT+Kv1z9vK3dU3D2BfDAScLJlTsWlPUysfcyM/ZiawLPkQipGkSoW WJPdg5kNdtpUHmz3N64OV0xSR/hDgm90i/Fe3OFtDPtZg60UjOXYwmTZcQO2bOcP/oZ6 Yzxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCFsDORq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ke28-20020a056214301c00b004c72f24937fsi6327163qvb.228.2022.12.28.05.05.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Dec 2022 05:05:36 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCFsDORq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Mathieu-Daud?= =?utf-8?q?=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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org When requesting the flatview output with 'info mtree -f', the MemoryRegion priority is irrelevant and noise. Remove it. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé --- 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, gpointer value, mr = 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));