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/
Home Products Support Community News


[Xen-API] Support for vTPM in Xen-API

To: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] Support for vTPM in Xen-API
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Tue, 12 Sep 2006 20:53:12 -0400
Delivery-date: Tue, 12 Sep 2006 17:53:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx


   For the Xen-API call tomorrow:

   Here are modifications for better supporting the vTPM in the Xen API. I took the classes for the networking (VIF) and block devices (VBD) as examples and modeled the vTPM class similar to them. The result gives a better approach to managing this type of device.

   I thought about posting a patch for the latex source file for the Xen-API document but had the impression that the contents of some subsections were generated using a tool. So here are just modifications to tables so far.

   Comments are welcome.

2.6 Class : VM
2.6.1 Fields for class: VM

Name                        VM
Description        a virtual machine (or 'guest')

Quals              Field                    Type              Description
RW          VTPM              (VTPM ref) Set    reference to a set of VTPMs

--> Remove TPM/instance and TPM/backend from current VM class.


2.1x Class: VTPM
2.1x.1 Fields for class: VTPM

Name              VTPM
Description:      a virtual TPM device

Quals             Field                    Type              Description

RO_run            uuid              string            unique identifier / object reference
RW                name              string            human-readable name of the interface
RO_ins            driver            driver_type       the style of driver
RO_ins            VM                VM ref            the virtual machine
RO_ins            backend           VM ref            the domain where the backend is located
RO_ins            instance          int               the instance number of the virtual TPM the domain is associated with
RO_ins            TPM               TPM ref           reference to a TPM object representing the state of the device, if it can be
                                                      determined; may be NIL


2.1x+1   Class: TPM
2.1x+1.1 Fields for class: TPM

Name                        TPM
Description:      a TPM device’s current state; the device may be a hardware TPM or a virtual TPM whose state can be determined

Quals             Field                   Type              Description

RO_run            uuid                    string            unique identifier / object reference
RO_run            active                  boolean           whether the device is active
RO_run            temp_deactivated        boolean           whether the device has temporarily
                                                            been deactivated
RO_run            has_owner               boolean           whether the device has an owner

Additional methods:

TakeOwnership(owner-pwd, srk-pwd) : Take ownership of the TPM device with the given passwords for the owner and the storage root key.


xen-api mailing list
<Prev in Thread] Current Thread [Next in Thread>