VirtualBox

Changeset 7977 in vbox


Ignore:
Timestamp:
Apr 15, 2008 11:17:08 AM (17 years ago)
Author:
vboxsync
Message:

Added CFGM key for enabling PAE (CPUM/CPUID/EnablePAE).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r7696 r7977  
    404404        else
    405405            break;
     406    }
     407
     408    /* Check if PAE was explicitely enabled by the user. */
     409    PCFGMNODE pNode = CFGMR3GetChildF(CFGMR3GetRoot(pVM), "CPUM/CPUID");
     410    if (pNode)
     411    {
     412        bool fEnable;
     413        int rc = CFGMR3QueryBool(pNode, "EnablePAE", &fEnable);
     414        if (VBOX_SUCCESS(rc) && fEnable)
     415            CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
    406416    }
    407417
  • trunk/src/VBox/VMM/HWACCM.cpp

    r7904 r7977  
    405405                pVM->hwaccm.s.vmx.fEnabled = true;
    406406                CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_SEP);
    407 #if 0 /* not yet */
    408                 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
    409 #endif
    410407                LogRel(("HWACCM: VMX enabled!\n"));
    411408            }
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