VirtualBox

Changeset 20032 in vbox


Ignore:
Timestamp:
May 26, 2009 12:27:55 PM (16 years ago)
Author:
vboxsync
Message:

Expose X86_CPUID_AMD_FEATURE_ECX_CR8L to all guests.

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

Legend:

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

    r19724 r20032  
    370370                                       //| X86_CPUID_AMD_FEATURE_ECX_SVM    - not virtualized.
    371371                                       //| X86_CPUID_AMD_FEATURE_ECX_EXT_APIC
    372                                        //| X86_CPUID_AMD_FEATURE_ECX_CR8L
     372                                       | X86_CPUID_AMD_FEATURE_ECX_CR8L         /* expose lock mov cr0 = mov cr8 hack for guests that can use this feature to access the TPR. */
    373373                                       //| X86_CPUID_AMD_FEATURE_ECX_ABM
    374374                                       //| X86_CPUID_AMD_FEATURE_ECX_SSE4A
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r20026 r20032  
    939939    }
    940940
    941     /* TPR caching using CR8 is only available in 64 bits mode */
    942     /* Note the 32 bits exception for AMD (X86_CPUID_AMD_FEATURE_ECX_CR8L), but that appears missing in Intel CPUs */
     941    /* TPR caching using CR8 is only available in 64 bits mode or with 32 bits guests when X86_CPUID_AMD_FEATURE_ECX_CR8L is supported. */
    943942    /* Note: we can't do this in LoadGuestState as PDMApicGetTPR can jump back to ring 3 (lock)!!!!!!!! */
    944     if (CPUMIsGuestInLongModeEx(pCtx))
     943    if (pVM->hwaccm.s.fHasIoApic)
    945944    {
    946945        bool fPending;
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