VirtualBox

Changeset 49355 in vbox for trunk


Ignore:
Timestamp:
Nov 1, 2013 8:25:19 AM (11 years ago)
Author:
vboxsync
Message:

VMM/CPUM: MSR_P4_LASTBRANCH_* is not Intel-specific

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r49354 r49355  
    11131113         * well, at least bulldozer have them.  Windows 7 is querying them.
    11141114         * XP has been observed querying MSR_IA32_MC0_CTL.
     1115         * XP64 has been observed querying MSR_P4_LASTBRANCH_0 (also on AMD).
    11151116         */
    11161117        case MSR_IA32_BIOS_SIGN_ID:         /* fam/mod >= 6_01 */
     
    11201121        case MSR_IA32_MC0_CTL:
    11211122        case MSR_IA32_MC0_STATUS:
     1123        case MSR_P4_LASTBRANCH_0:
     1124        case MSR_P4_LASTBRANCH_1:
     1125        case MSR_P4_LASTBRANCH_2:
     1126        case MSR_P4_LASTBRANCH_3:
    11221127            *puValue = 0;
    11231128            break;
     
    11301135        case MSR_P5_MC_TYPE:
    11311136        case MSR_P4_LASTBRANCH_TOS: /** @todo Are these branch regs still here on more recent CPUs? The documentation doesn't mention them for several archs. */
    1132         case MSR_P4_LASTBRANCH_0:
    1133         case MSR_P4_LASTBRANCH_1:
    1134         case MSR_P4_LASTBRANCH_2:
    1135         case MSR_P4_LASTBRANCH_3:
    11361137        case MSR_IA32_PERFEVTSEL0:          /* NetWare 6.5 wants the these four. (Bet on AMD as well.) */
    11371138        case MSR_IA32_PERFEVTSEL1:
     
    12891290VMMDECL(int) CPUMSetGuestMsr(PVMCPU pVCpu, uint32_t idMsr, uint64_t uValue)
    12901291{
    1291     LogFlow(("CPUSetGuestMsr: %#x <- %#llx\n", idMsr, uValue));
     1292    LogFlow(("CPUMSetGuestMsr: %#x <- %#llx\n", idMsr, uValue));
    12921293
    12931294    /*
     
    14841485        case MSR_IA32_DEBUGCTL:
    14851486            /** @todo virtualize DEBUGCTL and relatives */
    1486             break;
    1487 
    1488         case 0x1db:  /* quick fix for winxp64. */
    14891487            break;
    14901488
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