x86: Clean up the Xen MSR infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Feb 2018 17:54:13 +0000 (17:54 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Sep 2018 15:25:37 +0000 (16:25 +0100)
commit39d42a2daee3d0b4c12ce7391faf4763eff09e6b
treec408ffd96abe5755d15038225cafcabe7449d813
parent229b94878717e22c0f228625bbcddd53f7d8654d
x86: Clean up the Xen MSR infrastructure

Rename them to guest_{rd,wr}msr_xen() for consistency, and because the _regs
suffix isn't very appropriate.

Update them to take a vcpu pointer rather than presuming that they act on
current, and switch to using X86EMUL_* return values.

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/arch/x86/traps.c
xen/include/asm-x86/processor.h