From: Stefan Berger Subject: [vTPM] Prevent domain with attached vTPM from doing local migration Date: Fri, 25 Aug 2006 17:33:08 -0400 Message-ID: <1156541588.14322.3.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-sGJM5O9DjUAH0S/jP5eG" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org --=-sGJM5O9DjUAH0S/jP5eG Content-Type: text/plain Content-Transfer-Encoding: 7bit The attached patch prevents a domain with an attached vTPM from doing local migration since this does not seem to work correctly (see tests in xm test suite). If no vTPM has been attached, the local migration proceeds as usual. Signed-off-by: Stefan Berger --=-sGJM5O9DjUAH0S/jP5eG Content-Disposition: attachment; filename=vtpm-local-migr.diff Content-Type: text/x-patch; name=vtpm-local-migr.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/examples/vtpm-common.sh =================================================================== --- root.orig/xen-unstable.hg/tools/examples/vtpm-common.sh +++ root/xen-unstable.hg/tools/examples/vtpm-common.sh @@ -48,6 +48,9 @@ else function vtpm_migrate() { echo "Error: vTPM migration accross machines not implemented." } + function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" + } function vtpm_migrate_recover() { true } @@ -353,6 +356,8 @@ function vtpm_migration_step() { local res=$(vtpm_isLocalAddress $1) if [ "$res" == "0" ]; then vtpm_migrate $1 $2 $3 + else + vtpm_migrate_local fi } Index: root/xen-unstable.hg/tools/examples/vtpm-impl =================================================================== --- root.orig/xen-unstable.hg/tools/examples/vtpm-impl +++ root/xen-unstable.hg/tools/examples/vtpm-impl @@ -184,3 +184,6 @@ function vtpm_migrate_recover() { echo "Error: Recovery not supported yet" } +function vtpm_migrate_local() { + echo "Error: local vTPM migration not supported" +} --=-sGJM5O9DjUAH0S/jP5eG Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-sGJM5O9DjUAH0S/jP5eG--