VirtualBox

Changeset 3717 in vbox


Ignore:
Timestamp:
Jul 19, 2007 11:40:25 AM (18 years ago)
Author:
vboxsync
Message:

Improve release logging for linux guests. They use idle immediate
command during error recovery, which means that the command value
printed when RESET is triggered is totally useless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r3310 r3717  
    30593059    s->fLBA48 = false;
    30603060    s->fDMA = false;
     3061    if (cmd == ATA_IDLE_IMMEDIATE)
     3062    {
     3063        /* Detect Linux timeout recovery, first tries IDLE IMMEDIATE (which
     3064         * would overwrite the failing command unfortunately), then RESET. */
     3065        int32_t uCmdWait = -1;
     3066        uint64_t uNow = RTTimeNanoTS();
     3067        if (s->u64CmdTS)
     3068            uCmdWait = (uNow - s->u64CmdTS) / 1000;
     3069        LogRel(("PIIX3 ATA: LUN#%d: IDLE IMMEDIATE, CmdIf=%#04x (%d usec ago)\n",
     3070                s->iLUN, s->uATARegCommand, uCmdWait));
     3071    }
    30613072    s->uATARegCommand = cmd;
    30623073    switch (cmd)
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