x86: provide read and write cr8 paravirt hooks
[sfrench/cifs-2.6.git] / include / asm-x86 / paravirt.h
index 73547acbbbf5ce11165870f35caa238c0059fc20..a55f95e921eefa9b3deeaa42b084f129b1d1cf4d 100644 (file)
@@ -619,6 +619,7 @@ static inline void write_cr4(unsigned long x)
        PVOP_VCALL1(pv_cpu_ops.write_cr4, x);
 }
 
+#ifdef CONFIG_X86_64
 static inline unsigned long read_cr8(void)
 {
        return PVOP_CALL0(unsigned long, pv_cpu_ops.read_cr8);
@@ -628,6 +629,7 @@ static inline void write_cr8(unsigned long x)
 {
        PVOP_VCALL1(pv_cpu_ops.write_cr8, x);
 }
+#endif
 
 static inline void raw_safe_halt(void)
 {