WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] No suspend in xendomains (4.0.1-rc2-pre)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] No suspend in xendomains (4.0.1-rc2-pre)
From: Fabian Zimmermann <xen-users@xxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jun 2009 20:22:53 +0200
Delivery-date: Wed, 17 Jun 2009 11:23:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] No suspend in xendomains (4.0.1-rc2-pre), Fabian Zimmermann <=