From: Avi Kivity <[EMAIL PROTECTED]>

not present on all hosts.

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

diff --git a/kernel/Makefile b/kernel/Makefile
index 69d0efa..fb053eb 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -47,6 +47,7 @@ sync:
        $(call unifdef, include/linux/kvm_para.h)
        $(call unifdef, include/asm-x86/kvm.h)
        $(call unifdef, include/asm-x86/kvm_para.h)
+       $(call hack, include/linux/kvm.h)
        $(call hack, kvm_main.c)
        $(call hack, mmu.c)
        $(call hack, vmx.c)
diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk
index a9ef66e..dd9a2f4 100644
--- a/kernel/hack-module.awk
+++ b/kernel/hack-module.awk
@@ -54,9 +54,12 @@
 { sub(/\<desc_struct\>/, "kvm_desc_struct") }
 { sub(/\<ldttss_desc64\>/, "kvm_ldttss_desc64") }
 { sub(/\<desc_ptr\>/, "kvm_desc_ptr") }
+{ sub(/\<__user\>/, " ") }
 
 /^\t\.name = "kvm"/ { $0 = "\tset_kset_name(\"kvm\")," }
 
+/#include <linux\/compiler.h>/ { $0 = "" }
+
 { 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