VirtualBox

Ignore:
Timestamp:
May 21, 2013 10:25:57 AM (12 years ago)
Author:
vboxsync
Message:

VMM/HM: CR0 and CR4 masks can be 32-bit. Plus hungarian naming fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r46191 r46192  
    21322132    Assert(!(uSelGS & X86_SEL_RPL)); Assert(!(uSelGS & X86_SEL_LDT));
    21332133    Assert(!(uSelTR & X86_SEL_RPL)); Assert(!(uSelTR & X86_SEL_LDT));
    2134     Assert(uSelCS != 0);
    2135     Assert(uSelTR != 0);
     2134    Assert(uSelCS);
     2135    Assert(uSelTR);
    21362136
    21372137    /* Assertion is right but we would not have updated u32ExitCtls yet. */
     
    28802880
    28812881        /* 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;
    28832883        rc = VMXWriteVmcs32(VMX_VMCS_CTRL_CR0_MASK, u32CR0Mask);
    28842884        AssertRCReturn(rc, rc);
     
    30613061                    | X86_CR4_PSE
    30623062                    | X86_CR4_VMXE;
    3063         pVCpu->hm.s.vmx.cr4_mask = u32CR4Mask;
     3063        pVCpu->hm.s.vmx.u32CR4Mask = u32CR4Mask;
    30643064        rc = VMXWriteVmcs32(VMX_VMCS_CTRL_CR4_MASK, u32CR4Mask);
    30653065        AssertRCReturn(rc, rc);
     
    47754775        AssertRCReturn(rc, rc);
    47764776
    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);
    47784778        CPUMSetGuestCR0(pVCpu, uVal);
    47794779        pVCpu->hm.s.vmx.fUpdatedGuestState |= HMVMX_UPDATED_GUEST_CR0;
     
    48064806        AssertRCReturn(rc, rc);
    48074807
    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);
    48094809        CPUMSetGuestCR4(pVCpu, uVal);
    48104810        pVCpu->hm.s.vmx.fUpdatedGuestState |= HMVMX_UPDATED_GUEST_CR4;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette