direct-io.hg

changeset 11416:536c25a9654d

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 <stefanb@us.ibm.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Sep 05 14:17:49 2006 +0100 (2006-09-05)
parents 2d8d6ce64454
children 65a41e3206ac
files tools/examples/vtpm-common.sh tools/examples/vtpm-impl
line diff
     1.1 --- a/tools/examples/vtpm-common.sh	Tue Sep 05 06:14:31 2006 -0700
     1.2 +++ b/tools/examples/vtpm-common.sh	Tue Sep 05 14:17:49 2006 +0100
     1.3 @@ -48,6 +48,9 @@ else
     1.4  	function vtpm_migrate() {
     1.5  		echo "Error: vTPM migration accross machines not implemented."
     1.6  	}
     1.7 +	function vtpm_migrate_local() {
     1.8 +		echo "Error: local vTPM migration not supported"
     1.9 +	}
    1.10  	function vtpm_migrate_recover() {
    1.11  		true
    1.12  	}
    1.13 @@ -353,6 +356,8 @@ function vtpm_migration_step() {
    1.14  	local res=$(vtpm_isLocalAddress $1)
    1.15  	if [ "$res" == "0" ]; then
    1.16  		vtpm_migrate $1 $2 $3
    1.17 +	else
    1.18 +		vtpm_migrate_local
    1.19  	fi
    1.20  }
    1.21  
     2.1 --- a/tools/examples/vtpm-impl	Tue Sep 05 06:14:31 2006 -0700
     2.2 +++ b/tools/examples/vtpm-impl	Tue Sep 05 14:17:49 2006 +0100
     2.3 @@ -184,3 +184,6 @@ function vtpm_migrate_recover() {
     2.4   echo "Error: Recovery not supported yet" 
     2.5  }
     2.6  
     2.7 +function vtpm_migrate_local() {
     2.8 + echo "Error: local vTPM migration not supported"
     2.9 +}