Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
extern void lguest_iret(void);
extern void lguest_init(void);
extern void lguest_iret(void);
extern void lguest_init(void);
/* Manually saved part. */
unsigned long eax, ebx, ecx, edx;
unsigned long esi, edi, ebp;
/* Manually saved part. */
unsigned long eax, ebx, ecx, edx;
unsigned long esi, edi, ebp;
};
/* This is a guest-specific page (mapped ro) into the guest. */
};
/* This is a guest-specific page (mapped ro) into the guest. */
-struct lguest_ro_state
-{
+struct lguest_ro_state {
/* Host information we need to restore when we switch back. */
u32 host_cr3;
struct desc_ptr host_idt_desc;
/* Host information we need to restore when we switch back. */
u32 host_cr3;
struct desc_ptr host_idt_desc;
struct desc_struct guest_gdt[GDT_ENTRIES];
};
struct desc_struct guest_gdt[GDT_ENTRIES];
};
/* The GDT entries copied into lguest_ro_state when running. */
struct desc_struct gdt[GDT_ENTRIES];
/* The GDT entries copied into lguest_ro_state when running. */
struct desc_struct gdt[GDT_ENTRIES];
cr0 = read_cr0();
if (!(cr0 & 8))
cr0 = read_cr0();
if (!(cr0 & 8))
}
/* Full 4G segment descriptors, suitable for CS and DS. */
}
/* Full 4G segment descriptors, suitable for CS and DS. */