VirtualBox

Ignore:
Timestamp:
Aug 12, 2019 10:57:57 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132689
Message:

VMM: Introducing PVMCC and PGVMCC for VMMAll code. bugref:9217

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAll.cpp

    r76553 r80239  
    2323#include <VBox/vmm/nem.h>
    2424#include "NEMInternal.h"
    25 #include <VBox/vmm/vm.h>
     25#include <VBox/vmm/vmcc.h>
    2626#include <VBox/err.h>
    2727
     
    3636 * @sa      VMR3IsLongModeAllowed, HMIsLongModeAllowed
    3737 */
    38 VMM_INT_DECL(bool) NEMHCIsLongModeAllowed(PVM pVM)
     38VMM_INT_DECL(bool) NEMHCIsLongModeAllowed(PVMCC pVM)
    3939{
    4040    return pVM->nem.s.fAllow64BitGuests && VM_IS_NEM_ENABLED(pVM);
     
    5252 * @note    Called while holding down the PGM lock.
    5353 */
    54 VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb)
     54VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalRegister(PVMCC pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb)
    5555{
    5656#ifdef VBOX_WITH_NATIVE_NEM
     
    6363
    6464
    65 VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb,
     65VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalDeregister(PVMCC pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb,
    6666                                                        int fRestoreAsRAM, bool fRestoreAsRAM2)
    6767{
     
    7575
    7676
    77 VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld,
     77VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalModify(PVMCC pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhysOld,
    7878                                                    RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fRestoreAsRAM)
    7979{
     
    8787
    8888
    89 VMM_INT_DECL(int)  NEMHCNotifyPhysPageAllocated(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
     89VMM_INT_DECL(int)  NEMHCNotifyPhysPageAllocated(PVMCC pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
    9090                                                PGMPAGETYPE enmType, uint8_t *pu2State)
    9191{
     
    100100
    101101
    102 VMM_INT_DECL(void) NEMHCNotifyPhysPageProtChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
     102VMM_INT_DECL(void) NEMHCNotifyPhysPageProtChanged(PVMCC pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint32_t fPageProt,
    103103                                                  PGMPAGETYPE enmType, uint8_t *pu2State)
    104104{
     
    112112
    113113
    114 VMM_INT_DECL(void) NEMHCNotifyPhysPageChanged(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhysPrev, RTHCPHYS HCPhysNew,
     114VMM_INT_DECL(void) NEMHCNotifyPhysPageChanged(PVMCC pVM, RTGCPHYS GCPhys, RTHCPHYS HCPhysPrev, RTHCPHYS HCPhysNew,
    115115                                              uint32_t fPageProt, PGMPAGETYPE enmType, uint8_t *pu2State)
    116116{
     
    125125
    126126#ifndef VBOX_WITH_NATIVE_NEM
    127 VMM_INT_DECL(int) NEMImportStateOnDemand(PVMCPU pVCpu, uint64_t fWhat)
     127VMM_INT_DECL(int) NEMImportStateOnDemand(PVMCPUCC pVCpu, uint64_t fWhat)
    128128{
    129129    RT_NOREF(pVCpu, fWhat);
     
    134134
    135135#ifndef VBOX_WITH_NATIVE_NEM
    136 VMM_INT_DECL(int) NEMHCQueryCpuTick(PVMCPU pVCpu, uint64_t *pcTicks, uint32_t *puAux)
     136VMM_INT_DECL(int) NEMHCQueryCpuTick(PVMCPUCC pVCpu, uint64_t *pcTicks, uint32_t *puAux)
    137137{
    138138    RT_NOREF(pVCpu, pcTicks, puAux);
     
    144144
    145145#ifndef VBOX_WITH_NATIVE_NEM
    146 VMM_INT_DECL(int) NEMHCResumeCpuTickOnAll(PVM pVM, PVMCPU pVCpu, uint64_t uPausedTscValue)
     146VMM_INT_DECL(int) NEMHCResumeCpuTickOnAll(PVM pVM, PVMCPUCC pVCpu, uint64_t uPausedTscValue)
    147147{
    148148    RT_NOREF(pVM, pVCpu, uPausedTscValue);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette