Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CR4[18] OSXSAVE in cr4_guest_host_mask #135

Open
wants to merge 1 commit into
base: mono
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deps/hypervisor/bfvmm/src/hve/arch/intel_x64/vcpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ vcpu::vcpu(
m_microcode_handler{this},
m_vpid_handler{this}
{
using namespace ::intel_x64::cr4::osxsave;
using namespace vmcs_n;
bfn::call_once(g_once_flag, setup);

Expand Down Expand Up @@ -197,7 +198,7 @@ vcpu::vcpu(
m_vpid_handler.enable();
m_nmi_handler.enable_exiting();
m_control_register_handler.enable_wrcr0_exiting(0);
m_control_register_handler.enable_wrcr4_exiting(0);
m_control_register_handler.enable_wrcr4_exiting(::intel_x64::cr4::osxsave::mask);
}

//==============================================================================
Expand Down
Loading