]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xenbus: Use grant-table wrapper functions
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 14 Dec 2011 20:12:10 +0000 (15:12 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Feb 2012 19:16:56 +0000 (14:16 -0500)
commitdc96b3cac40761ed46586e71c7a7a877f7bb3cb0
treef9e3d8d60c153a90a99984575e45a349fa482bd8
parent61607684b0c1ada332867f45e3765edf3a8cfa43
xenbus: Use grant-table wrapper functions

For xenbus_{map,unmap}_ring to work on HVM, the grant table operations
must be set up using the gnttab_set_{map,unmap}_op functions instead of
directly populating the fields of gnttab_map_grant_ref. These functions
simply populate the structure on paravirtualized Xen; however, on HVM
they must call __pa() on vaddr when populating op->host_addr because the
hypervisor cannot directly interpret guest-virtual addresses.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
[v1: Fixed cleanpatch error]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xenbus/xenbus_client.c