VirtualBox

Changeset 42816 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 15, 2012 4:34:59 AM (12 years ago)
Author:
vboxsync
Message:

VMM/HWVMXR0: paranoia.

File:
1 edited

Legend:

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

    r42671 r42816  
    302302        pVCpu->hwaccm.s.vmx.pGuestMSR     = (uint8_t *)RTR0MemObjAddress(pVCpu->hwaccm.s.vmx.pMemObjGuestMSR);
    303303        pVCpu->hwaccm.s.vmx.pGuestMSRPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.vmx.pMemObjGuestMSR, 0);
     304        Assert(!(pVCpu->hwaccm.s.vmx.pGuestMSRPhys & 0xf));
    304305        memset(pVCpu->hwaccm.s.vmx.pGuestMSR, 0, PAGE_SIZE);
    305306
     
    312313        pVCpu->hwaccm.s.vmx.pHostMSR     = (uint8_t *)RTR0MemObjAddress(pVCpu->hwaccm.s.vmx.pMemObjHostMSR);
    313314        pVCpu->hwaccm.s.vmx.pHostMSRPhys = RTR0MemObjGetPagePhysAddr(pVCpu->hwaccm.s.vmx.pMemObjHostMSR, 0);
     315        Assert(!(pVCpu->hwaccm.s.vmx.pHostMSRPhys & 0xf));
    314316        memset(pVCpu->hwaccm.s.vmx.pHostMSR, 0, PAGE_SIZE);
    315317#endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */
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