On 26.06.14 14:03, BALATON Zoltan wrote:
On Thu, 26 Jun 2014, Alexander Graf wrote:
I don't think any other OS really accesses these ranges, but only time will tell ;).
Don't know, according to previous replies they may. Then how about always clearing the translation for page zero the next time our handler is called so I always get a new exception when it's accessed? (I have to add it for the access to succeed but I may remove it at the next possible occasion.) In the lack of a better idea I'll try this.
That sounds odd. Why don't you just implement a tiny instruction emulator? We only need to catch stores here, no?
I assume yes but I'm not sure and I don't know how to do that. Do you know about an example somewhere?
http://www.mail-archive.com/kvm@vger.kernel.org/msg104190.html
vaddr_accessed is really just DAR at the time of the interrupt. I think you can reuse pretty much all of that code and remove everything related to load instructions.
Alex