virtio: add support for indirect ring entries
commitefeea6d048756bc42ad39f0acce6bede4b74177a
authorMark McLoughlin <markmc@redhat.com>
Wed, 17 Jun 2009 10:38:28 +0000 (17 11:38 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:10:50 +0000 (22 10:10 -0500)
tree667e4307b915ca1f6f4711f4a7f6d057e61201a9
parent5774cf98ca7da4161ee4265a2db0d92ffff005f3
virtio: add support for indirect ring entries

Support a new feature flag for indirect ring entries. These are ring
entries which point to a table of buffer descriptors.

The idea here is to increase the ring capacity by allowing a larger
effective ring size whereby the ring size dictates the number of
requests that may be outstanding, rather than the size of those
requests.

This should be most effective in the case of block I/O where we can
potentially benefit by concurrently dispatching a large number of
large requests. Even in the simple case of single segment block
requests, this results in a threefold increase in ring capacity.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-pci.c
hw/virtio.c
hw/virtio.h