diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-06-06 14:24:04 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-06-06 14:24:04 +0000 |
commit | ab73b54b012603800ff219dd802f5fee9b654024 (patch) | |
tree | 914ffd2f8ebf2e923890e75f881987cb2c38ead3 /src/VBox/VMM/VMMR3/GIMKvm.cpp | |
parent | f3d2ce674111d61a25779fc9dccc182839a155c5 (diff) | |
download | VirtualBox-svn-ab73b54b012603800ff219dd802f5fee9b654024.tar.gz |
EM,IEM,HM: Consolidated VMMHypercallsDisable/VMMHypercallsEnable into EMSetHypercallInstructionsEnabled and made the information available thru EMAreHypercallInstructionsEnabled(). Adjusted the vmmcall implementation so it works without HM. bugref:9044
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@72462 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMR3/GIMKvm.cpp')
-rw-r--r-- | src/VBox/VMM/VMMR3/GIMKvm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/VBox/VMM/VMMR3/GIMKvm.cpp b/src/VBox/VMM/VMMR3/GIMKvm.cpp index 559919cc684..84ed66e85f8 100644 --- a/src/VBox/VMM/VMMR3/GIMKvm.cpp +++ b/src/VBox/VMM/VMMR3/GIMKvm.cpp @@ -25,6 +25,7 @@ #include <VBox/vmm/hm.h> #include <VBox/vmm/pdmapi.h> #include <VBox/vmm/ssm.h> +#include <VBox/vmm/em.h> #include "GIMInternal.h" #include <VBox/vmm/vm.h> @@ -158,7 +159,7 @@ VMMR3_INT_DECL(int) gimR3KvmInit(PVM pVM) * Setup hypercall and #UD handling. */ for (VMCPUID i = 0; i < pVM->cCpus; i++) - VMMHypercallsEnable(&pVM->aCpus[i]); + EMSetHypercallInstructionsEnabled(&pVM->aCpus[i], true); if (ASMIsAmdCpu()) { |