VirtualBox

Changeset 19712 in vbox


Ignore:
Timestamp:
May 15, 2009 7:59:32 AM (16 years ago)
Author:
vboxsync
Message:

Can't properly emulate monitor & mwait with guest SMP; force the guest to use hlt for idling VCPUs.

File:
1 edited

Legend:

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

    r19639 r19712  
    318318    pCPUM->aGuestCpuIdStd[1].ecx      &= 0
    319319                                       | X86_CPUID_FEATURE_ECX_SSE3
    320                                        | X86_CPUID_FEATURE_ECX_MONITOR
    321320                                       //| X86_CPUID_FEATURE_ECX_CPLDS - no CPL qualified debug store.
    322321                                       //| X86_CPUID_FEATURE_ECX_VMX   - not virtualized.
     
    333332                                       //| X86_CPUID_FEATURE_ECX_POPCOUNT
    334333                                       | 0;
     334
     335    /* Can't properly emulate monitor & mwait with guest SMP; force the guest to use hlt for idling VCPUs. */
     336    if (pVM->cCPUs == 1)
     337        pCPUM->aGuestCpuIdStd[1].ecx |= X86_CPUID_FEATURE_ECX_MONITOR;
    335338
    336339    /* ASSUMES that this is ALWAYS the AMD define feature set if present. */
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