diff options
Diffstat (limited to 'include/asm-x86/lguest.h')
-rw-r--r-- | include/asm-x86/lguest.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-x86/lguest.h b/include/asm-x86/lguest.h index ccd338460811..4d9367b72976 100644 --- a/include/asm-x86/lguest.h +++ b/include/asm-x86/lguest.h | |||
@@ -44,19 +44,19 @@ struct lguest_ro_state | |||
44 | { | 44 | { |
45 | /* Host information we need to restore when we switch back. */ | 45 | /* Host information we need to restore when we switch back. */ |
46 | u32 host_cr3; | 46 | u32 host_cr3; |
47 | struct Xgt_desc_struct host_idt_desc; | 47 | struct desc_ptr host_idt_desc; |
48 | struct Xgt_desc_struct host_gdt_desc; | 48 | struct desc_ptr host_gdt_desc; |
49 | u32 host_sp; | 49 | u32 host_sp; |
50 | 50 | ||
51 | /* Fields which are used when guest is running. */ | 51 | /* Fields which are used when guest is running. */ |
52 | struct Xgt_desc_struct guest_idt_desc; | 52 | struct desc_ptr guest_idt_desc; |
53 | struct Xgt_desc_struct guest_gdt_desc; | 53 | struct desc_ptr guest_gdt_desc; |
54 | struct i386_hw_tss guest_tss; | 54 | struct x86_hw_tss guest_tss; |
55 | struct desc_struct guest_idt[IDT_ENTRIES]; | 55 | struct desc_struct guest_idt[IDT_ENTRIES]; |
56 | struct desc_struct guest_gdt[GDT_ENTRIES]; | 56 | struct desc_struct guest_gdt[GDT_ENTRIES]; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | struct lguest_arch | 59 | struct lg_cpu_arch |
60 | { | 60 | { |
61 | /* The GDT entries copied into lguest_ro_state when running. */ | 61 | /* The GDT entries copied into lguest_ro_state when running. */ |
62 | struct desc_struct gdt[GDT_ENTRIES]; | 62 | struct desc_struct gdt[GDT_ENTRIES]; |
@@ -78,8 +78,8 @@ static inline void lguest_set_ts(void) | |||
78 | } | 78 | } |
79 | 79 | ||
80 | /* Full 4G segment descriptors, suitable for CS and DS. */ | 80 | /* Full 4G segment descriptors, suitable for CS and DS. */ |
81 | #define FULL_EXEC_SEGMENT ((struct desc_struct){0x0000ffff, 0x00cf9b00}) | 81 | #define FULL_EXEC_SEGMENT ((struct desc_struct){ { {0x0000ffff, 0x00cf9b00} } }) |
82 | #define FULL_SEGMENT ((struct desc_struct){0x0000ffff, 0x00cf9300}) | 82 | #define FULL_SEGMENT ((struct desc_struct){ { {0x0000ffff, 0x00cf9300} } }) |
83 | 83 | ||
84 | #endif /* __ASSEMBLY__ */ | 84 | #endif /* __ASSEMBLY__ */ |
85 | 85 | ||