>> Now I _expect_ to see a new value in cs, but _find_
>> still the old value 
>
>What does that mean? How did you determine that?
I built a GDT and lgdt'ed it. Next instruction breaks
vm, in the vm_debug_exception () output I see the value
of cs. This means while emulating lgdt should cs be set
to a value different from 0xb, because this GDT slot
is used and free GDT slots are at the end of new GDT.
cs should be significant higher...

>Does the ljmp itself cause the GPF?  If so, the cs in
>the exception frame is still the old one ...
This is what I said. But after lgdt it _should not_ be
the old one, no? Thats the point confusing me...

jens

Reply via email to