VirtualBox

Changeset 36443 in vbox for trunk


Ignore:
Timestamp:
Mar 25, 2011 9:21:01 PM (14 years ago)
Author:
vboxsync
Message:

ConsoleImpl2.cpp: Set PGM/PciPassThrough=1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r36439 r36443  
    512512        InsertConfigNode(pDevices,     "pciraw",  &pPciDevs);
    513513
     514        PCFGMNODE pRoot = CFGMR3GetParent(pDevices); Assert(pRoot);
     515
     516        /* Tell PGM to tell GPciRaw about guest mappings. */
     517        CFGMR3InsertNode(pRoot, "PGM", NULL);
     518        InsertConfigInteger(CFGMR3GetChild(pRoot, "PGM"), "PciPassThrough", 1);
     519
    514520        /*
    515521         * Currently, using IOMMU needed for PCI passthrough
    516522         * requires RAM preallocation.
    517          * @todo: check if we can lift this requirement
    518          */
    519         PCFGMNODE pRoot = CFGMR3GetParent(pDevices);
    520         Assert(pRoot);
     523         */
     524        /** @todo: check if we can lift this requirement */
    521525        CFGMR3RemoveValue(pRoot, "RamPreAlloc");
    522         CFGMR3InsertInteger(pRoot, "RamPreAlloc",    1);
     526        InsertConfigInteger(pRoot, "RamPreAlloc", 1);
    523527    }
    524528
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