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 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 >> ++

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" #in

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 |__00fc00-fd

[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 --- i386: memory -7ffe : system 000ec000-000e : alias pam-ram @pc.ram 000ec000-000e 000e8000-00

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 Kivity 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

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 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 has

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 m

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 > --- > v1->v2: use /proc/iomem format. > --- > memory.c | 27 +++ > memory.h |2 ++ > monitor.

[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 --- v1->v2: use /proc/iomem format. --- memory.c | 27 +++ memory.h |2 ++ monitor.c |7 +++ 3 files changed, 36 insertions(+), 0 dele