linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Using partially SKAS3 on x86_64 - news
@ 2006-02-20 18:58 Blaisorblade
  0 siblings, 0 replies; only message in thread
From: Blaisorblade @ 2006-02-20 18:58 UTC (permalink / raw)
  To: user-mode-linux-devel, user-mode-linux-user, Antoine Martin,
	Jeff Dike

Talking about 32-bit UMLs on AMD64 hosts: I've just discovered that on a 
x86_64 platform you can use at least partially the SKAS3 patch.

Instead of adding "skas0" to the command line, to get a running UML it 
suffices to use "noprocmm", if it's accepted by UML (I don't remember when 
the patch was merged).

I've tested this with a Debian Sarge root_fs - as you already know, Slackware 
root_fs already work in full SKAS3 mode.

As you can see at the beginning of the boot log, it won't use /proc/mm but it 
will use PTRACE_FAULTINFO, which is the other part of SKAS3. Since this 
addresses the biggest slowdown of SKAS0 (Jeff said SKAS0 is slightly slower 
than TT for page fault handling), I expect the difference to be significant.

I've not done any benchmark yet, however.

Example startup:

$ kernels/vmlinux-2.6.15.3-bs2 
ubd0=Root_images/Sarge-norm.rootfs.cow,Root_images/Sarge-norm.rootfs 
rootfs=/dev/ubda noprocmm

Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Checking PROT_EXEC mmap in /tmp...OK
Checking for the skas3 patch in the host:
  - /proc/mm...found but disabled on command line
  - PTRACE_FAULTINFO...found
  - PTRACE_LDT...found
UML running in SKAS0 mode
....
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-20 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-20 18:58 [uml-devel] Using partially SKAS3 on x86_64 - news Blaisorblade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox