]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Avoid a small race window that can lead to stuck EvtchnWait() calls 9.0.0-rc1
authorPaul Durrant <pdurrant@amazon.com>
Fri, 15 Nov 2019 14:02:28 +0000 (14:02 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 15 Nov 2019 14:05:29 +0000 (14:05 +0000)
commit8850c108734b97bbe99362558c1a845486be1013
tree277dd1d30201567795ea55d0a5a8cb5fdd82b750
parentb17af8e04099d8258eb8c189eb0d98876b5c5a89
Avoid a small race window that can lead to stuck EvtchnWait() calls

Make sure an event is ack-ed before Channel->Count is incremented
otherwise EvtchnGetCount() could sample the incremented value whilst new
events would be missed. Thus EvtchnWait() could end up waiting for a
Count value that my never be reached.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/evtchn.c