On Mon, Oct 03, 2005 at 08:39:46AM -0400, Jeff Dike wrote:
> On Mon, Oct 03, 2005 at 09:28:04AM +0100, Chris Lightfoot wrote:
> > At the cost that lots of programs in the guest simply
> > won't work (strace, make, java, ime). Or has there been
> > work fixing this?
> 
> What are you talking about?  sysemu breaks nothing inside the guest.

Using 2.6.12.5, on a host running 2.4.27 with the sysemu
patch, within the guest we get:

root@(none):/# strace /bin/echo
execve("/bin/echo", ["/bin/echo"], [/* 5 vars */]) = 0

root@(none):/# 

-- i.e., misleading/incorrect/incomplete output.

Running the kernel with the nosysemu command-line option,
we get:

root@(none):/# strace /bin/echo
execve("/bin/echo", ["/bin/echo"], [/* 5 vars */]) = 0
uname({sys="Linux", node="(none)", ...}) = 0
brk(0)                                  = 0x804d000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=12362, ...}) = 0
old_mmap(NULL, 12362, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/tls/i586/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat64("/lib/tls/i586", 0xbf807d48)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR, st_size=1024, ...}) = 0
open("/lib/i586/libc.so.6", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/i586", 0xbf807d48)         = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360^\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1244688, ...}) = 0
old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000
old_mmap(0x40144000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x127000) = 0x40144000
old_mmap(0x4014c000, 9668, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014c000
close(3)                                = 0
munmap(0x40018000, 12362)               = 0
brk(0)                                  = 0x804d000
brk(0x806e000)                          = 0x806e000
brk(0)                                  = 0x806e000
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(5, 1), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40018000
write(1, "\n", 1
)                       = 1
munmap(0x40018000, 4096)                = 0
exit_group(0)                           = ?
root@(none):/# 

-- i.e., correct output.

I haven't been able to properly characterise the problems
with the other programs I name, but since they go away
when sysemu support is removed/disabled, I presume that
they are related.

-- 
``Avoid all needle drugs. The only dope worth shooting is Richard Nixon.''
  (Abbie Hoffman)


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to