]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:13 +0000 (02:01 +0100)
commitf432f679a8d66abced7f97985ad08de100b77445
treef9404526bc0b113fdd322419c8fc8b033b015e00
parent870a702c5e8832919b966f531aaaee637668b30c
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>
(cherry picked from commit 67de5dfbc176ea86ab0278658b5d55f64207ff2d)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c