VirtualBox

Changeset 52767 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Sep 16, 2014 4:51:51 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96137
Message:

VMM/GIM: Get rid of separate fEnabled field, just use the provider to figure out whether it's enabled or not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GIMR0.cpp

    r51643 r52767  
    9090VMMR0_INT_DECL(int) GIMR0UpdateParavirtTsc(PVM pVM, uint64_t u64Offset)
    9191{
    92     if (!pVM->gim.s.fEnabled)
    93         return VERR_GIM_NOT_ENABLED;
    94 
    9592    switch (pVM->gim.s.enmProviderId)
    9693    {
    9794        case GIMPROVIDERID_HYPERV:
    9895            return GIMR0HvUpdateParavirtTsc(pVM, u64Offset);
     96
     97        case GIMPROVIDERID_NONE:
     98            return VERR_GIM_NOT_ENABLED;
    9999
    100100        default:
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