/* This is the exactly like the IDT code.  */
static void lguest_load_gdt(const struct desc_ptr *desc)
/* This is the exactly like the IDT code.  */
static void lguest_load_gdt(const struct desc_ptr *desc)
{
	unsigned int i;
	struct desc_struct *gdt = (void *)desc->address;
	for (i = 0; i < (desc->size+1)/8; i++)
		kvm_hypercall3(LHCALL_LOAD_GDT_ENTRY, i, gdt[i].a, gdt[i].b);
}