aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-05 23:15:00 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-10-05 23:15:00 +0100
commitc436ce043df0eec436d8019a404a2ef51ac1ec93 (patch)
treeabd6e994d816b38091da0987a6087ff348a8669d /tools
parent66041d1b9c3a82c43d3c8f10cfd4247a7a876684 (diff)
downloadxen-c436ce043df0eec436d8019a404a2ef51ac1ec93.tar.gz
xen-c436ce043df0eec436d8019a404a2ef51ac1ec93.tar.bz2
xen-c436ce043df0eec436d8019a404a2ef51ac1ec93.zip
Activate suspending/resuming of the TPM interface and add
some missing code to tpmif.py. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/server/tpmif.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/python/xen/xend/server/tpmif.py b/tools/python/xen/xend/server/tpmif.py
index 50e8f7f016..b5269a2cb0 100644
--- a/tools/python/xen/xend/server/tpmif.py
+++ b/tools/python/xen/xend/server/tpmif.py
@@ -39,9 +39,24 @@ class TPMifController(DevController):
"""@see DevController.getDeviceDetails"""
devid = int(sxp.child_value(config, 'instance', '0'))
- log.debug("The domain has a TPM with instance %d." % devid)
+ log.info("The domain has a TPM with instance %d." % devid)
back = { 'instance' : "%i" % devid }
front = { 'handle' : "%i" % devid }
return (devid, back, front)
+
+ def configuration(self, devid):
+
+ log.info("The configuration method is called.")
+
+ result = DevContoller.configuration(self, devid)
+
+ (instance) = self.readBackend(devif,
+ 'instance')
+
+ if instance:
+ result.append(['instance', instance])
+ log.info("configuration: instance=%d." % instance)
+
+ return result