diff mbox

problem wit svm_get_msr on kvm-kmod-2.6.31.6

Message ID 4B013F6D.60003@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka Nov. 16, 2009, 12:02 p.m. UTC
None
diff mbox

Patch

diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h
index b0b9f21..b0de024 100644
--- a/x86/external-module-compat.h
+++ b/x86/external-module-compat.h
@@ -94,9 +94,10 @@  static inline unsigned long long native_read_msr_safe(unsigned int msr,
 
 static inline unsigned long long kvm_native_read_tsc(void)
 {
-	unsigned long long val;
-	asm volatile("rdtsc" : "=A" (val));
-	return val;
+	DECLARE_ARGS(val, low, high);
+
+	asm volatile("rdtsc" : EAX_EDX_RET(val, low, high));
+	return EAX_EDX_VAL(val, low, high);
 }
 
 #else /* >= 2.6.25 */