VirtualBox

Changeset 453 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 30, 2007 11:36:58 PM (18 years ago)
Author:
vboxsync
Message:

AMD64: Check CFGM option PATMEnabled before enabling PATM.

File:
1 edited

Legend:

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

    r367 r453  
    3737#include <VBox/pdm.h>
    3838#include <VBox/trpm.h>
     39#include <VBox/cfgm.h>
    3940#include <VBox/param.h>
    4041#include <VBox/selm.h>
     
    147148    pVM->patm.s.PatchLookupTreeGC = MMHyperHC2GC(pVM, pVM->patm.s.PatchLookupTreeHC);
    148149
     150#ifdef __AMD64__ /* see patmReinit(). */
     151    /* Check CFGM option. */
     152    rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "PATMEnabled", &pVM->fPATMEnabled);
     153    if (VBOX_FAILURE(rc))
     154# ifdef PATM_DISABLE_ALL
     155        pVM->fPATMEnabled = false;
     156# else
     157        pVM->fPATMEnabled = true;
     158# endif
     159#endif
     160
    149161    rc = patmReinit(pVM);
    150162    AssertRC(rc);
     
    297309    pVM->patm.s.offVM = RT_OFFSETOF(VM, patm);
    298310
     311#ifndef __AMD64__ /* would be nice if this was changed everywhere. was driving me crazy on AMD64. */
    299312#ifndef PATM_DISABLE_ALL
    300313    pVM->fPATMEnabled = true;
     314#endif
    301315#endif
    302316
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