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