qemu-devel
[Top][All Lists]
Advanced

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

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


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] memory: Have 'info mtree' remove duplicated Address Space information
Date: Sat, 21 Aug 2021 00:50:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/20/21 10:16 PM, Peter Xu wrote:
> Phil,
> 
> On Fri, Aug 20, 2021 at 12:58:05PM +0200, Philippe Mathieu-Daudé wrote:
>>>   (qemu) info mtree
>>>   address-space: I/O
>>>     0000000000000000-000000000000ffff (prio 0, i/o): io
>>>
>>>   address-space shared 9 times:
>>>     - cpu-memory-0
>>>     - cpu-memory-1
>>>     - cpu-memory-2
>>>     - cpu-memory-3
>>>     - cpu-secure-memory-0
>>>     - cpu-secure-memory-1
>>>     - cpu-secure-memory-2
>>>     - cpu-secure-memory-3
>>>     - memory
> 
> Do you think below would look better?
> 
>    address-space cpu-memory-0:
>    address-space cpu-memory-1:
>    address-space cpu-memory-3:
>    ...
>    address-space memory:
>      [memory ranges]

OK.

> "info mtree -f" has something similar:
> 
> FlatView #2
>  AS "ich9-ahci", root: bus master container
>  AS "vtd-root", root: vtd-00.0
>  AS "virtio-blk-pci", root: bus master container
>  AS "vtd-root", root: vtd-01.0
>  AS "vtd-root", root: vtd-02.0
>  AS "vtd-root", root: vtd-03.0
>  AS "vtd-root", root: vtd-04.0
>  AS "vtd-root", root: vtd-1f.0
>  AS "vtd-root", root: vtd-1f.2
>  AS "vtd-root", root: vtd-1f.3
>  Root memory region: vtd-nodmar
>    [memory ranges]
> 
> [...]
> 
>>> +struct AddressSpaceInfo {
>>> +    MemoryRegionListHead *ml_head;
>>> +    int counter;
>>
>> Doh this field is unused :/
> 
> Looks good to me otherwise.

Thanks!

Phil.




reply via email to

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