VirtualBox

Changeset 24753 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 18, 2009 11:22:09 AM (15 years ago)
Author:
vboxsync
Message:

VMM: simple MSR_IA32_PERF_STATUS implementation, watch for regression (yet unlikely, as was completely broken before)

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

Legend:

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

    r24728 r24753  
    787787            break;
    788788
     789        case MSR_IA32_PERF_STATUS:
     790            /** @todo: could really be not exactly correct, maybe use host's values */
     791            u64 =     (1000ULL                /* TSC increment by tick */)
     792                    | (((uint64_t)4ULL) << 40 /* CPU multiplier */       );
     793            break;
     794
    789795        /* fs & gs base skipped on purpose as the current context might not be up-to-date. */
    790796        default:
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r22493 r24753  
    28132813        return "Unsupported MSR_IA32_PERFEVTSEL1";
    28142814    case MSR_IA32_PERF_STATUS:
    2815         return "Unsupported MSR_IA32_PERF_STATUS";
     2815        return "MSR_IA32_PERF_STATUS";
    28162816    case MSR_IA32_PERF_CTL:
    28172817        return "Unsupported MSR_IA32_PERF_CTL";
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