VirtualBox

Changeset 39890 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 26, 2012 7:42:19 PM (13 years ago)
Author:
vboxsync
Message:

VMMDev,IGuest,IAdditionsFacility,VBoxGuest,iprt/types.h: VMMDev must track the guest facility reports so they can be saved and restored correctly. Also fixed a reset bug related to guestInfo2. Restrict who can report the status of which facilities. Recalc the runlevel based on which facilities are active. Restrict the number of facilities main tracks.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r38856 r39890  
    183183# define VBOXGUEST_IOCTL_STRIP_SIZE(Code)           IOCBASECMD(Code)
    184184
    185 #else
    186 /* PORTME */
     185#else /* BSD Like */
     186  /* Automatic buffering, size limited to 4KB on *BSD and 8KB on Darwin - commands the limit, 4KB. */
     187# include <sys/ioccom.h>
     188# define VBOXGUEST_IOCTL_CODE_(Function, Size)      _IOC(IOC_INOUT, 'V', (Function) | VBOXGUEST_IOCTL_FLAG, (Size))
     189# define VBOXGUEST_IOCTL_CODE_FAST_(Function)       _IO('V', (Function) | VBOXGUEST_IOCTL_FLAG)
     190# define VBOXGUEST_IOCTL_STRIP_SIZE(uIOCtl)         ( (uIOCtl) & ~_IOC(0,0,0,IOCPARM_MASK) )
    187191#endif
    188192
  • trunk/include/VBox/vmm/pdmifs.h

    r39882 r39890  
    22202220{
    22212221    /**
    2222      * Reports the guest status.
    2223      * Called whenever the Additions issue a guest status report request.
    2224      *
    2225      * @param   pInterface          Pointer to this interface.
    2226      * @param   pGuestStatus        Pointer to guest information structure
    2227      * @thread  The emulation thread.
    2228      */
    2229     DECLR3CALLBACKMEMBER(void, pfnUpdateGuestStatus,(PPDMIVMMDEVCONNECTOR pInterface, const struct VBoxGuestStatus *pGuestStatus));
     2222     * Update guest facility status.
     2223     *
     2224     * Called in response to VMMDevReq_ReportGuestStatus, reset or state restore.
     2225     *
     2226     * @param   pInterface          Pointer to this interface.
     2227     * @param   uFacility           The facility.
     2228     * @param   uStatus             The status.
     2229     * @param   fFlags              Flags assoicated with the update. Currently
     2230     *                              reserved and should be ignored.
     2231     * @param   pTimeSpecTS         Pointer to the timestamp of this report.
     2232     * @thread  The emulation thread.
     2233     */
     2234    DECLR3CALLBACKMEMBER(void, pfnUpdateGuestStatus,(PPDMIVMMDEVCONNECTOR pInterface, uint32_t uFacility, uint16_t uStatus,
     2235                                                     uint32_t fFlags, PCRTTIMESPEC pTimeSpecTS));
    22302236
    22312237    /**
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