VirtualBox

Changeset 37803 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 6, 2011 2:45:27 PM (14 years ago)
Author:
vboxsync
Message:

GMM: Don't ignore the status code of the update loop. PGM: Initialize the handy pages correctly and retry the handy page allocation a little differently.

File:
1 edited

Legend:

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

    r37794 r37803  
    55
    66/*
    7  * Copyright (C) 2006-2010 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    11961196    pVM->pgm.s.offVM       = RT_OFFSETOF(VM, pgm.s);
    11971197    pVM->pgm.s.offVCpuPGM  = RT_OFFSETOF(VMCPU, pgm.s);
     1198
     1199    for (unsigned i = 0; i < RT_ELEMENTS(pVM->pgm.s.aHandyPages); i++)
     1200    {
     1201        pVM->pgm.s.aHandyPages[i].HCPhysGCPhys  = NIL_RTHCPHYS;
     1202        pVM->pgm.s.aHandyPages[i].idPage        = NIL_GMM_PAGEID;
     1203        pVM->pgm.s.aHandyPages[i].idSharedPage  = NIL_GMM_PAGEID;
     1204    }
     1205
     1206    for (unsigned i = 0; i < RT_ELEMENTS(pVM->pgm.s.aLargeHandyPage); i++)
     1207    {
     1208        pVM->pgm.s.aLargeHandyPage[i].HCPhysGCPhys  = NIL_RTHCPHYS;
     1209        pVM->pgm.s.aLargeHandyPage[i].idPage        = NIL_GMM_PAGEID;
     1210        pVM->pgm.s.aLargeHandyPage[i].idSharedPage  = NIL_GMM_PAGEID;
     1211    }
    11981212
    11991213    /* Init the per-CPU part. */
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