Re: [Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-10-08 Thread Thomas Knauth
On Fri, Sep 27, 2013 at 12:50 PM, Stefan Hajnoczi wrote: > If you want to continue with the original SIGSEGV handler approach, > check signals masks for the vcpu threads. Make sure the signal actually > gets delivered to a thread that has the signal unblocked and a signal > handler installed. I'

Re: [Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-09-27 Thread Stefan Hajnoczi
On Thu, Sep 26, 2013 at 02:53:54PM +0200, Thomas Knauth wrote: > As far as I understand the dirty logging infrastructure will only > record writes. I want to track reads as well. > > A better way to express what I would like to do is trace all guest > physical addresses that are accessed. Again, I

Re: [Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-09-26 Thread Thomas Knauth
As far as I understand the dirty logging infrastructure will only record writes. I want to track reads as well. A better way to express what I would like to do is trace all guest physical addresses that are accessed. Again, I am unsure whether qemu supports this out-of-the box and where I would ha

Re: [Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-09-02 Thread Stefan Hajnoczi
On Sun, Sep 01, 2013 at 11:38:34AM +0200, Thomas Knauth wrote: > My question is where do I have to touch qemu to call my code for > handling SIGSEGVs? Is this possible at all? Can anyone suggest > alternative ways of tracking which pages of pc.ram are accessed? Maybe you can use the dirty page tra

[Qemu-devel] Capture SIGSEGV to track pc.ram page access

2013-09-01 Thread Thomas Knauth
Dear all, I'm trying to use a signal handler to catch SIGSEGV's in qemu. I want(ed) to use them to track which memory pages are accessed by the guest (only accesses to the pc.ram). After some hours of fruitless mucking around, I've come to the conclusion that it is not as straightforward as with "