VirtualBox

Changeset 50752 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 12, 2014 5:15:55 PM (11 years ago)
Author:
vboxsync
Message:

Additions/solaris/VBoxGuest: Quiesce support for VBoxGuest. A todo still remains.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r50348 r50752  
    7575static int VBoxGuestSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd);
    7676static int VBoxGuestSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd);
     77static int VBoxGuestSolarisQuiesce(dev_info_t *pDip);
    7778
    7879static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip);
     
    123124    (struct bus_ops *)0,
    124125    nodev,                  /* power */
    125     ddi_quiesce_not_needed
     126    VBoxGuestSolarisQuiesce
    126127};
    127128
     
    421422
    422423/**
     424 * Quiesce entry point, called by solaris kernel for disabling the device from
     425 * generating any interrupts or doing in-bound DMA.
     426 *
     427 * @param   pDip            The module structure instance.
     428 *
     429 * @return  corresponding solaris error code.
     430 */
     431static int VBoxGuestSolarisQuiesce(dev_info_t *pDip)
     432{
     433    for (int i = 0; i < g_cIntrAllocated; i++)
     434    {
     435        int rc = ddi_intr_disable(g_pIntr[i]);
     436        if (rc != DDI_SUCCESS)
     437            return DDI_FAILURE;
     438    }
     439
     440    /** @todo What about HGCM/HGSMI touching guest-memory? */
     441
     442    return DDI_SUCCESS;
     443}
     444
     445
     446/**
    423447 * Info entry point, called by solaris kernel for obtaining driver info.
    424448 *
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