Home | History | Annotate | Download | only in asm-x86

Lines Matching refs:msr

115 	/* MSR, PMC and TSR operations.
117 u64 (*read_msr)(unsigned int msr, int *err);
118 int (*write_msr)(unsigned int msr, u64 val);
560 static inline u64 paravirt_read_msr(unsigned msr, int *err)
562 return PVOP_CALL2(u64, pv_cpu_ops.read_msr, msr, err);
564 static inline int paravirt_write_msr(unsigned msr, unsigned low, unsigned high)
566 return PVOP_CALL3(int, pv_cpu_ops.write_msr, msr, low, high);
570 #define rdmsr(msr,val1,val2) do { \
572 u64 _l = paravirt_read_msr(msr, &_err); \
577 #define wrmsr(msr,val1,val2) do { \
578 paravirt_write_msr(msr, val1, val2); \
581 #define rdmsrl(msr,val) do { \
583 val = paravirt_read_msr(msr, &_err); \
586 #define wrmsrl(msr,val) wrmsr(msr, (u32)((u64)(val)), ((u64)(val))>>32)
587 #define wrmsr_safe(msr,a,b) paravirt_write_msr(msr, a, b)
590 #define rdmsr_safe(msr,a,b) ({ \
592 u64 _l = paravirt_read_msr(msr, &_err); \