VirtualBox

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


Ignore:
Timestamp:
Sep 29, 2012 7:54:30 PM (12 years ago)
Author:
vboxsync
Message:

Add new flag to notify devices during a reset first to make sure there is no I/O pending (see #6434)

Location:
trunk/src/VBox/Devices/Storage
Files:
4 edited

Legend:

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

    r43399 r43472  
    81908190    /* fFlags */
    81918191    PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 |
    8192     PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION,
     8192    PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION |
     8193    PDM_DEVREG_FLAGS_FIRST_RESET_NOTIFICATION,
    81938194    /* fClass */
    81948195    PDM_DEVREG_CLASS_STORAGE,
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r42996 r43472  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    77017701    /* fFlags */
    77027702    PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 |
    7703     PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION,
     7703    PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION |
     7704    PDM_DEVREG_FLAGS_FIRST_RESET_NOTIFICATION,
    77047705    /* fClass */
    77057706    PDM_DEVREG_CLASS_STORAGE,
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r43337 r43472  
    55
    66/*
    7  * Copyright (C) 2006-2009 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    800800 * @returns nothing.
    801801 * @param   pBusLogic       Pointer to the BusLogic device instance.
    802  * @param   fSuppressIrq    Flag to suppress IRQ generation regardless of fIRQEnabled 
    803  * @param   uFlag           Type of interrupt being generated. 
     802 * @param   fSuppressIrq    Flag to suppress IRQ generation regardless of fIRQEnabled
     803 * @param   uFlag           Type of interrupt being generated.
    804804 */
    805805static void buslogicSetInterrupt(PBUSLOGIC pBusLogic, bool fSuppressIrq, uint8_t uIrqType)
     
    14061406        case BUSLOGICCOMMAND_SET_ADAPTER_OPTIONS:
    14071407            /* The parameter list length is determined by the first byte of the command buffer. */
    1408             if (pBusLogic->iParameter == 1) 
     1408            if (pBusLogic->iParameter == 1)
    14091409            {
    14101410                /* First pass - set the number of following parameter bytes. */
     
    14551455            case 14:    pReply->fIrqChannel14 = 1; break;
    14561456            case 15:    pReply->fIrqChannel15 = 1; break;
    1457             default:   
     1457            default:
    14581458                Log(("Inquire configuration: PCI IRQ %d cannot be represented\n", uPciIrq));
    14591459                break;
     
    33473347    /* fFlags */
    33483348    PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 |
    3349     PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION,
     3349    PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION |
     3350    PDM_DEVREG_FLAGS_FIRST_RESET_NOTIFICATION,
    33503351    /* fClass */
    33513352    PDM_DEVREG_CLASS_STORAGE,
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r40642 r43472  
    55
    66/*
    7  * Copyright (C) 2006-2009 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    53465346    /* fFlags */
    53475347    PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 |
    5348     PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION,
     5348    PDM_DEVREG_FLAGS_FIRST_SUSPEND_NOTIFICATION | PDM_DEVREG_FLAGS_FIRST_POWEROFF_NOTIFICATION |
     5349    PDM_DEVREG_FLAGS_FIRST_RESET_NOTIFICATION,
    53495350    /* fClass */
    53505351    PDM_DEVREG_CLASS_STORAGE,
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