VirtualBox

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


Ignore:
Timestamp:
Sep 16, 2014 4:51:51 PM (11 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/VMMAll/GIMAll.cpp

    r52006 r52767  
    4040VMMDECL(bool) GIMIsEnabled(PVM pVM)
    4141{
    42     return pVM->gim.s.fEnabled;
     42    return pVM->gim.s.enmProviderId != GIMPROVIDERID_NONE;
    4343}
    4444
     
    116116VMM_INT_DECL(bool) GIMIsParavirtTscEnabled(PVM pVM)
    117117{
    118     if (!pVM->gim.s.fEnabled)
    119         return false;
    120 
    121118    switch (pVM->gim.s.enmProviderId)
    122119    {
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