VirtualBox

source: vbox/trunk/src/VBox/Devices/VMMDev/VMMDevState.h@ 95

Last change on this file since 95 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 KB
Line 
1/** @file
2 *
3 * VBox Guest/VMM/host communication:
4 * HGCM - Host-Guest Communication Manager header
5 */
6
7/*
8 * Copyright (C) 2006 InnoTek Systemberatung GmbH
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License as published by the Free Software Foundation,
14 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
15 * distribution. VirtualBox OSE is distributed in the hope that it will
16 * be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * If you received this file as part of a commercial VirtualBox
19 * distribution, then only the terms of your commercial VirtualBox
20 * license agreement apply instead of the previous paragraph.
21 */
22
23#ifndef __VMMDevState_h__
24#define __VMMDevState_h__
25
26#include <VBox/cdefs.h>
27#include <VBox/types.h>
28
29#include <VBox/pdm.h>
30
31/** device structure containing all state information */
32typedef struct VMMDevState
33{
34 /** The PCI device structure. */
35 PCIDevice dev;
36
37 /** hypervisor address space size */
38 uint32_t hypervisorSize;
39
40 /** bit 0: guest capability (1 == wants), bit 1: flag value has changed */
41 /** bit 2: host capability (1 == wants), bit 3: flag value has changed */
42 uint32_t mouseCapabilities;
43 /** absolute mouse position in pixels */
44 uint32_t mouseXAbs;
45 uint32_t mouseYAbs;
46
47 /** Pointer to device instance. */
48 PPDMDEVINS pDevIns;
49 /** VMMDev port base interface. */
50 PDMIBASE Base;
51 /** VMMDev port interface. */
52 PDMIVMMDEVPORT Port;
53#ifdef VBOX_HGCM
54 /** HGCM port interface. */
55 PDMIHGCMPORT HGCMPort;
56#endif
57 /** Pointer to base interface of the driver. */
58 PPDMIBASE pDrvBase;
59 /** VMMDev connector interface */
60 PPDMIVMMDEVCONNECTOR pDrv;
61#ifdef VBOX_HGCM
62 /** HGCM connector interface */
63 PPDMIHGCMCONNECTOR pHGCMDrv;
64#endif
65 /** message buffer for backdoor logging. */
66 char szMsg[512];
67 /** message buffer index. */
68 unsigned iMsg;
69 /** Base port in the assigned I/O space. */
70 RTIOPORT PortBase;
71
72 /** IRQ number assigned to the device */
73 uint32_t irq;
74 /** Current host side event flags */
75 uint32_t u32HostEventFlags;
76 /** Mask of events guest is interested in */
77 uint32_t u32GuestFilterMask;
78 /** Delayed mask of guest events */
79 uint32_t u32NewGuestFilterMask;
80 /** Flag whether u32NewGuestFilterMask is valid */
81 bool fNewGuestFilterMask;
82
83 /** HC pointer to VMMDev RAM area */
84 VMMDevMemory *pVMMDevRAMHC;
85 /** GC physical address of VMMDev RAM area */
86 RTGCPHYS GCPhysVMMDevRAM;
87
88 /** Information reported by guest via VMMDevReportGuestInfo generic request.
89 * Until this information is reported the VMMDev refuses any other requests.
90 */
91 VBoxGuestInfo guestInfo;
92
93 /** "Additions are Ok" indicator, set to true after processing VMMDevReportGuestInfo,
94 * if additions version is compatible. This flag is here to avoid repeated comparing
95 * of the version in guestInfo.
96 */
97 uint32_t fu32AdditionsOk;
98
99 /** Video acceleration status set by guest. */
100 uint32_t u32VideoAccelEnabled;
101
102 /** resolution change request */
103 struct
104 {
105 uint32_t xres;
106 uint32_t yres;
107 uint32_t bpp;
108 } displayChangeRequest,
109 lastReadDisplayChangeRequest;
110
111 /** credentials for guest logon purposes */
112 struct
113 {
114 char szUserName[VMMDEV_CREDENTIALS_STRLEN];
115 char szPassword[VMMDEV_CREDENTIALS_STRLEN];
116 char szDomain[VMMDEV_CREDENTIALS_STRLEN];
117 bool fAllowInteractiveLogon;
118 } credentialsLogon;
119
120 /** credentials for verification by guest */
121 struct
122 {
123 char szUserName[VMMDEV_CREDENTIALS_STRLEN];
124 char szPassword[VMMDEV_CREDENTIALS_STRLEN];
125 char szDomain[VMMDEV_CREDENTIALS_STRLEN];
126 } credentialsJudge;
127
128#ifdef TIMESYNC_BACKDOOR
129 bool fTimesyncBackdoorLo;
130 uint64_t hostTime;
131#endif
132
133} VMMDevState;
134
135void VMMDevNotifyGuest (VMMDevState *pVMMDevState, uint32_t u32EventMask);
136
137#endif /* __VMMDevState_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette