diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2014-09-16 16:51:51 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2014-09-16 16:51:51 +0000 |
commit | a6d9a18e6453cf64e22f43c0234dff5a675823a9 (patch) | |
tree | 3ce6736889e9d800b4a14041a41541d15cf45121 /src/VBox/VMM/VMMAll/GIMAll.cpp | |
parent | 8846fa9f6c2443d9df892a9357ae8978e04f2d60 (diff) | |
download | VirtualBox-svn-a6d9a18e6453cf64e22f43c0234dff5a675823a9.tar.gz |
VMM/GIM: Get rid of separate fEnabled field, just use the provider to figure out whether it's enabled or not.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@52767 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMAll/GIMAll.cpp')
-rw-r--r-- | src/VBox/VMM/VMMAll/GIMAll.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/VBox/VMM/VMMAll/GIMAll.cpp b/src/VBox/VMM/VMMAll/GIMAll.cpp index 24e873202da..7f0e7f0c033 100644 --- a/src/VBox/VMM/VMMAll/GIMAll.cpp +++ b/src/VBox/VMM/VMMAll/GIMAll.cpp @@ -39,7 +39,7 @@ */ VMMDECL(bool) GIMIsEnabled(PVM pVM) { - return pVM->gim.s.fEnabled; + return pVM->gim.s.enmProviderId != GIMPROVIDERID_NONE; } @@ -115,9 +115,6 @@ VMM_INT_DECL(int) GIMHypercall(PVMCPU pVCpu, PCPUMCTX pCtx) */ VMM_INT_DECL(bool) GIMIsParavirtTscEnabled(PVM pVM) { - if (!pVM->gim.s.fEnabled) - return false; - switch (pVM->gim.s.enmProviderId) { case GIMPROVIDERID_HYPERV: |