summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMAll/GIMAll.cpp
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2014-09-16 16:51:51 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2014-09-16 16:51:51 +0000
commita6d9a18e6453cf64e22f43c0234dff5a675823a9 (patch)
tree3ce6736889e9d800b4a14041a41541d15cf45121 /src/VBox/VMM/VMMAll/GIMAll.cpp
parent8846fa9f6c2443d9df892a9357ae8978e04f2d60 (diff)
downloadVirtualBox-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.cpp5
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: