From a6d9a18e6453cf64e22f43c0234dff5a675823a9 Mon Sep 17 00:00:00 2001 From: vboxsync Date: Tue, 16 Sep 2014 16:51:51 +0000 Subject: 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 --- src/VBox/VMM/VMMAll/GIMAll.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/VBox/VMM/VMMAll/GIMAll.cpp') 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: -- cgit v1.2.1