README.md aktualisiert
This commit is contained in:
@@ -50,20 +50,6 @@ oid vmexit_passthrough_handler::handle_ldtr_tr_access(vcpu_t& vp) noexcept
|
||||
|
||||
case vmx::instruction_info_ldtr_tr_access_t::instruction_ltr:
|
||||
{
|
||||
//
|
||||
// After the segment selector is loaded in the task register,
|
||||
// the processor uses the segment selector to locate the segment
|
||||
// descriptor for the TSS in the global descriptor table(GDT).
|
||||
// It then loads the segment limit and base address for the TSS
|
||||
// from the segment descriptor into the task register. The task
|
||||
// pointed to by the task register is marked busy, but a switch
|
||||
// to the task does not occur.
|
||||
// (ref: Vol2A[(LTR-Load Task Register)])
|
||||
//
|
||||
// TL;DR:
|
||||
// LTR instruction sets busy bit in the TSS and we need to
|
||||
// emulate this behavior.
|
||||
//
|
||||
auto selector = segment_selector_t{ low_word };
|
||||
vp.guest_segment_selector(context_t::seg_tr, selector);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user