forked from xapi-project/xen-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-83940: generalise "with_migrating_away" to "with_events_suppressed"
This function temporarily stops events from xenopsd from being processed for a particular VM. It is useful to prevent races between a foreground thread and the background event thread e.g. In Xapi_xenops.start: 1. VBDs are set to currently_attached = true 2. metadata is pushed to xenopsd <- at this point an event on the xenopsd VM would cause the VBD currently_attached field to be set to false so we block events 3. the VM is started <- at this point it is safe to re-enable syncing. Signed-off-by: David Scott <dave.scott@eu.citrix.com> Whenever we want to stop events from xenopsd for a particula
- Loading branch information
David Scott
committed
Jul 24, 2012
1 parent
f0c78bc
commit b4f7971
Showing
2 changed files
with
123 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters