x86/msr: Use the architectural layout for MSR_{MISC_ENABLES,PLATFORM_INFO}
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Jun 2018 11:34:47 +0000 (12:34 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Jul 2018 17:04:21 +0000 (18:04 +0100)
commitb4ac4bc410222d221dc46a74ac71efaa7b32d57c
treea409c999a89e0c132d3d8a2f63a168f9cf611392
parent2df1d2ba132ff5e5d997af264f458c9182f08a26
x86/msr: Use the architectural layout for MSR_{MISC_ENABLES,PLATFORM_INFO}

This simplifies future interactions with the toolstack, by removing the need
for per-MSR custom accessors when shuffling data in/out of a policy.

Use a 32bit raw backing integer (for simplicity), and use a bitfield to move
the cpuid_faulting field to its appropriate position.

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