virtio: disable virtqueue notifications during polling
commita7c8215e3bbcdd3b5dbaabfcecf236d4a9880558
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Dec 2016 19:26:50 +0000 (1 19:26 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 3 Jan 2017 16:38:50 +0000 (3 16:38 +0000)
tree055e226ce13776bee8762a93f36a31bb081fb31e
parent684e508c23d28af8d6ed2c62738a0f60447c8274
virtio: disable virtqueue notifications during polling

This is a performance optimization to eliminate vmexits during polling.
It also avoids spurious ioeventfd processing after polling ends.

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