x86/xen: use vmap() to map grant table pages in PVH guests
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 5 Aug 2014 10:49:19 +0000 (11:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:34:16 +0000 (16:34 -0700)
commit8e669fe4fcd6be33c827acd303f17c588f9f0b5f
tree84f799b414b9789d45425d08bf317e98f9f842c4
parent0a00abaee6e1b0d8ef5d5989259db2e186a204ba
x86/xen: use vmap() to map grant table pages in PVH guests

commit 7d951f3ccb0308c95bf76d5eef9886dea35a7013 upstream.

Commit b7dd0e350e0b (x86/xen: safely map and unmap grant frames when
in atomic context) causes PVH guests to crash in
arch_gnttab_map_shared() when they attempted to map the pages for the
grant table.

This use of a PV-specific function during the PVH grant table setup is
non-obvious and not needed.  The standard vmap() function does the
right thing.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reported-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Tested-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/grant-table.c