You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 3.24.6.7
// try to trigger the least amount of CR3 exits as possible
if (cpu->cached.vmx_misc.cr3_target_count >= 1)
{
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_COUNT, 1);
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_VALUE_0, ghv.system_cr3.flags);
}
else
{
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_COUNT, 0);
}
The text was updated successfully, but these errors were encountered:
If not doing this, on some cpu vm_launch would failed with VMCS_VM_INSTRUCTION_ERROR = 7, which is invalid vm execution control fileds.
https://github.com/jonomango/hv/blob/main/hv/vmcs.cpp#L99
// 3.24.6.7
// try to trigger the least amount of CR3 exits as possible
if (cpu->cached.vmx_misc.cr3_target_count >= 1)
{
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_COUNT, 1);
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_VALUE_0, ghv.system_cr3.flags);
}
else
{
vmx_vmwrite(VMCS_CTRL_CR3_TARGET_COUNT, 0);
}
The text was updated successfully, but these errors were encountered: