# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID b6dc7eecff33301e569c3e8b255aa1b654f63451
# Parent 4ea1097252a140cc2882f47733388ae8b7e42347
Implement new VTPM model.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendAPI.py | 10 ++++++----
tools/python/xen/xend/XendDomainInfo.py | 3 +++
2 files changed, 9 insertions(+), 4 deletions(-)
diff -r 4ea1097252a1 -r b6dc7eecff33 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Sat Oct 28 12:04:08 2006 +0100
+++ b/tools/python/xen/xend/XendAPI.py Sat Oct 28 12:14:47 2006 +0100
@@ -514,8 +514,7 @@ class XendAPI:
'VCPUs_can_use',
'VIFs',
'VBDs',
- 'TPM_instance',
- 'TPM_backend',
+ 'VTPMs',
'PCI_bus',
'tools_version',
]
@@ -642,6 +641,10 @@ class XendAPI:
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
return xen_api_success(dom.get_vbds())
+ def vm_get_vtpms(self, session, vm_ref):
+ dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
+ return xen_api_success(dom.get_vtpms())
+
def vm_get_tpm_instance(self, session, vm_ref):
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
return xen_api_todo() # unsupported by xc
@@ -929,8 +932,7 @@ class XendAPI:
'actions_after_crash': xeninfo.get_on_crash(),
'vifs': xeninfo.get_vifs(),
'vbds': xeninfo.get_vbds(),
- 'tpm_instance': xeninfo.get_tpm_instance(),
- 'tpm_backend': xeninfo.get_tpm_backend(),
+ 'vtpms': xeninfo.get_vtpms(),
'bios_boot': xeninfo.get_bios_boot(),
'platform_std_vga': xeninfo.get_platform_std_vga(),
'platform_serial': xeninfo.get_platform_serial(),
diff -r 4ea1097252a1 -r b6dc7eecff33 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Sat Oct 28 12:04:08 2006 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Sat Oct 28 12:14:47 2006 +0100
@@ -1837,6 +1837,9 @@ class XendDomainInfo:
def get_vbds(self):
return self.info.get('vbd_refs', [])
+ def get_vtpms(self):
+ return self.info.get('vtpm_refs', [])
+
def create_vbd(self, xenapi_vbd):
"""Create a VBD device from the passed struct in Xen API format.
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|