VirtualBox

Changeset 52671 in vbox


Ignore:
Timestamp:
Sep 10, 2014 11:04:48 AM (10 years ago)
Author:
vboxsync
Message:

VMM/GIM: Use the PDM interface to query the APIC timer freq.

File:
1 edited

Legend:

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

    r52440 r52671  
    139139
    140140        case MSR_GIM_HV_APIC_FREQ:
    141             /** @todo Fix this later! Get the information from DevApic. */
    142             *puValue = UINT32_C(1000000000); /* TMCLOCK_FREQ_VIRTUAL */
    143             return VINF_SUCCESS;
     141        {
     142            int rc = PDMApicGetTimerFreq(pVM, puValue);
     143            if (RT_FAILURE(rc))
     144                return VERR_CPUM_RAISE_GP_0;
     145            return VINF_SUCCESS;
     146        }
    144147
    145148        case MSR_GIM_HV_RESET:
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