]> git.baikalelectronics.ru Git - kernel.git/commit
block/xen-blkback: Make it running on 64KB page granularity
authorJulien Grall <julien.grall@citrix.com>
Tue, 5 May 2015 15:25:56 +0000 (16:25 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:40 +0000 (14:20 +0100)
commit9aeaa8a73a0c2af0e1a411aa1ede3245baf9b247
tree0c03545ee47352eddd9b61171546a1e76fccb73c
parenta46a08cd5660211a921ab4454018552c5e64bdba
block/xen-blkback: Make it running on 64KB page granularity

The PV block protocol is using 4KB page granularity. The goal of this
patch is to allow a Linux using 64KB page granularity behaving as a
block backend on a non-modified Xen.

It's only necessary to adapt the ring size and the number of request per
indirect frames. The rest of the code is relying on the grant table
code.

Note that the grant table code is allocating a Linux page per grant
which will result to waste 6OKB for every grant when Linux is using 64KB
page granularity. This could be improved by sharing the page between
multiple grants.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: "Roger Pau Monné" <roger.pau@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c