VirtualBox

Changeset 47996 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 22, 2013 3:09:32 PM (11 years ago)
Author:
vboxsync
Message:

More MSRs fixes on AMD64. MSR_K8_NB_CFG is for recent linux kernels (64-bit), and the MSR_IA32_BIOS_SIGN_ID is for windows 7.

File:
1 edited

Legend:

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

    r47988 r47996  
    10911091            /* no break */
    10921092#endif
     1093        /*
     1094         * The BIOS_SIGN_ID MSR exists on AMD64 as well, at least bulldozer
     1095         * have it. Windows 7 is querying it. Just fake it.
     1096         */
     1097        case MSR_IA32_BIOS_SIGN_ID:         /* fam/mod >= 6_01 */
     1098            *puValue = 0;
     1099            break;
     1100
    10931101
    10941102        /*
     
    10961104         */
    10971105        case MSR_IA32_PLATFORM_ID:          /* fam/mod >= 6_01 */
    1098         case MSR_IA32_BIOS_SIGN_ID:         /* fam/mod >= 6_01 */
    10991106        /*case MSR_IA32_BIOS_UPDT_TRIG: - write-only? */
    11001107        case MSR_IA32_MCP_CAP:              /* fam/mod >= 6_01 */
     
    11301137        case MSR_K8_SYSCFG:
    11311138        case MSR_K8_INT_PENDING:
     1139        case MSR_K8_NB_CFG:             /* (All known values are 0 on reset.) */
    11321140            *puValue = 0;
    11331141            if (CPUMGetGuestCpuVendor(pVCpu->CTX_SUFF(pVM)) != CPUMCPUVENDOR_AMD)
     
    13871395        case MSR_K8_SYSCFG:      /** @todo can be written, but we ignore that for now. */
    13881396        case MSR_K8_INT_PENDING: /** @todo can be written, but we ignore that for now. */
     1397        case MSR_K8_NB_CFG:      /** @todo can be written; the apicid swapping might be used and would need saving, but probably unnecessary. */
    13891398            if (CPUMGetGuestCpuVendor(pVCpu->CTX_SUFF(pVM)) != CPUMCPUVENDOR_AMD)
    13901399            {
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