]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
xenbus: Support multiple grants ring with 64KB multiple-ring-64k-v1
authorJulien Grall <julien.grall@citrix.com>
Tue, 11 Aug 2015 13:18:56 +0000 (14:18 +0100)
committerJulien Grall <julien.grall@citrix.com>
Tue, 13 Oct 2015 16:45:42 +0000 (17:45 +0100)
commit554568c71722f16c3cdb31f31b424571a358fda4
tree7a27d03832e5e095a84744b6eb6ceff817472ee7
parent5805f50a61f8ae2ca29854fa7b63894b04b621eb
xenbus: Support multiple grants ring with 64KB

The PV ring may use multiple grants and expect them to be mapped
contiguously in the virtual memory.

Although, the current code is relying on a Linux page will be mapped to
a single grant. On build where Linux is using a different page size than
the grant (i.e other than 4KB), the grant will always be mapped on the
first 4KB of each Linux page which make the final ring not contiguous in
the memory.

This can be fixed by mapping multiple grant in a same Linux page.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
---
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/xen/xenbus/xenbus_client.c