direct-io.hg

changeset 12165:b6dc7eecff33

Implement new VTPM model.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Oct 28 12:14:47 2006 +0100 (2006-10-28)
parents 4ea1097252a1
children 819e93d30ce2
files tools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Sat Oct 28 12:04:08 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Sat Oct 28 12:14:47 2006 +0100
     1.3 @@ -514,8 +514,7 @@ class XendAPI:
     1.4                    'VCPUs_can_use',
     1.5                    'VIFs',
     1.6                    'VBDs',
     1.7 -                  'TPM_instance',
     1.8 -                  'TPM_backend',
     1.9 +                  'VTPMs',
    1.10                    'PCI_bus',
    1.11                    'tools_version',
    1.12                    ]
    1.13 @@ -642,6 +641,10 @@ class XendAPI:
    1.14          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.15          return xen_api_success(dom.get_vbds())
    1.16      
    1.17 +    def vm_get_vtpms(self, session, vm_ref):
    1.18 +        dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.19 +        return xen_api_success(dom.get_vtpms())
    1.20 +    
    1.21      def vm_get_tpm_instance(self, session, vm_ref):
    1.22          dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
    1.23          return xen_api_todo() # unsupported by xc
    1.24 @@ -929,8 +932,7 @@ class XendAPI:
    1.25              'actions_after_crash': xeninfo.get_on_crash(),
    1.26              'vifs': xeninfo.get_vifs(),
    1.27              'vbds': xeninfo.get_vbds(),
    1.28 -            'tpm_instance': xeninfo.get_tpm_instance(),
    1.29 -            'tpm_backend': xeninfo.get_tpm_backend(),
    1.30 +            'vtpms': xeninfo.get_vtpms(),
    1.31              'bios_boot': xeninfo.get_bios_boot(),
    1.32              'platform_std_vga': xeninfo.get_platform_std_vga(),
    1.33              'platform_serial': xeninfo.get_platform_serial(),
     2.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sat Oct 28 12:04:08 2006 +0100
     2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sat Oct 28 12:14:47 2006 +0100
     2.3 @@ -1837,6 +1837,9 @@ class XendDomainInfo:
     2.4      def get_vbds(self):
     2.5          return self.info.get('vbd_refs', [])
     2.6  
     2.7 +    def get_vtpms(self):
     2.8 +        return self.info.get('vtpm_refs', [])
     2.9 +
    2.10      def create_vbd(self, xenapi_vbd):
    2.11          """Create a VBD device from the passed struct in Xen API format.
    2.12