|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5.1 01/12] mini-os/tpm{back, front}: Change shared page ABI
On 04/11/2013 10:14 AM, Ian Campbell wrote: On Fri, 2013-03-22 at 22:30 +0000, Daniel De Graaf wrote: The frontend's write to pg->state is always done prior to the frontend sending its event channel notification, so an explicit barrier is not needed in this function. Since there is only one read and a clear dependency on the one write, so I'm not sure where the barrier here would need to go even if it was needed. We might need a barrier in send_response between the memcpy and setting the state to VTPM_STATE_FINISH. It so happens that the existing code includes a call to local_irq_save which includes barrier(), making the code technically safe - but an explicit barrier would clarify this and avoid potential bugs introduced by moving tpmif_req_finished() around.
-- 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 |