From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] stubdom: support save/restore
Date: Tue, 11 Mar 2008 17:46:11 +0000 [thread overview]
Message-ID: <20080311174611.GG5831@implementation.uk.xensource.com> (raw)
stubdom: support save/restore
by passing the -loadvm parameter, letting the stubdomain access the save
area, and having it watch the correct xenstore node.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 86e64b684fb2 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm Wed Mar 05 11:10:29 2008 +0000
+++ b/stubdom/stubdom-dm Tue Mar 11 17:43:43 2008 +0000
@@ -14,18 +14,30 @@ domname=
domname=
vncviewer=0
vncpid=
+extra=
while [ "$#" -gt 0 ];
do
if [ "$#" -ge 2 ];
then
case "$1" in
- -d) domid=$2; shift ;;
- -domain-name) domname=$2; shift ;;
+ -d)
+ domid=$2;
+ extra="$extra -d $domid";
+ shift
+ ;;
+ -domain-name)
+ domname=$2;
+ shift
+ ;;
-vnc)
ip=${2%:*};
vnc_port=${2#*:};
shift
;;
+ -loadvm)
+ extra="$extra -loadvm $2";
+ shift
+ ;;
esac
fi
case "$1" in
@@ -60,7 +72,7 @@ do
sleep 1
done
-creation="xm create -c stubdom-$domname target=$domid memory=32"
+creation="xm create -c stubdom-$domname target=$domid memory=32 extra=\"$extra\""
(while true ; do sleep 60 ; done) | $creation &
#xterm -geometry +0+0 -e /bin/sh -c "$creation ; echo ; echo press ENTER to shut down ; read" &
diff -r 9ac1d76dcbdd stubdom/README
--- a/stubdom/README Tue Mar 11 17:40:16 2008 +0000
+++ b/stubdom/README Tue Mar 11 17:42:20 2008 +0000
@@ -78,6 +78,8 @@ To run
mkdir -p /exports/usr/share/qemu
ln -s /usr/share/qemu/keymaps /exports/usr/share/qemu
+mkdir -p /exports/var/lib
+ln -s /var/lib/xen /exports/var/lib
/usr/sbin/fs-backend &
xm create hvmconfig
diff -r 9ac1d76dcbdd tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c Tue Mar 11 17:40:16 2008 +0000
+++ b/tools/ioemu/xenstore.c Tue Mar 11 17:42:20 2008 +0000
@@ -81,7 +81,7 @@ static void waitForDevice(char *fn)
#define DIRECT_PCI_STR_LEN 160
char direct_pci_str[DIRECT_PCI_STR_LEN];
-void xenstore_parse_domain_config(int domid)
+void xenstore_parse_domain_config(int hvm_domid)
{
char **e = NULL;
char *buf = NULL, *path;
@@ -100,7 +100,7 @@ void xenstore_parse_domain_config(int do
return;
}
- path = xs_get_domain_path(xsh, domid);
+ path = xs_get_domain_path(xsh, hvm_domid);
if (path == NULL) {
fprintf(logfile, "xs_get_domain_path() error\n");
goto out;
reply other threads:[~2008-03-11 17:46 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=20080311174611.GG5831@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--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.