From: Avi Kivity <[EMAIL PROTECTED]>

Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index 1f1aa72..cbfa3ed 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -671,3 +671,12 @@ static inline struct page *__kvm_vm_fault(struct 
vm_area_struct *vma,
        }
 
 #endif
+
+/* set_kset_name() is gone in 2.6.25 */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
+
+#define set_kset_name(x) .name = x
+
+#endif
+
diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk
index df2a0b2..126957a 100644
--- a/kernel/hack-module.awk
+++ b/kernel/hack-module.awk
@@ -51,6 +51,8 @@
 
 { sub(/linux\/mm_types\.h/, "linux/mm.h") }
 
+/^\t\.name = "kvm"/ { $0 = "\tset_kset_name(\"kvm\")," }
+
 { print }
 
 /kvm_x86_ops->run/ {

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to