On 23/12/2015 15:41, Razvan Cojocaru wrote: > On 12/23/2015 04:53 PM, Tamas K Lengyel wrote: >> Introduce new vm_event domctl option which allows an event subscriber >> to request all vCPUs not currently pending a vm_event request to be paused, >> thus allowing the subscriber to sync up on the state of the domain. This >> is especially useful when the subscribed wants to disable certain events >> from being delivered and wants to ensure no more requests are pending on the >> ring before doing so. >> >> Cc: Ian Jackson <ian.jack...@eu.citrix.com> >> Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com> >> Cc: Ian Campbell <ian.campb...@citrix.com> >> Cc: Wei Liu <wei.l...@citrix.com> >> Cc: Razvan Cojocaru <rcojoc...@bitdefender.com> >> Signed-off-by: Tamas K Lengyel <ta...@tklengyel.com> > This certainly looks very interesting. Would xc_domain_pause() not be > enough for your use case then?
I second this query. I would have thought xc_domain_pause() does exactly what you want in this case. The code provided is racy, as it is liable to alter which pause references it takes/releases depending on what other pause/unpause actions are being made. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel