]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xenbus: Support multiple grants ring with 64KB
authorJulien Grall <julien.grall@citrix.com>
Tue, 13 Oct 2015 16:50:13 +0000 (17:50 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:23 +0000 (02:01 +0100)
commit48b0db14e0d005ea27249782d41627a760053370
treee321b30f8911494e6e0d5ebe82eb6ba0d2310a3b
parent241bb850e57b9e49c107706353f3bcb53f87440e
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>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 89bf4b4e4a8d9ab219cd03aada24e782cf0ac359)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/xenbus/xenbus_client.c