WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Implement new VTPM model.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Implement new VTPM model.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:09:44 +0000
Delivery-date: Thu, 02 Nov 2006 21:30:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Implement new VTPM model., Xen patchbot-unstable <=