sysemu
A message that is not in the archive (sent off-list or not yet received): [email protected]
Alle 06:08, domenica 22 agosto 2004, Jeff Dike ha scritto:
Quoted 18 lines
Call me a lamer, but I only now got around to looking at the sysemu patch in detail.
As it stands, it can't be merged into mainline because it adds two instructions to the system call fast path. This is the sort of thing that make Linus and others go ballistic.
Below, see a patch which tweaks things to eliminate both problems. Now,
PT_SCEMUis set in conjunction withPT_TRACESYS, rather than one or the other, but not both, being set.This means that the
PT_TRACESYStest inentry.Scovers both cases, and the fast path is unchanged.The other change was to make
syscall_tracereturn zero or non-zero, according as it should run the system call or immediately return. This adds a line tosyscall_traceand eliminatessyscall_emulate.
Quoted 8 lines
The updated patch is 83 lines of diff rather than the original 128.
I've run it with a small test program, apparently successfully, with good speed increases. I'm having more trouble getting a tt mode UML running, but I think that's a problem with the UML rather than the host.
Have a look and see if it looks reasonable.
Yes, it does. You should just rename *_SCEMU to *_SYSEMU (the guest patch uses already *_SYSEMU, which is nicer IMHO, so let's be coherent).
While you are looking at the SYSEMU patch, could you try to understand why when SYSEMU is active (at least in SKAS mode, never done anything in TT mode) strace does not work?
I looked at it with gdb a while ago but I wasn't able to make sense from what I saw.
Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel