]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fsgsbase: Fix Xen PV support
authorAndy Lutomirski <luto@kernel.org>
Fri, 26 Jun 2020 17:24:30 +0000 (10:24 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 1 Jul 2020 13:27:20 +0000 (15:27 +0200)
commit320e6f4e38e56b6a79cc5375bdf9bd8739df2378
treebc6aadea2b2a234361696aff4a6a9d2ac1564d36
parent06fae8e9aa6562d91d72e74c64f539410ea5fe8a
x86/fsgsbase: Fix Xen PV support

On Xen PV, SWAPGS doesn't work.  Teach __rdfsbase_inactive() and
__wrgsbase_inactive() to use rdmsrl()/wrmsrl() on Xen PV.  The Xen
pvop code will understand this and issue the correct hypercalls.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/f07c08f178fe9711915862b656722a207cd52c28.1593192140.git.luto@kernel.org
arch/x86/kernel/process_64.c