kaiser: disabled on Xen PV
authorJiri Kosina <jkosina@suse.cz>
Tue, 2 Jan 2018 13:19:49 +0000 (14:19 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 7 Jan 2018 01:46:53 +0000 (01:46 +0000)
commitab77eb13c3020f3e2c738dee83d1fc91919072e3
tree47eac19bbcd2e1b0af69c12da6003f8277558d3e
parentbd99918270ac4c710ef2aede774a5647ad7e50e8
kaiser: disabled on Xen PV

Kaiser cannot be used on paravirtualized MMUs (namely reading and writing CR3).
This does not work with KAISER as the CR3 switch from and to user space PGD
would require to map the whole XEN_PV machinery into both.

More importantly, enabling KAISER on Xen PV doesn't make too much sense, as PV
guests use distinct %cr3 values for kernel and user already.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: use xen_pv_domain()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/mm/kaiser.c