VirtualBox

Changeset 36448 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Mar 28, 2011 12:37:43 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70815
Message:

PCI: refactoring, further IOMMU work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PGMR0.cpp

    r36441 r36448  
    2020*******************************************************************************/
    2121#define LOG_GROUP LOG_GROUP_PGM
     22#include <VBox/rawpci.h>
    2223#include <VBox/vmm/pgm.h>
    2324#include <VBox/vmm/gmm.h>
     25#include <VBox/vmm/gvm.h>
    2426#include "PGMInternal.h"
    2527#include <VBox/vmm/vm.h>
     
    194196   manager.  It shall use the global VM handle, not the user VM handle to
    195197   store the per-VM info (domain) since that is all ring-0 stuff, thus
    196    passing pGVM here.  I've tentitively prefixed the functions 'GPicRawR0',
     198   passing pGVM here.  I've tentitively prefixed the functions 'GPciRawR0',
    197199   we can discuss the PciRaw code re-organtization when I'm back from
    198200   vacation.
     
    235237    AssertReturn(!(GCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3);
    236238    AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3);
     239
     240    if (pGVM->rawpci.s.pfnContigMemInfo)
     241        /** @todo: what do we do on failure? */
     242        pGVM->rawpci.s.pfnContigMemInfo(&pGVM->rawpci.s, HCPhys, GCPhys, PAGE_SIZE, PCIRAW_MEMINFO_MAP);
     243
    237244    return VINF_SUCCESS;
    238245}
     
    254261{
    255262    AssertReturn(!(GCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3);
     263
     264    if (pGVM->rawpci.s.pfnContigMemInfo)
     265        /** @todo: what do we do on failure? */
     266        pGVM->rawpci.s.pfnContigMemInfo(&pGVM->rawpci.s, 0, GCPhys, PAGE_SIZE, PCIRAW_MEMINFO_UNMAP);
     267
    256268    return VINF_SUCCESS;
    257269}
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