x86/msr: Introduce and use default MSR policies
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Feb 2020 15:23:31 +0000 (15:23 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 Feb 2020 18:54:58 +0000 (18:54 +0000)
commit1df81d8caf1edab42b7e0e8d5fbf2e232b31b051
treee8e32e043fa7e73c50e9d25e5bc81c60eee69bf9
parentfd0ec12c3a41065faab70153b8037c9263571dc0
x86/msr: Introduce and use default MSR policies

For now, the default and max policies remain identical, but this will change
in the future.

Update XEN_SYSCTL_get_cpu_policy and init_domain_msr_policy() to use the
default policies.

Take the opportunity sort PV ahead of HVM, as is the prevailing style
elsewhere.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/msr.c
xen/arch/x86/sysctl.c
xen/include/asm-x86/msr.h