VirtualBox

Changeset 83117 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Feb 19, 2020 3:57:06 PM (5 years ago)
Author:
vboxsync
Message:

DevBusLogic: Reset mailbox positions when INITIALIZE (EXTENDED) MAILBOX command is processed. Guests do not always reset the HBA before re-initializing the mailbox.

File:
1 edited

Legend:

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

    r83116 r83117  
    20932093            pThis->fMbxIs24Bit = true;
    20942094            pThis->cMailbox = pRequest->cMailbox;
     2095            pThis->uMailboxOutgoingPositionCurrent = pThis->uMailboxIncomingPositionCurrent = 0;
    20952096            pThis->GCPhysAddrMailboxOutgoingBase = (RTGCPHYS)ADDR_TO_U32(pRequest->aMailboxBaseAddr);
    20962097            /* The area for incoming mailboxes is right after the last entry of outgoing mailboxes. */
     
    21262127            pThis->fMbxIs24Bit = false;
    21272128            pThis->cMailbox = pRequest->cMailbox;
     2129            pThis->uMailboxOutgoingPositionCurrent = pThis->uMailboxIncomingPositionCurrent = 0;
    21282130            pThis->GCPhysAddrMailboxOutgoingBase = (RTGCPHYS)pRequest->uMailboxBaseAddress;
    21292131            /* The area for incoming mailboxes is right after the last entry of outgoing mailboxes. */
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