From: Fabian Zimmermann <xen-users@z-technologies.de>
To: xen-devel@lists.xensource.com
Subject: No suspend in xendomains (4.0.1-rc2-pre)
Date: Wed, 17 Jun 2009 20:22:53 +0200 [thread overview]
Message-ID: <4A39347D.2010507@z-technologies.de> (raw)
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
reply other threads:[~2009-06-17 18:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A39347D.2010507@z-technologies.de \
--to=xen-users@z-technologies.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.