OSDN Git Service

virtio: turn vq->notification into a nested counter
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Dec 2016 19:26:48 +0000 (19:26 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Jan 2017 16:38:49 +0000 (16:38 +0000)
commitaff8fd18f1786fc5af259a9bc0077727222f51ca
treed2daf966c6c7b9ecd14c559ecc7410b7d27df0ee
parent23425cc2b7a9de7ade132399ca146b882ac4d72b
virtio: turn vq->notification into a nested counter

Polling should disable virtqueue notifications but that requires nested
virtio_queue_set_notification() calls.  Turn vq->notification into a
counter so it is possible to do nesting.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161201192652.9509-10-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/virtio/virtio.c