Skip to contentSkip to conversation

External device migration scripts

PATCH Applied Stefan Berger 2 participants 2 messages Apr 20, 2006 – Apr 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 External device migration scripts

The attached patch allows external devices to migrate. The patch contains code that allows to at least detect local migration of a virtual machine and handles this for the virtual TPM (results in a no-op for local migr.). If migration of a virtual machine with attached vTPM to another machine is attempted, XenD will return an error.

xen-unstable.hg/tools/examples/Makefile +2 -0
Index: xen/xen-unstable.hg/tools/examples/Makefile
===================================================================
@@ -28,9 +28,11 @@ XEN_SCRIPTS += block
 XEN_SCRIPTS += block-enbd block-nbd
 XEN_SCRIPTS += vtpm vtpm-delete
 XEN_SCRIPTS += xen-hotplug-cleanup
+XEN_SCRIPTS += external-device-migrate
 XEN_SCRIPT_DATA = xen-script-common.sh locking.sh logging.sh
 XEN_SCRIPT_DATA += xen-hotplug-common.sh xen-network-common.sh vif-common.sh
 XEN_SCRIPT_DATA += block-common.sh vtpm-common.sh vtpm-hotplug-common.sh
+XEN_SCRIPT_DATA += vtpm-migration.sh
 
 XEN_HOTPLUG_DIR = /etc/hotplug
 XEN_HOTPLUG_SCRIPTS = xen-backend.agent
xen-unstable.hg/tools/examples/external-device-migrate new file +85 -0

85 lines not on this page · raw message

xen-unstable.hg/tools/examples/vtpm-migration.sh new file +19 -0
Index: xen/xen-unstable.hg/tools/examples/vtpm-migration.sh
===================================================================
@@ -0,0 +1,19 @@
+#
+# Copyright (c) 2005 IBM Corporation
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of version 2.1 of the GNU Lesser General Public
+# License as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#
+
+dir=$(dirname "$0")
+. "$dir/vtpm-common.sh"
xen-unstable.hg/tools/examples/vtpm-common.sh +65 -0

74 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 7 lines · Stefan Berger

The attached patch allows external devices to migrate. The patch contains code that allows to at least detect local migration of a virtual machine and handles this for the virtual TPM (results in a no-op for local migr.). If migration of a virtual machine with attached vTPM to another machine is attempted, XenD will return an error.

Applied, thank you.

Ewan.