VMMDevState.h revision eb8c3a611107e54d7a4ae2fdae311121786c2988
/* $Id$ */
/** @file
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ___VMMDev_VMMDevState_h
#define ___VMMDev_VMMDevState_h
#define TIMESYNC_BACKDOOR
/** device structure containing all state information */
typedef struct VMMDevState
{
/** The PCI device structure. */
/** hypervisor address space size */
/** bit 0: guest capability (1 == wants), bit 1: flag value has changed */
/** bit 2: host capability (1 == wants), bit 3: flag value has changed */
/** absolute mouse position in pixels */
/** Pointer to device instance. */
/** VMMDev port base interface. */
/** VMMDev port interface. */
#ifdef VBOX_WITH_HGCM
/** HGCM port interface. */
#endif
/** Pointer to base interface of the driver. */
/** VMMDev connector interface */
#ifdef VBOX_WITH_HGCM
/** HGCM connector interface */
#endif
/** message buffer for backdoor logging. */
char szMsg[512];
/** message buffer index. */
unsigned iMsg;
/** Base port in the assigned I/O space. */
/** IRQ number assigned to the device */
/** Current host side event flags */
/** Mask of events guest is interested in. Note that the HGCM events
* are enabled automatically by the VMMDev device when guest issues
* HGCM commands.
*/
/** Delayed mask of guest events */
/** Flag whether u32NewGuestFilterMask is valid */
bool fNewGuestFilterMask;
/** R3 pointer to VMMDev RAM area */
/** GC physical address of VMMDev RAM area */
/** R3 pointer to VMMDev Heap RAM area
*/
/** GC physical address of VMMDev Heap RAM area */
/** Information reported by guest via VMMDevReportGuestInfo generic request.
* Until this information is reported the VMMDev refuses any other requests.
*/
/** Information reported by guest via VMMDevReportGuestCapabilities
*/
/** "Additions are Ok" indicator, set to true after processing VMMDevReportGuestInfo,
* if additions version is compatible. This flag is here to avoid repeated comparing
* of the version in guestInfo.
*/
/** Video acceleration status set by guest. */
/** resolution change request */
struct
{
/** credentials for guest logon purposes */
struct
{
bool fAllowInteractiveLogon;
/** credentials for verification by guest */
struct
{
/* memory balloon change request */
/* guest ram size */
/* statistics interval change request */
/* seamless mode change request */
bool fVRDPEnabled;
#ifdef TIMESYNC_BACKDOOR
bool fTimesyncBackdoorLo;
#endif
/** Set if GetHostTime should fail.
* Loaded from the GetHostTimeDisabled configuration value. */
bool fGetHostTimeDisabled;
/** Set if backdoor logging should be disabled (output will be ignored then) */
bool fBackdoorLogDisabled;
/** Don't clear credentials */
bool fKeepCredentials;
#ifdef VBOX_WITH_HGCM
/** List of pending HGCM requests, used for saving the HGCM state. */
/** Critical section to protect the list. */
/** Whether the HGCM events are already automatically enabled. */
#endif /* VBOX_WITH_HGCM */
/* Shared folders LED */
struct
{
/** The LED. */
/** The LED ports. */
/** Partner of ILeds. */
/** The critical section for this device. */
} VMMDevState;
#endif /* !___VMMDev_VMMDevState_h */