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 fd3cb1d..1ee7924 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -707,3 +707,25 @@ static inline struct page *__kvm_vm_fault(struct 
vm_area_struct *vma,
 #define kvm_tsc_khz tsc_khz
 
 #endif
+
+struct kvm_desc_struct {
+       union {
+               struct { unsigned int a, b; };
+               struct {
+                       u16 limit0;
+                       u16 base0;
+                       unsigned base1: 8, type: 4, s: 1, dpl: 2, p: 1;
+                       unsigned limit: 4, avl: 1, l: 1, d: 1, g: 1, base2: 8;
+               };
+
+       };
+} __attribute__((packed));
+
+struct kvm_ldttss_desc64 {
+       u16 limit0;
+       u16 base0;
+       unsigned base1 : 8, type : 5, dpl : 2, p : 1;
+       unsigned limit1 : 4, zero0 : 3, g : 1, base2 : 8;
+       u32 base3;
+       u32 zero1;
+} __attribute__((packed));
diff --git a/kernel/hack-module.awk b/kernel/hack-module.awk
index 404944e..b858f1d 100644
--- a/kernel/hack-module.awk
+++ b/kernel/hack-module.awk
@@ -53,6 +53,9 @@
 
 { sub(/tsc_khz/, "kvm_tsc_khz") }
 
+{ sub(/\<desc_struct\>/, "kvm_desc_struct") }
+{ sub(/\<ldttss_desc64\>/, "kvm_ldttss_desc64") }
+
 /^\t\.name = "kvm"/ { $0 = "\tset_kset_name(\"kvm\")," }
 
 { print }

-------------------------------------------------------------------------
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