kaiser: disabled on Xen PV
authorJiri Kosina <jkosina@suse.cz>
Tue, 2 Jan 2018 13:19:49 +0000 (14:19 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Thu, 4 Jan 2018 11:12:40 +0000 (11:12 +0000)
commit2c06883c14f498050f2cc57e5168c0c041b5812d
tree5857fd0b654089260a45ea7bba733649db19bce4
parent5a33db6149a5b46cb5bbe9abb18a3451283435ca
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>
Gbp-Pq: Topic features/all/kpti
Gbp-Pq: Name kaiser-disabled-on-xen-pv.patch
arch/x86/mm/kaiser.c