qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] memory: Have 'info mtree' remove duplicated Address Space


From: David Hildenbrand
Subject: Re: [PATCH v3] memory: Have 'info mtree' remove duplicated Address Space information
Date: Mon, 23 Aug 2021 11:35:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 23.08.21 11:28, Peter Maydell wrote:
On Mon, 23 Aug 2021 at 10:20, David Hildenbrand <david@redhat.com> wrote:

On 23.08.21 10:54, Philippe Mathieu-Daudé wrote:
+static void mtree_print_as(gpointer key, gpointer value, gpointer user_data)
+{
+    MemoryRegion *mr = key;
+    GSList *as_same_root_mr_list = value;
+    struct AddressSpaceInfo *asi = user_data;

Reverse Christmas tree?

This has never been part of the QEMU style guidelines
and I would oppose our adding it. It would gain us very little,
the codebase doesn't consistently follow that rule today so
it wouldn't be preserving an existing consistency of style,
and it would be yet another weird stylistic issue that trips
people up and requires patch repins.

Ah right, it used very inconsistently in the QEMU codebase and even in this file (I spotted it's the case in the entry of mtree_info() and wondered if it's the case for this file -- turns out it's absolutely not).

--
Thanks,

David / dhildenb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]