VirtualBox

Changeset 48454 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 12, 2013 4:07:31 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: oops.

File:
1 edited

Legend:

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

    r48453 r48454  
    80148014         * CR0.
    80158015         */
    8016         uint32_t u32GuestCR0;
    80178016        uint32_t uSetCR0 = (uint32_t)(pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr0Fixed1);
    80188017        uint32_t uZapCR0 = (uint32_t)(pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr0Fixed1);
     
    80228021            uSetCR0 &= ~(X86_CR0_PE | X86_CR0_PG);
    80238022
     8023        uint32_t u32GuestCR0;
    80248024        rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR0, &u32GuestCR0);
    80258025        AssertRCBreak(rc);
    8026         HMVMX_CHECK_BREAK((u32Val & uSetCR0) == uSetCR0, VMX_IGS_CR0_FIXED1);
    8027         HMVMX_CHECK_BREAK(!(u32Val & ~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);
    80288028        if (   !fUnrestrictedGuest
    80298029            && (u32GuestCR0 & X86_CR0_PG)
     
    80368036         * CR4.
    80378037         */
    8038         uint32_t u32GuestCR4;
    80398038        uint64_t uSetCR4 = (pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr4Fixed1);
    80408039        uint64_t uZapCR4 = (pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr4Fixed1);
     8040
     8041        uint32_t u32GuestCR4;
    80418042        rc = VMXReadVmcs32(VMX_VMCS_GUEST_CR4, &u32GuestCR4);
    80428043        AssertRCBreak(rc);
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