[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] The attached patch prevents a domain with an attached vTPM from doing



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 536c25a9654d4d3376edd2824e24dd486835c472
# Parent  2d8d6ce644545c567c6eba4b0edf333a5823ec6e
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@xxxxxxxxxx>
---
 tools/examples/vtpm-common.sh |    5 +++++
 tools/examples/vtpm-impl      |    3 +++
 2 files changed, 8 insertions(+)

diff -r 2d8d6ce64454 -r 536c25a9654d tools/examples/vtpm-common.sh
--- a/tools/examples/vtpm-common.sh     Tue Sep 05 06:14:31 2006 -0700
+++ b/tools/examples/vtpm-common.sh     Tue Sep 05 14:17:49 2006 +0100
@@ -47,6 +47,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
 }
 
diff -r 2d8d6ce64454 -r 536c25a9654d tools/examples/vtpm-impl
--- a/tools/examples/vtpm-impl  Tue Sep 05 06:14:31 2006 -0700
+++ b/tools/examples/vtpm-impl  Tue Sep 05 14:17:49 2006 +0100
@@ -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"
+}

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.