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 --
| Alan Cox | [PATCH 00/76] Queued TTY Patches |
| Linus Torvalds | Linux 2.6.27 |
| Eric W. Biederman | [PATCH] nfsd/nfs4state: Remove unnecessary daemonize call. |
| Artem Bityutskiy | [PATCH 10/44 take 2] [UBI] debug unit implementation |
git: | |
| Daniel Barkalow | Re: I don't want the .git directory next to my code. |
| Johannes Schindelin | Re: [PATCH] RFC: git lazy clone proof-of-concept |
| Johannes Schindelin | Re: [ANNOUNCE] GIT 1.5.4 |
| Johannes Schindelin | Re: git-diff on touched files: bug or feature? |
| Richard Stallman | Real men don't attack straw men |
| Juan Miscaro | When will OpenBSD support UTF8? |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| L. V. Lammert | Re: About Xen: maybe a reiterative question but .. |
| Michael Buesch | Re: Mark IPW2100 as BROKEN: Fatal interrupt. Scheduling firmware restart. |
| Johannes Berg | Re: mac80211 truesize bugs |
| Vitaliy Gusev | [TCP]: TCP_DEFER_ACCEPT causes leak sockets |
| Alexey Dobriyan | [PATCH 10/33] netns ct: per-netns /proc/net/nf_conntrack_expect |
