mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Activate suspending/resuming of the TPM interface and add
some missing code to tpmif.py. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
66041d1b9c
commit
c436ce043d
2 files changed
+46
-35
No files matched your search
@@ -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
|
||||