xen-disk: add support for multi-page shared rings
commit3284fad7283596033cb810b4788fd1bb43312dbd
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 21 Jun 2017 12:52:48 +0000 (21 08:52 -0400)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 27 Jun 2017 22:01:56 +0000 (27 15:01 -0700)
tree4d8f5f095e16e6017bc0e06f636d2174610c2b77
parent976eba1c88420c08977eae912628d443c4aacb0c
xen-disk: add support for multi-page shared rings

The blkif protocol has had provision for negotiation of multi-page shared
rings for some time now and many guest OS have support in their frontend
drivers.

This patch makes the necessary modifications to xen-disk support a shared
ring up to order 4 (i.e. 16 pages).

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
hw/block/xen_disk.c