VMMDevState.h revision ee4d840f54fd2dcea8a73b1b86d5ec0db370b05d
/* $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. */
/** The critical section for this device. */
/** hypervisor address space size */
/** mouse capabilities of host and guest */
/** absolute mouse position in pixels */
/** Does the guest currently want the host pointer to be shown? */
/** Pointer to device instance. */
/** LUN\#0 + Status: VMMDev port base interface. */
/** LUN\#0: VMMDev port interface. */
#ifdef VBOX_WITH_HGCM
/** LUN\#0: 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. */
/** true if the guest responded to VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST at least once */
bool fGuestSentChangeEventAck;
/** 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;
/** Heap enabled. */
bool fHeapEnabled;
#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 */
/** Status LUN: Shared folders LED */
struct
{
/** The LED. */
/** The LED ports. */
/** Partner of ILeds. */
/** FLag whether CPU hotplug events are monitored */
bool fCpuHotPlugEventsEnabled;
/** CPU hotplug event */
/** Core id of the CPU to change */
/** Package id of the CPU to changhe */
} VMMDevState;
#endif /* !___VMMDev_VMMDevState_h */