Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
BUG: Shifting wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jan 22, 2024
1 parent d4f6ee3 commit 1e3639f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypervisor/src/intel/vmcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl Vmcs {
};

vmwrite(vmcs::control::MSR_BITMAPS_ADDR_FULL, PhysicalAddress::pa_from_va(shared_data.msr_bitmap.as_ref() as *const _ as _));
vmwrite(vmcs::control::EXCEPTION_BITMAP, 1u64 >> ExceptionInterrupt::Breakpoint as u64);
vmwrite(vmcs::control::EXCEPTION_BITMAP, 1u64 << (ExceptionInterrupt::Breakpoint as u32));

vmwrite(vmcs::control::EPTP_FULL, shared_data.primary_eptp);
vmwrite(vmcs::control::VPID, VPID_TAG);
Expand Down

0 comments on commit 1e3639f

Please sign in to comment.