what's behind the lgdt
Posted: Fri Sep 26, 2014 1:40 am
hi, i have a question about lgdt when initialize the VMCS, intel-vt structure.
in my code, i have to switch the gdt when my system enter the protect mode.
if i use lgdt switch GDT directly, the checking for VMCS will fail. the new GDT is the same as the old one, except the base address.
but if i rewrite the cs, es... after switch the GDT, the VMCS is fine.
what's the difference between them?
in my code, i have to switch the gdt when my system enter the protect mode.
if i use lgdt switch GDT directly, the checking for VMCS will fail. the new GDT is the same as the old one, except the base address.
but if i rewrite the cs, es... after switch the GDT, the VMCS is fine.
what's the difference between them?