VirtualBox

Changeset 20566 in vbox for trunk/src/VBox/VMM/VMM.cpp


Ignore:
Timestamp:
Jun 14, 2009 8:24:43 PM (15 years ago)
Author:
vboxsync
Message:

VMM.cpp: Fixed VBOX_STRICT_VMM_STACK bustage - was messing with the wrong pages :(. (debug and strict builds only)

File:
1 edited

Legend:

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

    r20545 r20566  
    234234
    235235#ifdef VBOX_STRICT_VMM_STACK
    236         rc = MMR3HyperAllocOnceNoRel(pVM, VMM_STACK_SIZE + PAGE_SIZE + PAGE_SIZE, PAGE_SIZE, MM_TAG_VMM, (void **)&pVCpu->vmm.s.pbEMTStackR3);
     236        rc = MMR3HyperAllocOnceNoRel(pVM, PAGE_SIZE + VMM_STACK_SIZE + PAGE_SIZE, PAGE_SIZE, MM_TAG_VMM, (void **)&pVCpu->vmm.s.pbEMTStackR3);
    237237#else
    238238        rc = MMR3HyperAllocOnceNoRel(pVM, VMM_STACK_SIZE, PAGE_SIZE, MM_TAG_VMM, (void **)&pVCpu->vmm.s.pbEMTStackR3);
     
    240240        if (RT_SUCCESS(rc))
    241241        {
     242#ifdef VBOX_STRICT_VMM_STACK
     243            pVCpu->vmm.s.pbEMTStackR3 += PAGE_SIZE;
     244#endif
    242245#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    243246            /* MMHyperR3ToR0 returns R3 when not doing hardware assisted virtualization. */
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