Changeset 46192 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- May 21, 2013 10:25:57 AM (12 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 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; -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r45965 r46192 370 370 ASMMemZeroPage(pVCpu->hm.s.vmx.pvVmcs); 371 371 372 pVCpu->hm.s.vmx. cr0_mask = 0;373 pVCpu->hm.s.vmx. cr4_mask = 0;372 pVCpu->hm.s.vmx.u32CR0Mask = 0; 373 pVCpu->hm.s.vmx.u32CR4Mask = 0; 374 374 375 375 /* Allocate one page for the virtual APIC page for TPR caching. */ … … 2119 2119 val |= X86_CR0_TS | X86_CR0_ET | X86_CR0_MP; 2120 2120 2121 pVCpu->hm.s.vmx. cr0_mask = val;2121 pVCpu->hm.s.vmx.u32CR0Mask = val; 2122 2122 2123 2123 rc |= VMXWriteVmcs(VMX_VMCS_CTRL_CR0_MASK, val); … … 2192 2192 | X86_CR4_PSE 2193 2193 | X86_CR4_VMXE; 2194 pVCpu->hm.s.vmx. cr4_mask = val;2194 pVCpu->hm.s.vmx.u32CR4Mask = val; 2195 2195 2196 2196 rc |= VMXWriteVmcs(VMX_VMCS_CTRL_CR4_MASK, val); … … 2467 2467 VMXReadCachedVmcs(VMX_VMCS_CTRL_CR0_READ_SHADOW, &valShadow); 2468 2468 VMXReadCachedVmcs(VMX_VMCS_GUEST_CR0, &val); 2469 val = (valShadow & pVCpu->hm.s.vmx. cr0_mask) | (val & ~pVCpu->hm.s.vmx.cr0_mask);2469 val = (valShadow & pVCpu->hm.s.vmx.u32CR0Mask) | (val & ~pVCpu->hm.s.vmx.u32CR0Mask); 2470 2470 CPUMSetGuestCR0(pVCpu, val); 2471 2471 2472 2472 VMXReadCachedVmcs(VMX_VMCS_CTRL_CR4_READ_SHADOW, &valShadow); 2473 2473 VMXReadCachedVmcs(VMX_VMCS_GUEST_CR4, &val); 2474 val = (valShadow & pVCpu->hm.s.vmx. cr4_mask) | (val & ~pVCpu->hm.s.vmx.cr4_mask);2474 val = (valShadow & pVCpu->hm.s.vmx.u32CR4Mask) | (val & ~pVCpu->hm.s.vmx.u32CR4Mask); 2475 2475 CPUMSetGuestCR4(pVCpu, val); 2476 2476
Note:
See TracChangeset
for help on using the changeset viewer.