Vincenzo Maffione 17e9052ca8 bhyve: virtio: introduce vq_kick_enable() and vq_kick_disable()
The VirtIO standard supports two schemes for notification suppression:
a notification enable bit and a more sophisticated one (event_idx) that
also supports delayed notifications. Currently bhyve fully supports
only the first scheme. This patch hides the notification suppression
internals by means of two inline routines, vq_kick_enable() and
vq_kick_disable(), and makes the code more readable.
Moreover, further improve readability by replacing the call to mb()
with a call to atomic_thread_fence_seq_cst(), which is already used
in virtio.c

Reviewed by:	pmooney_pfmooney.com, bryanv
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20581
2019-06-11 15:52:41 +00:00
..
2019-03-29 20:21:28 +00:00
2019-04-02 12:50:01 +00:00
2019-06-09 02:06:31 +00:00
2019-03-14 14:34:36 +00:00
2019-05-04 02:09:30 +00:00
2019-05-22 01:22:33 +00:00
2019-03-05 02:53:41 +00:00
2019-04-22 17:52:46 +00:00
2019-04-23 03:52:43 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00