http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=85
Summary: xenU fail to create with shadow mode enabling
Product: Xen
Version: unstable
Platform: x86
OS/Version: Linux-2.6
Status: NEW
Severity: normal
Priority: P2
Component: Guest-OS
AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
ReportedBy: yongkang.you@xxxxxxxxx
Environment:
------------
Service OS ia32
Guest OS ia32
This bug can be reproduced either in xen version:1.1730 or 1.1746
Bug detailed description:
--------------------------
xenU fail to create with shadow mode enabling.
Reproduce steps:
----------------
1. Get the xen unstalbe source code.
2. Compile the domU kernel with CONFIG_XEN_SHADOW_MODE
Go into patched linux-2.6.11-xenU,
ARCH=xen make menuconfig
Enter Xen option and select Fake Shadow Mode
3. make world
4. run dist/install.sh
5. reboot the system and enter service OS.
6. Config a domU, /etc/xen/domU
/etc/xen/domu is like:
kernel = "/boot/vmlinuz-2.6.11-xenU"
memory = 32
name = "DOMU"
disk = [ 'file:/data/rootfs,sda1,w' ]
root = "/dev/sda1 ro"
extra = "4"
7. xend start;xm list
[root@vt-yyou ~]# xm list
Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
Domain-0 0 256 0 1 r---- 101.2
8. xm create -f /etc/xen/domU
9. xm list
[root@vt-yyou ~]# xm list
Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
Domain-0 0 256 0 1 r---- 108.6
10. xm create -c /etc/xen/domU
[root@vt-yyou ~]# xm create -c /etc/xen/domU
Using config file "/etc/xen/domU".
VNC= 2
VNC viewer for X version 4.0 - built Oct 6 2004 08:06:12
Copyright (C) 2002-2004 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Started domain DOMU, console on port 9602
************ REMOTE CONSOLE: CTRL-] TO QUIT ********
************ REMOTE CONSOLE EXITED *****************
11. xm dmesg
(XEN) Domain 1 (vcpu#0) crashed on cpu#0:
(XEN) CPU: 0
(XEN) EIP: e019:[<c0112ecf>]
(XEN) EFLAGS: 00000282 CONTEXT: guest
(XEN) eax: ffffffea ebx: c02fdf34 ecx: 00000001 edx: 00000000
(XEN) esi: 00007ff0 edi: c0102fc0 ebp: c0341000 esp: c02fdf28
(XEN) cr0: 8005003b cr3: 3f0fc000
(XEN) ds: e021 es: e021 fs: 0000 gs: e021 ss: e021 cs: e019
(XEN) Guest stack trace from esp=c02fdf28:
(XEN) c0112ecf 0001e019 00010282 00000005 0003f33b 00000001 c0309fa3
00000000
(XEN) c0341fc0 c0308261 00102000 00002000 00000000 c0309f7f c0327114
00000000
(XEN) c0311658 c0101000 00000000 c0308379 00000000 00000000 c0311658
c031c8d8
(XEN) c0305243 c02fdff4 c0311a60 00000080 ffffff81 00000000 c02fc000
00000000
(XEN) 0000007c 00000000 c01188b2 0000000a 00000400 c028e7c0 c02fdfe4
c02fc000
(XEN) c0343200 c02fc000 c0343200 c031c620 00000000 c02fe59f c02fdff4
00000000
(XEN) 00000000 00000000 00000000 c031cc80 00010800 c010006c
12. objdump -d linux-2.6.11-xenU/vmlinux|grep c0112ecf
...
c0112e90 <xen_pt_switch>:
c0112e90: 56 push %esi
c0112e91: b9 01 00 00 00 mov $0x1,%ecx
c0112e96: be f0 7f 00 00 mov $0x7ff0,%esi
c0112e9b: 53 push %ebx
c0112e9c: 83 ec 10 sub $0x10,%esp
c0112e9f: 8b 44 24 1c mov 0x1c(%esp),%eax
c0112ea3: 8b 15 00 c4 31 c0 mov 0xc031c400,%edx
c0112ea9: c7 04 24 05 00 00 00 movl $0x5,(%esp)
c0112eb0: c1 e8 0c shr $0xc,%eax
c0112eb3: 89 e3 mov %esp,%ebx
c0112eb5: 8b 04 82 mov (%edx,%eax,4),%eax
c0112eb8: 31 d2 xor %edx,%edx
c0112eba: 89 44 24 04 mov %eax,0x4(%esp)
c0112ebe: b8 1a 00 00 00 mov $0x1a,%eax
c0112ec3: cd 82 int $0x82
c0112ec5: 85 c0 test %eax,%eax
c0112ec7: 78 06 js c0112ecf <xen_pt_switch+0x3f>
c0112ec9: 83 c4 10 add $0x10,%esp
c0112ecc: 5b pop %ebx
c0112ecd: 5e pop %esi
c0112ece: c3 ret
c0112ecf: 0f 0b ud2a
c0112ed1: 66 data16
c0112ed2: 00 14 5c add %dl,(%esp,%ebx,2)
c0112ed5: 29 c0 sub %eax,%eax
c0112ed7: eb f0 jmp c0112ec9 <xen_pt_switch+0x39>
...
Current result:
----------------
xenU couldn't be created with shadow mode enable.
Expected result:
----------------
xenU could be created either shadow mode enable or disable.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
|