ivshmem: factor out the incoming fifo handling
commit0f14fd71c170278b35b46d8ae214473680905606
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Jun 2015 15:56:37 +0000 (23 17:56 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (24 18:02 +0200)
tree713fbc56d3aaa9cc9a5173d8e4d09b2d13dea345
parent951dada665041e8199e8c572d2981773fa2f0d8c
ivshmem: factor out the incoming fifo handling

Make a new function fifo_update_and_get() that can be reused by other
functions (in next commits).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c