On Wed, Aug 24, 2005 at 02:41:44PM +0100, Paul Brook wrote: > > Probably more important is to make sure none constant data structures > > are done on the stack. There is no good reason why any code page > > should be read-write. > > Huh? this is nonsense.
I stand corrected, I ment to say on the stack or in the heap. ie. I was only refering within the scope of the original post. The point is you don't want self modifing code. In rare circumstances you need self modifing code, but it is very rare. While it possible to mark allocated pages as read only, this usually only done for runtime error detection and sometimes thread saftey. Pretty much all modern operating systems do copy on write. However, this is completely beyond the scope of our discussion. Bill _______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel