On Fri, Feb 08, 2008 at 01:59:57PM +0100, Vegard Nossum wrote:Given that you don't seem to handle networking yet I wonder how many cases you really tested so far. There's the stack for once too. And some others I'm probably forgetting. You only need this for the size and to detect string instructions, right? The address should be delivered with the page fault and the r/w status too. I think for string instructions you could probably detect it with a little state machine that detects multiple page faults on the same instruction. Or just prevent the compiler/the code from generating string instructions. There should not be that many once you stop gcc from generating inline string ops (-Os is probably enough for that) For size you could in theory use VT which has special support in the CPU to help with parsing this, although that would limit it to modern CPUs and would require quite some infrastructure. I'm pretty sure there are other special instructions that you will eventually run into. Intel (and sometimes AMD) add new ones each CPU generation :) Reimplementing instruction decoding on x86 is not an easy job. Anyways if you really want to do it I would rather recommend to use one of the existing codes like the x86-emulate that is in KVM, but even that one is far from complete. Trying to avoid it would probably better. -Andi --
| Steven Rostedt | Re: Major regression on hackbench with SLUB |
| Jeremy Fitzhardinge | [PATCH 02 of 36] x86: add memory clobber to save/loadsegment |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH iproute2] Re: HTB accuracy for high speed |
