Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-26 Thread Wayne Xia
Tried it, good tool to inspect guest memory layout. It would be more nice if some symbol could be used to show hierarchies. -7ffe : pci |__feba-febb : e1000-mmio |__febf-febf0fff : cirrus-mmio

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-26 Thread Avi Kivity
On 09/25/2011 11:19 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. diff --git a/memory.c b/memory.c index ba74435..6b33fc4 100644 --- a/memory.c +++ b/memory.c @@ -17,6 +17,7 @@ #include bitops.h #include kvm.h

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-26 Thread Blue Swirl
On Mon, Sep 26, 2011 at 9:45 AM, Avi Kivity a...@redhat.com wrote: On 09/25/2011 11:19 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. diff --git a/memory.c b/memory.c index ba74435..6b33fc4 100644 --- a/memory.c +++

[Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-25 Thread Blue Swirl
Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Signed-off-by: Blue Swirl blauwir...@gmail.com --- i386: memory -7ffe : system 000ec000-000e : alias pam-ram @pc.ram 000ec000-000e

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-18 Thread Jan Kiszka
On 2011-09-17 21:27, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Signed-off-by: Blue Swirl blauwir...@gmail.com --- v1-v2: use /proc/iomem format. --- memory.c | 27 +++ memory.h |2 ++

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-18 Thread Avi Kivity
On 09/17/2011 10:27 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Still missing alias support. PCI would be invisible on a PC (or any machine which has PCI holes implemented properly). Maybe we need to dump both the

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-18 Thread Blue Swirl
On Sun, Sep 18, 2011 at 1:53 PM, Avi Kivity a...@redhat.com wrote: On 09/17/2011 10:27 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Still missing alias support.  PCI would be invisible on a PC (or any machine which

Re: [Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-18 Thread Avi Kivity
On 09/18/2011 05:07 PM, Blue Swirl wrote: On Sun, Sep 18, 2011 at 1:53 PM, Avi Kivitya...@redhat.com wrote: On 09/17/2011 10:27 PM, Blue Swirl wrote: Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Still missing alias support. PCI

[Qemu-devel] [PATCH v2] memory: simple memory tree printer

2011-09-17 Thread Blue Swirl
Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Signed-off-by: Blue Swirl blauwir...@gmail.com --- v1-v2: use /proc/iomem format. --- memory.c | 27 +++ memory.h |2 ++ monitor.c |7 +++ 3 files changed, 36