VirtualBox

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

File:
1 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;
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