Skip to contentSkip to conversation

x86/traps: Move guest_{rd,wr}msr_xen() into msr.c

PATCH In review Andrew Cooper 2 participants 2 messages Feb 25, 2025 – Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 4f176bc575ef..6bc88b031761 100644
@@ -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