VirtualBox

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


Ignore:
Timestamp:
Mar 21, 2011 4:47:48 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70660
Message:

PCI: per-VM initialization (for IOMMU domains)

File:
1 edited

Legend:

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

    r35959 r36329  
    307307                if (RT_SUCCESS(rc))
    308308                {
    309                     GVMMR0DoneInitVM(pVM);
    310                     return rc;
     309#ifdef VBOX_WITH_PCI_PASSTHROUGH
     310                    rc = PciRawR0InitVM(pVM);
     311#endif
     312                    if (RT_SUCCESS(rc))
     313                    {
     314                        GVMMR0DoneInitVM(pVM);
     315                        return rc;
     316                    }
    311317                }
    312318
    313319                /* bail out */
    314320            }
     321#ifdef VBOX_WITH_PCI_PASSTHROUGH
     322            PciRawR0TermVM(pVM);
     323#endif
    315324            HWACCMR0TermVM(pVM);
    316325        }
    317326    }
     327
     328
    318329    RTLogSetDefaultInstanceThread(NULL, (uintptr_t)pVM->pSession);
    319330    return rc;
     
    336347VMMR0DECL(int) VMMR0TermVM(PVM pVM, PGVM pGVM)
    337348{
     349#ifdef VBOX_WITH_PCI_PASSTHROUGH
     350    PciRawR0TermVM(pVM);
     351#endif
     352
    338353    /*
    339354     * Tell GVMM what we're up to and check that we only do this once.
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