|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4] drivers/tpm: add xen tpmfront interface
On 07/22/2013 11:18 AM, David Vrabel wrote: On 01/07/13 22:34, Daniel De Graaf wrote:This is a complete rewrite of the Xen TPM frontend driver, taking advantage of a simplified frontend/backend interface and adding support for cancellation and timeouts. The backend for this driver is provided by a vTPM stub domain using the interface in Xen 4.3.[...]--- /dev/null +++ b/Documentation/xen-tpmfront.txtSuggest putting this in Documentation/tpm/. OK. --- /dev/null +++ b/drivers/char/tpm/xen-tpmfront.c[...] Is there a standard state machine that would allow devices to avoid inventing their own? Otherwise, this is what I plan to add to the header: /* * Xenbus state machine * * Device open: * 1. Both ends start in XenbusStateInitialising * 2. Backend transitions to InitWait (frontend does not wait on this step) * 3. Frontend populates ring-ref, event-channel, feature-protocol-v2 * 4. Frontend transitions to Initialised * 5. Backend maps grant and event channel, verifies feature-protocol-v2 * 6. Backend transitions to Connected * 7. Frontend verifies feature-protocol-v2, transitions to Connected * * Device close: * 1. State is changed to XenbusStateClosing * 2. Frontend transitions to Closed * 3. Backend unmaps grant and event, changes state to InitWait */
Sure, although the spurious invocation is not seen with the mini-os backend and running this code twice is harmless.
-- Daniel De Graaf National Security Agency _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |