VirtualBox

Changeset 44027 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 4, 2012 7:17:49 AM (12 years ago)
Author:
vboxsync
Message:

VMM: allow to disable MONITOR by setting the CFG key "VBoxInternal/CPUM/MONITOR" to 0

File:
1 edited

Legend:

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

    r43872 r44027  
    859859    bool fCmpXchg16b;
    860860    rc = CFGMR3QueryBoolDef(pCpumCfg, "CMPXCHG16B", &fCmpXchg16b, false); AssertRCReturn(rc, rc);
     861   
     862    bool fMonitor;
     863    rc = CFGMR3QueryBoolDef(pCpumCfg, "MONITOR", &fMonitor, true); AssertRCReturn(rc, rc);
    861864
    862865    /* Cpuid 1 & 0x80000001:
     
    900903                                  | X86_CPUID_FEATURE_ECX_SSE3
    901904                                  /* Can't properly emulate monitor & mwait with guest SMP; force the guest to use hlt for idling VCPUs. */
    902                                   | ((pVM->cCpus == 1) ? X86_CPUID_FEATURE_ECX_MONITOR : 0)
     905                                  | ((fMonitor && pVM->cCpus == 1) ? X86_CPUID_FEATURE_ECX_MONITOR : 0)
    903906                                  //| X86_CPUID_FEATURE_ECX_CPLDS - no CPL qualified debug store.
    904907                                  //| X86_CPUID_FEATURE_ECX_VMX   - not virtualized.
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