Changeset 48454 in vbox for trunk/src/VBox
- Timestamp:
- Sep 12, 2013 4:07:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r48453 r48454 8014 8014 * CR0. 8015 8015 */ 8016 uint32_t u32GuestCR0;8017 8016 uint32_t uSetCR0 = (uint32_t)(pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr0Fixed1); 8018 8017 uint32_t uZapCR0 = (uint32_t)(pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr0Fixed1); … … 8022 8021 uSetCR0 &= ~(X86_CR0_PE | X86_CR0_PG); 8023 8022 8023 uint32_t u32GuestCR0; 8024 8024 rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0, &u32GuestCR0); 8025 8025 AssertRCBreak(rc); 8026 HMVMX_CHECK_BREAK((u32 Val& uSetCR0) == uSetCR0, VMX_IGS_CR0_FIXED1);8027 HMVMX_CHECK_BREAK(!(u32 Val& ~uZapCR0), VMX_IGS_CR0_FIXED0);8026 HMVMX_CHECK_BREAK((u32GuestCR0 & uSetCR0) == uSetCR0, VMX_IGS_CR0_FIXED1); 8027 HMVMX_CHECK_BREAK(!(u32GuestCR0 & ~uZapCR0), VMX_IGS_CR0_FIXED0); 8028 8028 if ( !fUnrestrictedGuest 8029 8029 && (u32GuestCR0 & X86_CR0_PG) … … 8036 8036 * CR4. 8037 8037 */ 8038 uint32_t u32GuestCR4;8039 8038 uint64_t uSetCR4 = (pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr4Fixed1); 8040 8039 uint64_t uZapCR4 = (pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr4Fixed1); 8040 8041 uint32_t u32GuestCR4; 8041 8042 rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR4, &u32GuestCR4); 8042 8043 AssertRCBreak(rc);
Note:
See TracChangeset
for help on using the changeset viewer.