diff --git a/README.md b/README.md index 92d1bc1..f2ba93a 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,12 @@ oid vmexit_passthrough_handler::handle_ldtr_tr_access(vcpu_t& vp) noexcept cr3_guard _{ vp.guest_cr3() }; + // notice how regardless of the executed instruction, even for memory destinations, it only cares about the lower bits, i.e u16 auto& low_word = instruction_info.access_type == vmx::instruction_info_t::access_memory ? *reinterpret_cast(vp.exit_instruction_info_guest_va()) // instruction_info.access_type == vmx::instruction_info::access_register - : reinterpret_cast(vp.context().gp_register[instruction_info.register_1]); // notice how it only cares about the lower bits, i.e u16 + : reinterpret_cast(vp.context().gp_register[instruction_info.register_1]); switch (instruction_info.instruction) {