Fabian Zimmermann
2009-Jun-17 18:22 UTC
[Xen-devel] No suspend in xendomains (4.0.1-rc2-pre)
Hi, today I tried to save my running domains with "xendomains stop" and wondered, why no domain was found. I was able to find the bug and here is my patch. Maybe someone could include this into Xen? --- --- xendomains.old 2009-06-17 20:03:35.000000000 +0200 +++ xendomains 2009-06-17 20:17:42.000000000 +0200 @@ -182,11 +182,11 @@ parseln() { - if [[ "$1" =~ "\(domain" ]]; then + if [[ "$1" =~ ''(domain'' ]]; then name=;id- else if [[ "$1" =~ "\(name" ]]; then + else if [[ "$1" =~ ''(name'' ]]; then name=$(echo $1 | sed -e ''s/^.*(name \(.*\))$/\1/'') - else if [[ "$1" =~ "\(domid" ]]; then + else if [[ "$1" =~ ''(domid'' ]]; then id=$(echo $1 | sed -e ''s/^.*(domid \(.*\))$/\1/'') fi; fi; fi --- red:/etc/init.d# xm info host : red release : 2.6.29.4-xen version : #1 SMP Tue Jun 9 21:32:38 CEST 2009 machine : x86_64 nr_cpus : 2 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 1 cpu_mhz : 1989 hw_caps : 178bf3ff:ebd3fbff:00000000:00000010:00002001:00000000:0000001f:00000000 virt_caps : hvm total_memory : 4095 free_memory : 2002 node_to_cpu : node0:0-1 node_to_memory : node0:2002 xen_major : 3 xen_minor : 4 xen_extra : .1-rc2-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=0xffff800000000000 xen_changeset : Fri Jun 05 09:44:05 2009 +0100 19645:a24e16539384 cc_compiler : gcc version 4.3.2 (Debian 4.3.2-1.1) Thanks, Fabian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel