VirtualBox

Changeset 23933 in vbox


Ignore:
Timestamp:
Oct 21, 2009 1:21:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53744
Message:

DevE1000,DevPCNet: Don't take the link temporarily down when teleporting. (Also, please don't create macros that sometimes expans to nothing, always use the do {} while (0) or (void)0 trick.)

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r23867 r23933  
    8383#  define E1kLog2(a)              LogRel(a)
    8484#  define E1kLog3(a)              LogRel(a)
    85 //#  define E1kLog3(a)
     85//#  define E1kLog3(a)              do {} while (0)
    8686# else
    87 #  define E1kLog(a)
    88 #  define E1kLog2(a)
    89 #  define E1kLog3(a)
     87#  define E1kLog(a)               do {} while (0)
     88#  define E1kLog2(a)              do {} while (0)
     89#  define E1kLog3(a)              do {} while (0)
    9090# endif
    9191#else
     
    9393#  define E1kLog2(a)              Log2(a)
    9494#  define E1kLog3(a)              Log3(a)
    95 //#  define E1kLog(a)
    96 //#  define E1kLog2(a)
    97 //#  define E1kLog3(a)
     95//#  define E1kLog(a)               do {} while (0)
     96//#  define E1kLog2(a)              do {} while (0)
     97//#  define E1kLog3(a)              do {} while (0)
    9898#endif
    9999
     
    45754575    /*
    45764576    * Force the link down here, since PDMNETWORKLINKSTATE_DOWN_RESUME is never
    4577     * passed to us. We go through all this stuff if the link was up only.
     4577    * passed to us. We go through all this stuff if the link was up and we
     4578    * wasn't teleported.
    45784579    */
    4579     if (STATUS & STATUS_LU)
    4580     {
    4581         E1kLog(("%s Link is down temporarely\n", INSTANCE(pState)));
     4580    if (    (STATUS & STATUS_LU)
     4581        && !PDMDevHlpVMTeleportedAndNotFullyResumedYet(pDevIns))
     4582    {
     4583        E1kLog(("%s Link is down temporarily\n", INSTANCE(pState)));
    45824584        STATUS &= ~STATUS_LU;
    45834585        Phy::setLinkStatus(&pState->phy, false);
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r23568 r23933  
    44044404    pcnetUpdateRingHandlers(pThis);
    44054405#endif
    4406     /* Indicate link down to the guest OS that all network connections have been lost. */
    4407     pcnetTempLinkDown(pThis);
     4406    /* Indicate link down to the guest OS that all network connections have
     4407       been lost, unless we've been teleported here. */
     4408    if (!PDMDevHlpVMTeleportedAndNotFullyResumedYet(pDevIns))
     4409        pcnetTempLinkDown(pThis);
    44084410
    44094411    return VINF_SUCCESS;
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