From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?GB2312?B?zO/KwMCk?= Subject: redhat4.6-32bit DomU with pv driver can't be saved Date: Tue, 20 Apr 2010 00:03:58 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2108332851==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel , xen-users List-Id: xen-devel@lists.xenproject.org --===============2108332851== Content-Type: multipart/alternative; boundary=001636e0a522d833180484991be5 --001636e0a522d833180484991be5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi all, I have some problem with xm save/restore in Xen-4.0.0 & linux-2.6.31.13, First, the /etc/init.d/xendomains seems do not work properly because of bas= h version. So I modified it as follow: root@r02k08027 # diff -up /etc/init.d/xendomains /etc/init.d/xendomains_31 --- /etc/init.d/xendomains 2010-04-08 00:12:04.000000000 +0800 +++ /etc/init.d/xendomains_31 2010-04-19 22:45:35.000000000 +0800 @@ -182,11 +182,11 @@ rdnames() parseln() { - if [[ "$1" =3D~ '(domain' ]]; then + if [[ "$1" =3D=3D '(domain'* ]]; then name=3D;id=3D - else if [[ "$1" =3D~ '(name' ]]; then + else if [[ "$1" =3D=3D '(name'* ]]; then name=3D$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/') - else if [[ "$1" =3D~ '(domid' ]]; then + else if [[ "$1" =3D=3D '(domid'* ]]; then id=3D$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/') fi; fi; fi Then service xendomains start/stop works correctly. But there is a significant problem. I tried to save and restore these VMs: redhat-4.6-32bit with pv driver, redhat-4.6-32bit without pv driver; WindowsServer2003-32bit with pv driver (Xenpv-win-32bit-0.97.4.exe), WindowsServer2003-32bit without pv driver; WindowsServer2008-64bit with pv driver (Xenpv-win-64bit-0.97.4.exe), WindowsServer2008-64bit without pv driver. Others are OK, only redhat-4.6-32bit domain with pv driver failed. But this VM is the most important for me. When saving it, it blocks, the size of the saved file is always 1.8K: -rwxr-xr-x 1 root root 1.8K Apr 17 19:08 redhat-4.6-32 The error xend.log report is: DEBUG (XendCheckpoint:124) [xc_save]: /usr/lib64/xen/bin/xc_save 4 3 0 0 4 INFO (XendCheckpoint:423) xc_save: failed to get the suspend evtchn port The pv driver of redhat-4.6-32bit are: [root@localhost ~]# lsmod|grep xen xen_vnif 28672 0 xen_balloon 17488 1 xen_vnif xen_vbd 20592 3 xen_platform_pci 73692 3 xen_vnif,xen_balloon,xen_vbd,[permanent] [root@localhost ~]# modinfo xen_vnif filename: /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vnif.ko alias: xen:vif alias: xen:vif license: Dual BSD/GPL vermagic: 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends: xen-platform-pci,xen-balloon [root@localhost ~]# modinfo xen_balloon filename: /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-balloon.ko license: Dual BSD/GPL vermagic: 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends: xen-platform-pci [root@localhost ~]# modinfo xen_vbd filename: /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vbd.ko alias: xen:vbd license: Dual BSD/GPL vermagic: 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends: xen-platform-pci [root@localhost ~]# modinfo xen_platform_pci filename: /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-platform-pci.ko author: ssmith@xensource.com description: Xen platform PCI device license: GPL license: Dual BSD/GPL license: GPL vermagic: 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends: alias: pci:v00005853d00000001sv*sd*bc*sc*i* alias: pci:v0000FFFDd00000101sv*sd*bc*sc*i* xm info: host : SS01 release : 2.6.31.13 version : #1 SMP Fri Apr 16 14:58:38 CST 2010 machine : x86_64 nr_cpus : 16 nr_nodes : 2 cores_per_socket : 4 threads_per_core : 2 cpu_mhz : 2400 hw_caps : bfebfbff:28100800:00000000:00001b40:009ce3bd:00000000:00000001:00000000 virt_caps : hvm total_memory : 24540 free_memory : 7 node_to_cpu : node0:0,2,4,6,8,10,12,14 node1:1,3,5,7,9,11,13,15 node_to_memory : node0:7 node1:0 node_to_dma32_mem : node0:5 node1:0 max_node_id : 1 xen_major : 4 xen_minor : 0 xen_extra : .0-rc9-pre xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params : virt_start=3D0xffff800000000000 xen_changeset : Sat Mar 27 16:01:35 2010 +0000 21078:f3db0ae08304 xen_commandline : cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) cc_compile_by : root cc_compile_domain : (none) cc_compile_date : Fri Apr 9 15:34:38 CST 2010 xend_config_format : 4 Is there anyone can give me a good idea? I=92ll try another version of pv driver or another version of redhat=85 Thanks --001636e0a522d833180484991be5 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

Hi all,

I have some problem with xm save/restore in Xen-4.0.0 & = linux-2.6.31.13,

First, the /etc/init.d/xendomains seems= do not work properly because of bash version. So I modified it as follow:

root@r02k08027 # diff -up /etc/init.d/x= endomains /etc/init.d/xendomains_31

--- /etc/init.d/xendomains=A0 2010-04-08 00:12:04.000000000 +0800

+++ /etc/init.d/xendomains_31=A0=A0 2010-04-19 22:45:35.000000000 +0800

@@ -182,11 +182,11 @@ rdnames()<= /p>

=A0

=A0parseln()

=A0{

-=A0= =A0=A0 if [[ "$1" =3D~ '(domain' ]]; then

+=A0= =A0=A0 if [[ "$1" =3D=3D '(domain'* ]]; then

=A0=A0= =A0=A0=A0=A0=A0=A0 name=3D;id=3D

-=A0= =A0=A0 else if [[ "$1" =3D~ '(name' ]]; then

+=A0= =A0=A0 else if [[ "$1" =3D=3D '(name'* ]]; then

=A0=A0= =A0=A0=A0=A0=A0=A0 name=3D$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/')<= /p>

-=A0= =A0=A0 else if [[ "$1" =3D~ '(domid' ]]; then

+=A0= =A0=A0 else if [[ "$1" =3D=3D '(domid'* ]]; then

=A0=A0= =A0=A0=A0=A0=A0=A0 id=3D$(echo $1 | sed -e 's/^.*(domid \(.*\))$/\1/')

=A0=A0= =A0=A0 fi; fi; fi

=A0

Then service xendomains start/stop work= s correctly. But there is a significant problem. I tried to save and restore these VMs:<= /span>

redhat-4.6-32bit with pv driver, redhat= -4.6-32bit without pv driver;

WindowsServer2003-32bit with pv driver = (Xenpv-win-32bit-0.97.4.exe), WindowsServer2003-32bit without pv driver;

WindowsServer2008-64bit with pv driver = (Xenpv-win-64bit-0.97.4.exe),

WindowsServer2008-64bit without pv driv= er.

=A0

Others are OK, only redhat-4.6-32bit do= main with pv driver failed. But this VM is the most important for me. When saving it, it blocks, the size of the saved file is always 1.8K:

-rwxr-xr-x 1 root root 1.8K Apr 17 19:0= 8 redhat-4.6-32

=A0

The error xend.log report is:

DEBUG (XendCheckpoint:124) [xc_save]: /usr/lib64/xen/bin/xc_save 4 3 0 0 4

INFO (XendCheckpoint:423) xc_save: fail= ed to get the suspend evtchn port

=A0

=A0

The pv driver of redhat-4.6-32bit are:<= /span>

[root@localhost ~]# lsmod|grep xen

xen_vnif=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 28672=A0 0

xen_balloon=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 17488=A0 1 xen_vnif

xen_vbd=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 20592=A0 3

xen_platform_pci=A0=A0=A0=A0=A0=A0 73692= =A0 3 xen_vnif,xen_balloon,xen_vbd,[permanent]

=A0

[root@localhost ~]# modinfo xen_vnif

filename:=A0=A0=A0=A0=A0=A0 /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vnif.ko

alias:= =A0=A0=A0=A0=A0=A0=A0=A0=A0 xen:vif

alias:= =A0=A0=A0=A0=A0=A0=A0=A0=A0 xen:vif

license:=A0=A0=A0=A0=A0=A0=A0 Dual BSD/GPL

vermagic:=A0=A0=A0=A0=A0=A0 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4

depends:=A0=A0=A0=A0=A0=A0=A0 xen-platform-pci,xen-balloon

=A0

[root@localhost ~]# modinfo xen_balloon=

filename:=A0=A0=A0=A0=A0=A0 /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-balloon.ko

license:=A0=A0=A0=A0=A0=A0=A0 Dual BSD/GPL

vermagic:=A0=A0=A0=A0=A0=A0 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4

depends:=A0=A0=A0=A0=A0=A0=A0 xen-platform-pci

=A0

[root@localhost ~]# modinfo xen_vbd

filename:=A0=A0=A0=A0=A0=A0 /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-vbd.ko=

alias:= =A0=A0=A0=A0=A0=A0=A0=A0=A0 xen:vbd

license:=A0=A0=A0=A0=A0=A0=A0 Dual BSD/GPL

vermagic:=A0=A0=A0=A0=A0=A0 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4

depends:=A0=A0=A0=A0=A0=A0=A0 xen-platform-pci

=A0

[root@localhost ~]# modinfo xen_platfor= m_pci

filename:=A0=A0=A0=A0=A0=A0 /lib/modules/2.6.9-67.ELsmp/extra/xenpv/0.1-10.el4/xen-platform-pci.= ko

author:=A0=A0=A0=A0=A0=A0=A0=A0 ssmith@xensource.com

description:=A0=A0=A0 Xen platform PCI device

license:=A0=A0=A0=A0=A0=A0=A0 GPL

license:=A0=A0=A0=A0=A0=A0=A0 Dual BSD/GPL

license:=A0=A0=A0=A0=A0=A0=A0 GPL

vermagic:=A0=A0=A0=A0=A0=A0 2.6.9-67.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4

depends:=A0=A0=A0=A0=A0=A0=A0

alias:= =A0=A0=A0=A0=A0=A0=A0=A0=A0 pci:v00005853d00000001sv*sd*bc*sc*i*

alias:= =A0=A0=A0=A0=A0=A0=A0=A0=A0 pci:v0000FFFDd00000101sv*sd*bc*sc*i*

=A0

xm info:

=A0host =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 : SS01

release =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2.6.31.13

version =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: #1 SMP Fri Apr 16 14:58= :38 CST 2010

machine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: x86_64

nr_cpus =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 16

nr_nod= es =A0 =A0 =A0 =A0 =A0 =A0 =A0 : 2

cores_per_socket =A0 = =A0 =A0 : 4

threads_per_core =A0 =A0 =A0 : 2

cpu_mhz =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 2400

hw_caps =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: bfebfbff:28100800:00000000:000= 01b40:009ce3bd:00000000:00000001:00000000

virt_caps =A0 = =A0 =A0 =A0 =A0 =A0 =A0: hvm

total_memory =A0 =A0 =A0 =A0= =A0 : 24540

free_memory =A0 =A0 =A0 =A0 =A0 =A0: 7

nod= e_to_cpu =A0 =A0 =A0 =A0 =A0 =A0: node0:0,2,4,6,8,10,12,14

=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 node1:1,3,5,7,9,11,13,= 15

node_to_memory =A0 =A0 =A0 =A0 : node0:7

=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 node1:0

node_to_dma32_mem =A0 =A0 =A0: node0:5

= =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 node1:0

max_node_id =A0 =A0 =A0 =A0 =A0 =A0: 1

xen_major =A0 = =A0 =A0 =A0 =A0 =A0 =A0: 4

xen_minor =A0 =A0 =A0 =A0 =A0 =A0 =A0: 0

x= en_extra =A0 =A0 =A0 =A0 =A0 =A0 =A0: .0-rc9-pre

xen_caps= =A0 =A0 =A0 =A0 =A0 =A0 =A0 : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_3= 2 hvm-3.0-x86_32p hvm-3.0-x86_64=A0

xen_scheduler =A0 =A0 =A0 =A0 =A0: credit

xen_pagesize = =A0 =A0 =A0 =A0 =A0 : 4096

platform_params =A0 =A0 =A0 = =A0: virt_start=3D0xffff800000000000

xen_changeset =A0 = =A0 =A0 =A0 =A0: Sat Mar 27 16:01:35 2010 +0000 21078:f3db0ae08304

xen_commandline =A0 =A0 =A0 =A0:=A0

cc_com= piler =A0 =A0 =A0 =A0 =A0 =A0: gcc version 4.1.2 20080704 (Red Hat 4.1.2-46= )

cc_compile_by =A0 =A0 =A0 =A0 =A0: root

cc_compile_domain =A0 =A0 =A0: (none)

cc_compile_date =A0 =A0 =A0 =A0: Fri Apr =A09 15:34:38 CST 2= 010

xend_config_format =A0 =A0 : 4




Is there anyone can give me a good idea= ?

=A0

I=92ll try another version of pv driver= or another version of redhat=85

=A0

Thanks

=A0

--001636e0a522d833180484991be5-- --===============2108332851== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2108332851==--