Subject: xen 3.1 problem (Re: xen 3.1.0 is there)
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: port-xen
Date: 06/19/2007 21:23:04
Hi,

Manuel, Thanks for the support of Xen 3.1.

However, Xen 3.1 is not working for me.  I got following
error when I tried to run NetBSD as DomU under NetBSD Dom0.
I am using Xen on a PC box with Core Solo T2300.

xvif15.0: Ethernet address aa:00:00:51:02:f1
(XEN) Unhandled page fault in domain 15 on VCPU 0 (ec=0000)
(XEN) Pagetable walk from c0100000:
(XEN)  L2[0x300] = 5e371067 0000044a
(XEN)  L1[0x100] = 00000000 ffffffff
(XEN) domain_crash_sync called from entry.S (ff164d89)
(XEN) Domain 15 (vcpu#0) crashed on cpu#1:
(XEN) ----[ Xen-3.1.0  x86_32  debug=n  Not tainted ]----
(XEN) CPU:    1
(XEN) EIP:    e019:[<c0100000>]
(XEN) EFLAGS: 00010202   CONTEXT: guest
(XEN) eax: 00000000   ebx: 00000000   ecx: 00000000   edx: 00000000
(XEN) esi: c0546000   edi: 00000000   ebp: 00000000   esp: c054d000
(XEN) cr0: 8005003b   cr4: 000026d0   cr3: 5e372000   cr2: c0100000
(XEN) ds: e021   es: e021   fs: e021   gs: e021   ss: e021   cs: e019
(XEN) Guest stack trace from esp=c054d000:
(XEN)   Fault while accessing guest memory.
xvif15.0: disconnecting

I tried to run both old netbsd-XEN3_DOMU.gz(20070430) and
new one(20070615), but neither worked with xenkernel3-3.1.0
and xentools3-3.1.0.

BTW, both worked fine with xenkernel30-3.0.4 and
xentools3-3.0.4.


Then, I tried to track down the source of this problem.  I
remembered Manuel suggested to others to try -g option.
Therefore, I compiled netbsd-XEN3_DOMU with -g option by
specifying
    makeoptions     DEBUG="-g"      # compile full symbol table
in config file.  However, I could not find where c0100000
was came from.  I even not sure how to create core-dump from
xen domU kernel.  Please let me know the instruction if it
is important.  Thanks.

On the other hand, this DOMU kernel with -g gave me
additional info at the run-time like following.

root@fs(p2)# xm create -c sou.test
Using config file "/usr/pkg/etc/xen/sou.test".
Started domain sou
Unexpected error: exceptions.OSError

Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
  File "/usr/pkg/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 2453, in main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 2477, in _run_cmd
    return True, cmd(args)
  File "<string>", line 1, in <lambda>
  File "/usr/pkg/lib/python2.4/site-packages/xen/xm/main.py", line 1266, in xm_importcommand
    cmd.main([command] + args)
  File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line 1292, in main
    do_console(sxp.child_value(config, 'name', -1))
  File "/usr/pkg/lib/python2.4/site-packages/xen/xm/create.py", line 1317, in do_console
    (p, rv) = os.waitpid(cpid, os.WNOHANG)
OSError: [Errno 10] No child processes


That's all infor for now.  Please let me know if other
information is needed.  Thanks.

-- Kazushi