]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:47 +0000 (14:20 +0100)
commit6185228736ac2d626bde0202ca0877bcf2460a06
treeb4ca7d378810e5321d78178f15c46e77effc8c87
parent19e9ed56076865e555fa29d8cb5c0b9163818f88
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>
drivers/xen/xenbus/xenbus_client.c