VirtualBox

Changeset 72462 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jun 6, 2018 2:24:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122946
Message:

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

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/GIMHv.cpp

    r72460 r72462  
    2828#include <VBox/vmm/hm.h>
    2929#include <VBox/vmm/pdmapi.h>
     30#include <VBox/vmm/em.h>
    3031#include "GIMInternal.h"
    3132#include <VBox/vmm/vm.h>
     
    10441045        if (pVM->gim.s.u.Hv.u64GuestOsIdMsr)
    10451046            for (VMCPUID i = 0; i < pVM->cCpus; i++)
    1046                 VMMHypercallsEnable(&pVM->aCpus[i]);
     1047                EMSetHypercallInstructionsEnabled(&pVM->aCpus[i], true);
    10471048        else
    10481049            for (VMCPUID i = 0; i < pVM->cCpus; i++)
    1049                 VMMHypercallsDisable(&pVM->aCpus[i]);
     1050                EMSetHypercallInstructionsEnabled(&pVM->aCpus[i], false);
    10501051    }
    10511052    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR3/GIMKvm.cpp

    r71800 r72462  
    2626#include <VBox/vmm/pdmapi.h>
    2727#include <VBox/vmm/ssm.h>
     28#include <VBox/vmm/em.h>
    2829#include "GIMInternal.h"
    2930#include <VBox/vmm/vm.h>
     
    159160     */
    160161    for (VMCPUID i = 0; i < pVM->cCpus; i++)
    161         VMMHypercallsEnable(&pVM->aCpus[i]);
     162        EMSetHypercallInstructionsEnabled(&pVM->aCpus[i], true);
    162163
    163164    if (ASMIsAmdCpu())
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