Changeset 7471 in vbox for trunk/include
- Timestamp:
- Mar 17, 2008 10:50:10 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28911
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hwaccm.h
r5999 r7471 30 30 #include <VBox/types.h> 31 31 #include <VBox/pgm.h> 32 #include <iprt/mp.h> 32 33 33 34 … … 36 37 */ 37 38 39 /** 40 * HWACCM state 41 */ 42 typedef enum HWACCMSTATE 43 { 44 /* Not yet set */ 45 HWACCMSTATE_UNINITIALIZED = 0, 46 /* Enabled */ 47 HWACCMSTATE_ENABLED, 48 /* Disabled */ 49 HWACCMSTATE_DISABLED, 50 /** The usual 32-bit hack. */ 51 HWACCMSTATE_32BIT_HACK = 0x7fffffff 52 } HWACCMSTATE; 38 53 39 54 __BEGIN_DECLS … … 54 69 55 70 /** 56 * Does Ring-0 HWACCM initialization. 71 * Does global Ring-0 HWACCM initialization. 72 * 73 * @returns VBox status code. 74 */ 75 HWACCMR0DECL(int) HWACCMR0Init(); 76 77 /** 78 * Does global Ring-0 HWACCM termination. 79 * 80 * @returns VBox status code. 81 */ 82 HWACCMR0DECL(int) HWACCMR0Term(); 83 84 /** 85 * Does Ring-0 per VM HWACCM initialization. 57 86 * 58 87 * This is mainly to check that the Host CPU mode is compatible … … 62 91 * @param pVM The VM to operate on. 63 92 */ 64 HWACCMR0DECL(int) HWACCMR0Init(PVM pVM); 93 HWACCMR0DECL(int) HWACCMR0InitVM(PVM pVM); 94 95 /** 96 * Sets up HWACCM on all cpus. 97 * 98 * @returns VBox status code. 99 * @param pVM The VM to operate on. 100 * @param enmNewHwAccmState New hwaccm state 101 * 102 */ 103 HWACCMR0DECL(int) HWACCMR0EnableAllCpus(PVM pVM, HWACCMSTATE enmNewHwAccmState); 65 104 66 105 /** @} */ … … 91 130 92 131 /** 132 * Initialize VT-x or AMD-V 133 * 134 * @returns VBox status code. 135 * @param pVM The VM handle. 136 */ 137 HWACCMR3DECL(int) HWACCMR3InitFinalizeR0(PVM pVM); 138 139 /** 93 140 * Applies relocations to data and code managed by this 94 141 * component. This function will be called at init and … … 165 212 166 213 /** 167 * Does Ring-0 VMX initialization.168 * 169 * @returns VBox status code. 170 * @param pVM The VM to operate on. 171 */ 172 HWACCMR0DECL(int) HWACCMR0SetupVM X(PVM pVM);214 * Sets up a VT-x or AMD-V session 215 * 216 * @returns VBox status code. 217 * @param pVM The VM to operate on. 218 */ 219 HWACCMR0DECL(int) HWACCMR0SetupVM(PVM pVM); 173 220 174 221 … … 182 229 183 230 /** 184 * En able VMX or SVN185 * 186 * @returns VBox status code. 187 * @param pVM The VM to operate on. 188 */ 189 HWACCMR0DECL(int) HWACCMR0En able(PVM pVM);190 191 192 /** 193 * Disable VMX or SVN194 * 195 * @returns VBox status code. 196 * @param pVM The VM to operate on. 197 */ 198 HWACCMR0DECL(int) HWACCMR0 Disable(PVM pVM);231 * Enters the VT-x or AMD-V session 232 * 233 * @returns VBox status code. 234 * @param pVM The VM to operate on. 235 */ 236 HWACCMR0DECL(int) HWACCMR0Enter(PVM pVM); 237 238 239 /** 240 * Leaves the VT-x or AMD-V session 241 * 242 * @returns VBox status code. 243 * @param pVM The VM to operate on. 244 */ 245 HWACCMR0DECL(int) HWACCMR0Leave(PVM pVM); 199 246 200 247
Note:
See TracChangeset
for help on using the changeset viewer.