Skip to contentSkip to conversation

Linux-on-Linux for IA64

Gelato-technical Stephane Eranian 1 participant 1 message Dec 16, 2005

lore
Share & tools
lore
#0 lore raw

Peter,

Quoted 5 lines · Peter Chubb

Hi Folks,
Ever wanted UML-like functionality for Itanium? Now you can
have it!

Yes!

Quoted 6 lines

This week we made the first release of Linux-On-Linux, a paravirtualised system that allows Linux to be used as a hypervisor.

You can get it from
http://www.ertos.nicta.com.au/software/virtualisation/

Got this to compile using 2.6.15-rc5 (host/guest). I had to manually apply two small patches in the guest.

I had to use the attached patch for the vmm.

The problem is that it does not boot, I get this:

$ vmm bootloader vmlinux maxcpus=2 simscsi=sd
args: vmlinux maxcpus=2 simscsi=sd
Allowing running on processor 0 of 2
pagesize = 16384
Physical memory at 0x80000 -> 0x20000000
[3460] Hi, I am the trace thread!
3462: CPU 0
entry = 0x1008e0
loading vmlinux...
starting kernel...
purging region 4
Cannot map from 0x8000000100000000,0x8000000103ffffff to 0x4000000--- [3462] SIGSEGV in VMM: IP 0x20001e170 VA 0x60000fffffb33b08
Exited with signal 6
1 stops, 0 redirects, 0 VMM, 0 sigreturns, 0 signalstops, 0 traps, 1 sigstops

Any clue?

Signature · 1 line
-Stephane
userspace/main.c 2005-12-16 02:06:58.000000000 -0800 renamed from userspace/main.c 2005-12-13 17:22:28.000000000 -0800 +1 -1
diff -ur vmm.orig/userspace/main.c vmm/userspace/main.c
@@ -403,7 +403,7 @@
 void
 vm_perror(char *string)
 {
-       fprintf(stderr, "%s: %s\n", string, sys_errlist[errno]);
+       fprintf(stderr, "%s: %s\n", string, strerror(errno));
 }
 
 /*
userspace/syscall.c 2005-12-16 02:08:04.000000000 -0800 renamed from userspace/syscall.c 2005-12-05 16:23:53.000000000 -0800 +1 -1
diff -ur vmm.orig/userspace/syscall.c vmm/userspace/syscall.c
@@ -147,7 +147,7 @@
        }
 
        if (ptrace(PTRACE_ADDRRANGE, pid, 0UL, &_text - 1) == -1)
-               fprintf(stderr, "ptrace(ADDRRANGE failed: %s\n", sys_errlist[errno]);
+               fprintf(stderr, "ptrace(ADDRRANGE failed: %s\n", strerror(errno));
        else
                ptrace(PTRACE_ADDRRANGE, pid, &_etext, (5UL<<61)-(unsigned long)&_etext);