x86/paravirt: Add paravirt_{read,write}_msr()
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / paravirt_types.h
index 09c9e1dd81ce9c59a1419c332c46be5426ad8f88..b4a23eafa1b95e2e0d63f42a54c8725732e99df8 100644 (file)
@@ -155,8 +155,14 @@ struct pv_cpu_ops {
        void (*cpuid)(unsigned int *eax, unsigned int *ebx,
                      unsigned int *ecx, unsigned int *edx);
 
-       /* MSR operations.
-          err = 0/-EIO.  wrmsr returns 0/-EIO. */
+       /* Unsafe MSR operations.  These will warn or panic on failure. */
+       u64 (*read_msr)(unsigned int msr);
+       void (*write_msr)(unsigned int msr, unsigned low, unsigned high);
+
+       /*
+        * Safe MSR operations.
+        * read sets err to 0 or -EIO.  write returns 0 or -EIO.
+        */
        u64 (*read_msr_safe)(unsigned int msr, int *err);
        int (*write_msr_safe)(unsigned int msr, unsigned low, unsigned high);