xen/pv: support selecting safe/unsafe msr accesses
authorJuergen Gross <jgross@suse.com>
Mon, 26 Sep 2022 11:16:56 +0000 (13:16 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 11 Oct 2022 08:51:05 +0000 (10:51 +0200)
commit3fac3734c43a2e21fefeb72124d8bd31dff3956f
treed500099e8e4eb012db4510dfaf17da126f3156df
parenta1886b915e81439ba045b1431f3319d37ac1b906
xen/pv: support selecting safe/unsafe msr accesses

Instead of always doing the safe variants for reading and writing MSRs
in Xen PV guests, make the behavior controllable via Kconfig option
and a boot parameter.

The default will be the current behavior, which is to always use the
safe variant.

Signed-off-by: Juergen Gross <jgross@suse.com>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/xen/Kconfig
arch/x86/xen/enlighten_pv.c