virtio-blk: multiqueue batch notify
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Jun 2016 12:13:11 +0000 (13:13 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 28 Jun 2016 12:08:31 +0000 (13:08 +0100)
commite21737ab150c2742dd94089017db96c472dd4b87
tree355301fdbfbad823ace163c1183fdd918e4baefe
parent84419863f72f6b9ae1b4513fa73e28690f2d5458
virtio-blk: multiqueue batch notify

The batch notification BH needs to know which virtqueues to notify when
multiqueue is enabled.  Use a bitmap to track the virtqueues with
pending notifications.

At this point there is only one virtqueue so hard-code virtqueue index
0.  A later patch will switch to real virtqueue indices.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1466511196-12612-3-git-send-email-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c