Some interfaces don't depend on Xen (e.g. CACHE, RANGE_SET) and so it
is safe for them to have outstanding references across an S4 transtion
or suspend/resume (i.e. transitions which result in a new domain). Only
interfaces that actually depend on Xen (e.g. GNTTAB, EVTCHN) cannot
have outstanding reference in these cases, so limit the BUG_ONs to those.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
BUG_ON(SuspendGetReferences(Fdo->SuspendContext) != 0);
BUG_ON(SharedInfoGetReferences(Fdo->SharedInfoContext) != 0);
BUG_ON(EvtchnGetReferences(Fdo->EvtchnContext) != 0);
- BUG_ON(DebugGetReferences(Fdo->DebugContext) != 0);
BUG_ON(StoreGetReferences(Fdo->StoreContext) != 0);
- BUG_ON(RangeSetGetReferences(Fdo->RangeSetContext) != 0);
- BUG_ON(CacheGetReferences(Fdo->CacheContext) != 0);
BUG_ON(GnttabGetReferences(Fdo->GnttabContext) != 0);
- BUG_ON(UnplugGetReferences(Fdo->UnplugContext) != 0);
BUG_ON(BalloonGetReferences(Fdo->BalloonContext) != 0);
not_active: