xen/gntdev: Grant maps should not be subject to NUMA balancing
commit723e01b02a017a2c2889202487a20c778f1f0bd6
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 10 Nov 2015 20:10:33 +0000 (10 15:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 05:49:28 +0000 (28 21:49 -0800)
treeea726db1e3d0f3767508c49e93dc2fadb80f89b1
parentc511958e1c0b0a802ba68a7bf689b33ee8877f6b
xen/gntdev: Grant maps should not be subject to NUMA balancing

commit 9c17d96500f78d7ecdb71ca6942830158bc75a2b upstream.

Doing so will cause the grant to be unmapped and then, during
fault handling, the fault to be mistakenly treated as NUMA hint
fault.

In addition, even if those maps could partcipate in NUMA
balancing, it wouldn't provide any benefit since we are unable
to determine physical page's node (even if/when VNUMA is
implemented).

Marking grant maps' VMAs as VM_IO will exclude them from being
part of NUMA balancing.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/gntdev.c