]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/kvm/segment_descriptor.h
KVM: Portability: MMU initialization and teardown split
[linux-2.6-omap-h63xx.git] / drivers / kvm / segment_descriptor.h
index 71fdf458619a001092c9bba6ddaf4338b482372a..56fc4c8733894db1554e6c81ac5ea321f1228e4b 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef __SEGMENT_DESCRIPTOR_H
+#define __SEGMENT_DESCRIPTOR_H
+
 struct segment_descriptor {
        u16 limit_low;
        u16 base_low;
@@ -14,4 +17,13 @@ struct segment_descriptor {
        u8  base_high;
 } __attribute__((packed));
 
+#ifdef CONFIG_X86_64
+/* LDT or TSS descriptor in the GDT. 16 bytes. */
+struct segment_descriptor_64 {
+       struct segment_descriptor s;
+       u32 base_higher;
+       u32 pad_zero;
+};
 
+#endif
+#endif