Re: [Qemu-devel] Physical address debugging

2011-08-30 Thread Avi Kivity
On 08/30/2011 09:31 PM, Blue Swirl wrote: >> >> Since KVM can handle MMIO, I think it should also be able to handle >> watchpoints. >> > > Not on RAM areas. But isn't it possible to unmap one page of RAM and replace that by MMIO page on KVM, is this because of the memory slots? It is possib

Re: [Qemu-devel] Physical address debugging

2011-08-30 Thread Blue Swirl
2011/8/29 Avi Kivity : > On 08/26/2011 08:34 PM, Blue Swirl wrote: >> >> >  Indeed, it isn't. It's impossible with KVM (due to lacking hardware >> >  support) but would be feasible with TCG if you extend (or ad-hoc hack) >> >  QEMU code accordingly. >> >> Why impossible? The existing watchpoints re

Re: [Qemu-devel] Physical address debugging

2011-08-29 Thread Avi Kivity
On 08/26/2011 08:34 PM, Blue Swirl wrote: > Indeed, it isn't. It's impossible with KVM (due to lacking hardware > support) but would be feasible with TCG if you extend (or ad-hoc hack) > QEMU code accordingly. Why impossible? The existing watchpoints replace original physical memory with io_m

Re: [Qemu-devel] Physical address debugging

2011-08-29 Thread Lluís
Zeus Gómez Marmolejo writes: > So, for you that you know very well the QEMU code, and suppose that I > want to do a quick modification to stop on an address write and print > the backtrace. How I could do it?? I want a one line modification to > the code (with the address hardcoded) to stop the m

Re: [Qemu-devel] Physical address debugging

2011-08-28 Thread Zeus Gómez Marmolejo
I don't think GDB can help us very much on that, as it's only working with virtual addresses. You can't set a physical address breakpoint because the protocol doesn't allow it. So I guess it can be only done in the monitor. So, for you that you know very well the QEMU code, and suppose that I want

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 20:02, Blue Swirl wrote: > 2011/8/26 Jan Kiszka : >> On 2011-08-26 19:34, Blue Swirl wrote: >>> 2011/8/26 Jan Kiszka : On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: > Hi all, > > I just want to do a very simple task. I'm using QEMU for debugging a new > OS >>>

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Blue Swirl
2011/8/26 Jan Kiszka : > On 2011-08-26 19:34, Blue Swirl wrote: >> 2011/8/26 Jan Kiszka : >>> On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: Hi all, I just want to do a very simple task. I'm using QEMU for debugging a new OS and I see that there is a memory region that is bein

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 19:34, Blue Swirl wrote: > 2011/8/26 Jan Kiszka : >> On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: >>> Hi all, >>> >>> I just want to do a very simple task. I'm using QEMU for debugging a new OS >>> and I see that there is a memory region that is being updated by an unknown >>> tas

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Blue Swirl
2011/8/26 Jan Kiszka : > On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: >> Hi all, >> >> I just want to do a very simple task. I'm using QEMU for debugging a new OS >> and I see that there is a memory region that is being updated by an unknown >> task. I don't know if it's another process or the

Re: [Qemu-devel] Physical address debugging

2011-08-26 Thread Jan Kiszka
On 2011-08-26 16:21, Zeus Gómez Marmolejo wrote: > Hi all, > > I just want to do a very simple task. I'm using QEMU for debugging a new OS > and I see that there is a memory region that is being updated by an unknown > task. I don't know if it's another process or the kernel itself. > > So I woul

[Qemu-devel] Physical address debugging

2011-08-26 Thread Zeus Gómez Marmolejo
Hi all, I just want to do a very simple task. I'm using QEMU for debugging a new OS and I see that there is a memory region that is being updated by an unknown task. I don't know if it's another process or the kernel itself. So I would like to put a physical memory watchpoint. I don't know how to