VirtualBox

Ignore:
Timestamp:
Mar 6, 2008 2:35:17 PM (17 years ago)
Author:
vboxsync
Message:

Save/load implemented. Irq thread. It is highly advised to include VBOX_WITH_PDM_LOCK=1 into your LocalConfig.kmk to avoid interrupt storms in Windows guests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r7207 r7324  
    31213121             */
    31223122            PPDMIBASE pBase;
    3123             int vrc = PDMR3QueryDeviceLun (mpVM, "pcnet", (unsigned) ulInstance,
    3124                                            0, &pBase);
     3123            const char *cszAdapterName = "pcnet";
     3124#ifdef VBOX_WITH_E1000
     3125            /*
     3126             * Perharps it would be much wiser to wrap both 'pcnet' and 'e1000'
     3127             * into generic 'net' device.
     3128             */
     3129            NetworkAdapterType_T adapterType;
     3130            rc = aNetworkAdapter->COMGETTER(AdapterType)(&adapterType);
     3131            AssertComRC(rc);
     3132            if (adapterType == NetworkAdapterType::I82540EM)
     3133                cszAdapterName = "e1000";
     3134#endif
     3135            int vrc = PDMR3QueryDeviceLun (mpVM, cszAdapterName,
     3136                                           (unsigned) ulInstance, 0, &pBase);
    31253137            ComAssertRC (vrc);
    31263138            if (VBOX_SUCCESS (vrc))
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