External device migration scripts
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
@@ -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
@@ -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
Ewan Mellor
AppliedQuoted 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.
Signed-off-by Stefan Berger <[email protected]>
Applied, thank you.
Ewan.