VirtualBox

Changeset 24761 in vbox for trunk


Ignore:
Timestamp:
Nov 18, 2009 4:11:58 PM (15 years ago)
Author:
vboxsync
Message:

Storage/ATA: clear pending DMA on controller reset (and on command abort), since restarting such a transfer will cause a vm crash (I/O state inconsistent: state=0 request=1)

File:
1 edited

Legend:

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

    r24747 r24761  
    34683468    s->iBeginTransfer = ATAFN_BT_NULL;
    34693469    s->iSourceSink = ATAFN_SS_NULL;
     3470    s->fDMA = false;
    34703471    s->fATAPITransfer = false;
    34713472    s->uATATransferMode = ATA_MODE_UDMA | 2; /* PIIX3 supports only up to UDMA2 */
     
    49034904                    else
    49044905                    {
     4906                        /* Stop any pending DMA transfer. */
     4907                        s->fDMA = false;
    49054908                        ataPIOTransferStop(s);
    49064909                        ataUnsetStatus(s, ATA_STAT_BUSY | ATA_STAT_DRQ | ATA_STAT_SEEK | ATA_STAT_ERR);
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