diff options
Diffstat (limited to 'arch/x86/lguest/boot.c')
-rw-r--r-- | arch/x86/lguest/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c index c751e3c03e85..aa0bdd5fc4bb 100644 --- a/arch/x86/lguest/boot.c +++ b/arch/x86/lguest/boot.c | |||
@@ -229,7 +229,7 @@ static void lguest_write_idt_entry(struct desc_struct *dt, | |||
229 | /* Changing to a different IDT is very rare: we keep the IDT up-to-date every | 229 | /* Changing to a different IDT is very rare: we keep the IDT up-to-date every |
230 | * time it is written, so we can simply loop through all entries and tell the | 230 | * time it is written, so we can simply loop through all entries and tell the |
231 | * Host about them. */ | 231 | * Host about them. */ |
232 | static void lguest_load_idt(const struct Xgt_desc_struct *desc) | 232 | static void lguest_load_idt(const struct desc_ptr *desc) |
233 | { | 233 | { |
234 | unsigned int i; | 234 | unsigned int i; |
235 | struct desc_struct *idt = (void *)desc->address; | 235 | struct desc_struct *idt = (void *)desc->address; |
@@ -252,7 +252,7 @@ static void lguest_load_idt(const struct Xgt_desc_struct *desc) | |||
252 | * hypercall and use that repeatedly to load a new IDT. I don't think it | 252 | * hypercall and use that repeatedly to load a new IDT. I don't think it |
253 | * really matters, but wouldn't it be nice if they were the same? | 253 | * really matters, but wouldn't it be nice if they were the same? |
254 | */ | 254 | */ |
255 | static void lguest_load_gdt(const struct Xgt_desc_struct *desc) | 255 | static void lguest_load_gdt(const struct desc_ptr *desc) |
256 | { | 256 | { |
257 | BUG_ON((desc->size+1)/8 != GDT_ENTRIES); | 257 | BUG_ON((desc->size+1)/8 != GDT_ENTRIES); |
258 | hcall(LHCALL_LOAD_GDT, __pa(desc->address), GDT_ENTRIES, 0); | 258 | hcall(LHCALL_LOAD_GDT, __pa(desc->address), GDT_ENTRIES, 0); |