VirtualBox

Changeset 27331 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 12, 2010 2:12:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58757
Message:

MSR_IA32_MISC_ENABLE test code

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

Legend:

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

    r26993 r27331  
    800800            break;
    801801
     802        case MSR_IA32_MISC_ENABLE:
     803#if 0
     804            /* Needs to be tested more before enabling. */
     805            u64 = pVCpu->cpum.s.GuestMsr.msr.miscEnable;
     806#else
     807            u64 = 0;
     808#endif
     809            break;
     810
    802811        /* fs & gs base skipped on purpose as the current context might not be up-to-date. */
    803812        default:
     
    815824        case MSR_K8_TSC_AUX:
    816825            pVCpu->cpum.s.GuestMsr.msr.tscAux = valMsr;
     826            break;
     827
     828        case MSR_IA32_MISC_ENABLE:
     829            pVCpu->cpum.s.GuestMsr.msr.miscEnable = valMsr;
    817830            break;
    818831
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r27320 r27331  
    29862986    case MSR_IA32_PERF_STATUS:
    29872987    case MSR_IA32_PLATFORM_INFO:
     2988    case MSR_IA32_MISC_ENABLE:
    29882989        val = CPUMGetGuestMsr(pVCpu, pRegFrame->ecx);
    29892990        break;
     
    31563157
    31573158    case MSR_K8_TSC_AUX:
    3158         CPUMSetGuestMsr(pVCpu, MSR_K8_TSC_AUX, val);
     3159    case MSR_IA32_MISC_ENABLE:
     3160        CPUMSetGuestMsr(pVCpu, pRegFrame->ecx, val);
    31593161        break;
    31603162
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette