VirtualBox

Changeset 106628 in vbox


Ignore:
Timestamp:
Oct 23, 2024 5:28:44 PM (5 weeks ago)
Author:
vboxsync
Message:

VMM/CPUMR0: bugref:10794 Fix logging of IA32_ARCH_CAPABILITIES MSR in r165448 (which assumed fArchVal wasn't changed to guest value).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r106609 r106628  
    376376            {
    377377                /* Host: */
    378                 uint64_t fArchVal = ASMRdMsr(MSR_IA32_ARCH_CAPABILITIES);
     378                uint64_t const fHostArchVal = ASMRdMsr(MSR_IA32_ARCH_CAPABILITIES);
     379                uint64_t fArchVal = fHostArchVal;
    379380                pVM->cpum.s.HostFeatures.fArchRdclNo             = RT_BOOL(fArchVal & MSR_IA32_ARCH_CAP_F_RDCL_NO);
    380381                pVM->cpum.s.HostFeatures.fArchIbrsAll            = RT_BOOL(fArchVal & MSR_IA32_ARCH_CAP_F_IBRS_ALL);
     
    394395                pVM->cpum.s.GuestFeatures.fArchVmmNeedNotFlushL1d = RT_BOOL(fArchVal & MSR_IA32_ARCH_CAP_F_VMM_NEED_NOT_FLUSH_L1D);
    395396                pVM->cpum.s.GuestFeatures.fArchMdsNo              = RT_BOOL(fArchVal & MSR_IA32_ARCH_CAP_F_MDS_NO);
    396                 LogRel(("CPUM: Host IA32_ARCH_CAPABILITIES %#RX64\n", fArchVal));
     397                LogRel(("CPUM: IA32_ARCH_CAPABILITIES (Host=%#RX64 Guest=%#RX64)\n", fHostArchVal, fArchVal));
    397398            }
    398399            else
    399400            {
    400401                pVM->cpum.s.HostFeatures.fArchCap = 0;
    401                 LogRel(("CPUM: Host IA32_ARCH_CAPABILITIES unsupported\n"));
     402                LogRel(("CPUM: IA32_ARCH_CAPABILITIES unsupported\n"));
    402403            }
    403404        }
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