]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
xenbus: notify the other end when necessary
authorWei Liu <wei.liu2@citrix.com>
Tue, 27 Oct 2015 15:43:28 +0000 (15:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 11:29:23 +0000 (11:29 +0000)
commit22d01aab99180539b38b13ba30f0e1cd62b72147
treeae41ab68ea4117a94063ed30a7f93e735323ae6d
parent256035e01a1aa5739e34f245f3b1e9e8ee204210
xenbus: notify the other end when necessary

The xenbus thread didn't send notification to other end when it expected
more data or consumed responses, which led to stalling the ring from
time to time.

This is the culprit that guest was less responsive when using stubdom
because the device model was stalled.

Fix this by sending notification to the other end when it consumes a
message. A bunch of memory barriers are also added to ensure
correctness.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
xenbus/xenbus.c