Skip to contentSkip to conversation

AMD module build failure

PATCH In review Zachary Amsden 2 participants 2 messages May 26, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 AMD module build failure

Quoted 1 line

From abbb464f0c2dd9681c4380598a1ac098d024b576 Mon Sep 17 00:00:00 2001

From: Zachary Amsden <[email protected]>
Date: Tue, 25 May 2010 16:33:47 -1000
Subject: [PATCH 3/5] Fix AMD module build failure because of undefined MSR

---
 x86/external-module-compat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
x86/external-module-compat.h +4 -0
index 316f7ff..e7ed07b 100644
@@ -872,3 +872,7 @@ static inline void fpu_save_init(struct fpu *fpu)
 	kvm_fx_restore(&fpu->state->host_fx_image);
 }
 #endif
+
+#ifndef MSR_AMD64_DC_CFG
+#define MSR_AMD64_DC_CFG		0xc0011022 
+#endif
Signature · 1 line
1.7.0.1
#1 lore raw
Quoted 15 lines · Zachary Amsden

From abbb464f0c2dd9681c4380598a1ac098d024b576 Mon Sep 17 00:00:00 2001
From: Zachary Amsden <[email protected]>
Date: Tue, 25 May 2010 16:33:47 -1000
Subject: [PATCH 3/5] Fix AMD module build failure because of undefined MSR

---
 x86/external-module-compat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
x86/external-module-compat.h +0 -0
index 316f7ff..e7ed07b 100644

x86/external-module-compat.h static inline void fpu_save_init(struct fpu *fpu)

Quoted 8 lines
x86/external-module-compat.h +4 -1
@@ -872,3 +872,7 @@ static inline void fpu_save_init(struct fpu *fpu)
 	kvm_fx_restore(&fpu->state->host_fx_image);
 }
 #endif
+
+#ifndef MSR_AMD64_DC_CFG
+#define MSR_AMD64_DC_CFG		0xc0011022 
+#endif
-- 1.7.0.1 

Thanks, already fixed in next (MSR_IA32_MCx_STATUS was also missing).

Jan