Changeset 46192 in vbox for trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
- Timestamp:
- May 21, 2013 10:25:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r46191 r46192 2132 2132 Assert(!(uSelGS & X86_SEL_RPL)); Assert(!(uSelGS & X86_SEL_LDT)); 2133 2133 Assert(!(uSelTR & X86_SEL_RPL)); Assert(!(uSelTR & X86_SEL_LDT)); 2134 Assert(uSelCS != 0);2135 Assert(uSelTR != 0);2134 Assert(uSelCS); 2135 Assert(uSelTR); 2136 2136 2137 2137 /* Assertion is right but we would not have updated u32ExitCtls yet. */ … … 2880 2880 2881 2881 /* Write the CR0 mask into the VMCS and update the VCPU's copy of the current CR0 mask. */ 2882 pVCpu->hm.s.vmx. cr0_mask = u32CR0Mask;2882 pVCpu->hm.s.vmx.u32CR0Mask = u32CR0Mask; 2883 2883 rc = VMXWriteVmcs32(VMX_VMCS_CTRL_CR0_MASK, u32CR0Mask); 2884 2884 AssertRCReturn(rc, rc); … … 3061 3061 | X86_CR4_PSE 3062 3062 | X86_CR4_VMXE; 3063 pVCpu->hm.s.vmx. cr4_mask = u32CR4Mask;3063 pVCpu->hm.s.vmx.u32CR4Mask = u32CR4Mask; 3064 3064 rc = VMXWriteVmcs32(VMX_VMCS_CTRL_CR4_MASK, u32CR4Mask); 3065 3065 AssertRCReturn(rc, rc); … … 4775 4775 AssertRCReturn(rc, rc); 4776 4776 4777 uVal = (uShadow & pVCpu->hm.s.vmx. cr0_mask) | (uVal & ~pVCpu->hm.s.vmx.cr0_mask);4777 uVal = (uShadow & pVCpu->hm.s.vmx.u32CR0Mask) | (uVal & ~pVCpu->hm.s.vmx.u32CR0Mask); 4778 4778 CPUMSetGuestCR0(pVCpu, uVal); 4779 4779 pVCpu->hm.s.vmx.fUpdatedGuestState |= HMVMX_UPDATED_GUEST_CR0; … … 4806 4806 AssertRCReturn(rc, rc); 4807 4807 4808 uVal = (uShadow & pVCpu->hm.s.vmx. cr4_mask) | (uVal & ~pVCpu->hm.s.vmx.cr4_mask);4808 uVal = (uShadow & pVCpu->hm.s.vmx.u32CR4Mask) | (uVal & ~pVCpu->hm.s.vmx.u32CR4Mask); 4809 4809 CPUMSetGuestCR4(pVCpu, uVal); 4810 4810 pVCpu->hm.s.vmx.fUpdatedGuestState |= HMVMX_UPDATED_GUEST_CR4;
Note:
See TracChangeset
for help on using the changeset viewer.