x86/traps: Move guest_{rd,wr}msr_xen() into msr.c
PATCH 1/1 x86/traps: Move guest_{rd,wr}msr_xen() into msr.c
They are out of place in traps.c, and only have a single caller each. Make them static inside msr.c.
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/arch/x86/include/asm/processor.h | 3 -- xen/arch/x86/msr.c | 73 ++++++++++++++++++++++++++++ xen/arch/x86/traps.c | 73 ---------------------------- 3 files changed, 73 insertions(+), 76 deletions(-)
xen/arch/x86/include/asm/processor.h +0 -3
@@ -472,9 +472,6 @@ struct stubs { DECLARE_PER_CPU(struct stubs, stubs);unsigned long alloc_stub_page (unsigned int cpu,unsigned long *mfn); -int guest_rdmsr_xen (const struct vcpu *v,uint32_t idx,uint64_t *val); -int guest_wrmsr_xen (struct vcpu *v,uint32_t idx,uint64_t val); -static inline uint8_t get_cpu_family (uint32_t raw,uint8_t *model,uint8_t *stepping) {
xen/arch/x86/msr.c +73 -0
85 lines not on this page · raw message
xen/arch/x86/traps.c +0 -73
85 lines not on this page · raw message
Signature · 1 line
2.39.5
Quoted 6 lines · Andrew Cooper
They are out of place in
traps.c, and only have a single caller each. Make them static insidemsr.c.No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>