/vbox/include/VBox/err.h

https://github.com/OSLL/vboxhsm · C Header · 2276 lines · 833 code · 127 blank · 1316 comment · 0 complexity · 1f2e82dd77d3e2bbef2a4d9e2c12f40f MD5 · raw file

  1. /** @file
  2. * VirtualBox Status Codes.
  3. */
  4. /*
  5. * Copyright (C) 2006-2013 Oracle Corporation
  6. *
  7. * This file is part of VirtualBox Open Source Edition (OSE), as
  8. * available from http://www.virtualbox.org. This file is free software;
  9. * you can redistribute it and/or modify it under the terms of the GNU
  10. * General Public License (GPL) as published by the Free Software
  11. * Foundation, in version 2 as it comes in the "COPYING" file of the
  12. * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
  13. * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
  14. *
  15. * The contents of this file may alternatively be used under the terms
  16. * of the Common Development and Distribution License Version 1.0
  17. * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
  18. * VirtualBox OSE distribution, in which case the provisions of the
  19. * CDDL are applicable instead of those of the GPL.
  20. *
  21. * You may elect to license modified versions of this file under the
  22. * terms and conditions of either the GPL or the CDDL or both.
  23. */
  24. #ifndef ___VBox_err_h
  25. #define ___VBox_err_h
  26. #include <VBox/cdefs.h>
  27. #include <iprt/err.h>
  28. /** @defgroup grp_err Error Codes
  29. * @{
  30. */
  31. /* SED-START */
  32. /** @name Misc. Status Codes
  33. * @{
  34. */
  35. /** Failed to allocate VM memory. */
  36. #define VERR_NO_VM_MEMORY (-1000)
  37. /** RC is toasted and the VMM should be terminated at once, but no need to
  38. * panic about it :-) */
  39. #define VERR_DONT_PANIC (-1001)
  40. /** Unsupported CPU. */
  41. #define VERR_UNSUPPORTED_CPU (-1002)
  42. /** Unsupported CPU mode. */
  43. #define VERR_UNSUPPORTED_CPU_MODE (-1003)
  44. /** Page not present. */
  45. #define VERR_PAGE_NOT_PRESENT (-1004)
  46. /** Invalid/Corrupted configuration file. */
  47. #define VERR_CFG_INVALID_FORMAT (-1005)
  48. /** No configuration value exists. */
  49. #define VERR_CFG_NO_VALUE (-1006)
  50. /** Selector not present. */
  51. #define VERR_SELECTOR_NOT_PRESENT (-1007)
  52. /** Not code selector. */
  53. #define VERR_NOT_CODE_SELECTOR (-1008)
  54. /** Not data selector. */
  55. #define VERR_NOT_DATA_SELECTOR (-1009)
  56. /** Out of selector bounds. */
  57. #define VERR_OUT_OF_SELECTOR_BOUNDS (-1010)
  58. /** Invalid selector. Usually beyond table limits. */
  59. #define VERR_INVALID_SELECTOR (-1011)
  60. /** Invalid requested privilegde level. */
  61. #define VERR_INVALID_RPL (-1012)
  62. /** PML4 entry not present. */
  63. #define VERR_PAGE_MAP_LEVEL4_NOT_PRESENT (-1013)
  64. /** Page directory pointer not present. */
  65. #define VERR_PAGE_DIRECTORY_PTR_NOT_PRESENT (-1014)
  66. /** Raw mode doesn't support SMP. */
  67. #define VERR_RAW_MODE_INVALID_SMP (-1015)
  68. /** Invalid VM handle. */
  69. #define VERR_INVALID_VM_HANDLE (-1016)
  70. /** Invalid VM handle. */
  71. #define VERR_INVALID_VMCPU_HANDLE (-1017)
  72. /** Invalid Virtual CPU ID. */
  73. #define VERR_INVALID_CPU_ID (-1018)
  74. /** Too many VCPUs. */
  75. #define VERR_TOO_MANY_CPUS (-1019)
  76. /** The service was disabled on the host.
  77. * Returned by pfnInit in VBoxService to indicated a non-fatal error that
  78. * should results in the particular service being disabled. */
  79. #define VERR_SERVICE_DISABLED (-1020)
  80. /** The requested feature is not supported in raw-mode. */
  81. #define VERR_NOT_SUP_IN_RAW_MODE (-1021)
  82. /** @} */
  83. /** @name Execution Monitor/Manager (EM) Status Codes
  84. *
  85. * The order of the status codes between VINF_EM_FIRST and VINF_EM_LAST
  86. * are of vital importance. The lower the number the higher importance
  87. * as a scheduling instruction.
  88. * @{
  89. */
  90. /** First scheduling related status code. */
  91. #define VINF_EM_FIRST 1100
  92. /** Indicating that the VM is being terminated and that the the execution
  93. * shall stop. */
  94. #define VINF_EM_TERMINATE 1100
  95. /** Hypervisor code was stepped.
  96. * EM will first send this to the debugger, and if the issue isn't
  97. * resolved there it will enter guru meditation. */
  98. #define VINF_EM_DBG_HYPER_STEPPED 1101
  99. /** Hit a breakpoint in the hypervisor code,
  100. * EM will first send this to the debugger, and if the issue isn't
  101. * resolved there it will enter guru meditation. */
  102. #define VINF_EM_DBG_HYPER_BREAKPOINT 1102
  103. /** Hit a possible assertion in the hypervisor code,
  104. * EM will first send this to the debugger, and if the issue isn't
  105. * resolved there it will enter guru meditation. */
  106. #define VINF_EM_DBG_HYPER_ASSERTION 1103
  107. /** Indicating that the VM should be suspended for debugging because
  108. * the developer wants to inspect the VM state. */
  109. #define VINF_EM_DBG_STOP 1105
  110. /** Indicating success single stepping and that EM should report that
  111. * event to the debugger. */
  112. #define VINF_EM_DBG_STEPPED 1106
  113. /** Indicating that a breakpoint was hit and that EM should notify the debugger
  114. * and in the event there is no debugger fail fatally. */
  115. #define VINF_EM_DBG_BREAKPOINT 1107
  116. /** Indicating that EM should single step an instruction.
  117. * The instruction is stepped in the current execution mode (RAW/REM). */
  118. #define VINF_EM_DBG_STEP 1108
  119. /** Indicating that the VM is being turned off and that the EM should
  120. * exit to the VM awaiting the destruction request. */
  121. #define VINF_EM_OFF 1109
  122. /** Indicating that the VM has been suspended and that the the thread
  123. * should wait for request telling it what to do next. */
  124. #define VINF_EM_SUSPEND 1110
  125. /** Indicating that the VM has been reset and that scheduling goes
  126. * back to startup defaults. */
  127. #define VINF_EM_RESET 1111
  128. /** Indicating that the VM has executed a halt instruction and that
  129. * the emulation thread should wait for an interrupt before resuming
  130. * execution. */
  131. #define VINF_EM_HALT 1112
  132. /** Indicating that the VM has been resumed and that the thread should
  133. * start executing. */
  134. #define VINF_EM_RESUME 1113
  135. /** Indicating that we've got an out-of-memory condition and that we need
  136. * to take the appropriate actions to deal with this.
  137. * @remarks It might seem odd at first that this has lower priority than VINF_EM_HALT,
  138. * VINF_EM_SUSPEND, and VINF_EM_RESUME. The reason is that these events are
  139. * vital to correctly operating the VM. Also, they can't normally occur together
  140. * with an out-of-memory condition, and even if that should happen the condition
  141. * will be rediscovered before executing any more code. */
  142. #define VINF_EM_NO_MEMORY 1114
  143. /** The fatal variant of VINF_EM_NO_MEMORY. */
  144. #define VERR_EM_NO_MEMORY (-1114)
  145. /** Indicating that a rescheduling to recompiled execution.
  146. * Typically caused by raw-mode executing code which is difficult/slow
  147. * to virtualize rawly.
  148. * @remarks Important to have a higher priority (lower number) than the other rescheduling status codes. */
  149. #define VINF_EM_RESCHEDULE_REM 1115
  150. /** Indicating that a rescheduling to vmx-mode execution.
  151. * Typically caused by REM detecting that hardware-accelerated raw-mode execution is possible. */
  152. #define VINF_EM_RESCHEDULE_HM 1116
  153. /** Indicating that a rescheduling to raw-mode execution.
  154. * Typically caused by REM detecting that raw-mode execution is possible.
  155. * @remarks Important to have a higher priority (lower number) than VINF_EM_RESCHEDULE. */
  156. #define VINF_EM_RESCHEDULE_RAW 1117
  157. /** Indicating that a rescheduling now is required. Typically caused by
  158. * interrupts having changed the EIP. */
  159. #define VINF_EM_RESCHEDULE 1118
  160. /** PARAV call */
  161. #define VINF_EM_RESCHEDULE_PARAV 1119
  162. /** Go back into wait for SIPI mode */
  163. #define VINF_EM_WAIT_SIPI 1120
  164. /** Last scheduling related status code. (inclusive) */
  165. #define VINF_EM_LAST 1120
  166. /** Reason for leaving RC: Guest trap which couldn't be handled in RC.
  167. * The trap is generally forwarded to the REM and executed there. */
  168. #define VINF_EM_RAW_GUEST_TRAP 1121
  169. /** Reason for leaving RC: Interrupted by external interrupt.
  170. * The interrupt needed to be handled by the host OS. */
  171. #define VINF_EM_RAW_INTERRUPT 1122
  172. /** Reason for leaving RC: Interrupted by external interrupt while in hypervisor
  173. * code. The interrupt needed to be handled by the host OS and hypervisor
  174. * execution must be resumed. VM state is not complete at this point. */
  175. #define VINF_EM_RAW_INTERRUPT_HYPER 1123
  176. /** Reason for leaving RC: A Ring switch was attempted.
  177. * Normal cause of action is to execute this in REM. */
  178. #define VINF_EM_RAW_RING_SWITCH 1124
  179. /** Reason for leaving RC: A Ring switch was attempted using software interrupt.
  180. * Normal cause of action is to execute this in REM. */
  181. #define VINF_EM_RAW_RING_SWITCH_INT 1125
  182. /** Reason for leaving RC: A privileged instruction was attempted executed.
  183. * Normal cause of action is to execute this in REM. */
  184. #define VINF_EM_RAW_EXCEPTION_PRIVILEGED 1126
  185. /** Reason for leaving RZ: Emulate instruction. */
  186. #define VINF_EM_RAW_EMULATE_INSTR 1127
  187. /** Reason for leaving RC: Unhandled TSS write.
  188. * Recompiler gets control. */
  189. #define VINF_EM_RAW_EMULATE_INSTR_TSS_FAULT 1128
  190. /** Reason for leaving RC: Unhandled LDT write.
  191. * Recompiler gets control. */
  192. #define VINF_EM_RAW_EMULATE_INSTR_LDT_FAULT 1129
  193. /** Reason for leaving RC: Unhandled IDT write.
  194. * Recompiler gets control. */
  195. #define VINF_EM_RAW_EMULATE_INSTR_IDT_FAULT 1130
  196. /** Reason for leaving RC: Unhandled GDT write.
  197. * Recompiler gets control. */
  198. #define VINF_EM_RAW_EMULATE_INSTR_GDT_FAULT 1131
  199. /** Reason for leaving RC: Unhandled Page Directory write.
  200. * Recompiler gets control. */
  201. #define VINF_EM_RAW_EMULATE_INSTR_PD_FAULT 1132
  202. /** Reason for leaving RC: jump inside generated patch jump.
  203. * Fatal error. */
  204. #define VERR_EM_RAW_PATCH_CONFLICT (-1133)
  205. /** Reason for leaving RC: Hlt instruction.
  206. * Recompiler gets control. */
  207. #define VINF_EM_RAW_EMULATE_INSTR_HLT 1134
  208. /** Reason for leaving RZ: Ring-3 operation pending. */
  209. #define VINF_EM_RAW_TO_R3 1135
  210. /** Reason for leaving RZ: Timer pending. */
  211. #define VINF_EM_RAW_TIMER_PENDING 1136
  212. /** Reason for leaving RC: Interrupt pending (guest). */
  213. #define VINF_EM_RAW_INTERRUPT_PENDING 1137
  214. /** Reason for leaving RC: Encountered a stale selector. */
  215. #define VINF_EM_RAW_STALE_SELECTOR 1138
  216. /** Reason for leaving RC: The IRET resuming guest code trapped. */
  217. #define VINF_EM_RAW_IRET_TRAP 1139
  218. /** Reason for leaving RC: Emulate (MM)IO intensive code in the recompiler. */
  219. #define VINF_EM_RAW_EMULATE_IO_BLOCK 1140
  220. /** The interpreter was unable to deal with the instruction at hand. */
  221. #define VERR_EM_INTERPRETER (-1148)
  222. /** Internal EM error caused by an unknown warning or informational status code. */
  223. #define VERR_EM_INTERNAL_ERROR (-1149)
  224. /** Pending VM request packet. */
  225. #define VINF_EM_PENDING_REQUEST 1150
  226. /** Start instruction stepping (debug only). */
  227. #define VINF_EM_RAW_EMULATE_DBG_STEP 1151
  228. /** Patch TPR access instruction. */
  229. #define VINF_EM_HM_PATCH_TPR_INSTR 1152
  230. /** Unexpected guest mapping conflict detected. */
  231. #define VERR_EM_UNEXPECTED_MAPPING_CONFLICT (-1154)
  232. /** Reason for leaving RC: A triple-fault condition. Currently, causes
  233. * a guru meditation. */
  234. #define VINF_EM_TRIPLE_FAULT 1155
  235. /** @} */
  236. /** @name Debugging Facility (DBGF) DBGF Status Codes
  237. * @{
  238. */
  239. /** The function called requires the caller to be attached as a
  240. * debugger to the VM. */
  241. #define VERR_DBGF_NOT_ATTACHED (-1200)
  242. /** Someone (including the caller) was already attached as
  243. * debugger to the VM. */
  244. #define VERR_DBGF_ALREADY_ATTACHED (-1201)
  245. /** Tried to hald a debugger which was already halted.
  246. * (This is a warning and not an error.) */
  247. #define VWRN_DBGF_ALREADY_HALTED 1202
  248. /** The DBGF has no more free breakpoint slots. */
  249. #define VERR_DBGF_NO_MORE_BP_SLOTS (-1203)
  250. /** The DBGF couldn't find the specified breakpoint. */
  251. #define VERR_DBGF_BP_NOT_FOUND (-1204)
  252. /** Attempted to enabled a breakpoint which was already enabled. */
  253. #define VINF_DBGF_BP_ALREADY_ENABLED 1205
  254. /** Attempted to disabled a breakpoint which was already disabled. */
  255. #define VINF_DBGF_BP_ALREADY_DISABLED 1206
  256. /** The breakpoint already exists. */
  257. #define VINF_DBGF_BP_ALREADY_EXIST 1207
  258. /** The byte string was not found. */
  259. #define VERR_DBGF_MEM_NOT_FOUND (-1208)
  260. /** The OS was not detected. */
  261. #define VERR_DBGF_OS_NOT_DETCTED (-1209)
  262. /** The OS was not detected. */
  263. #define VINF_DBGF_OS_NOT_DETCTED 1209
  264. /** The specified register was not found. */
  265. #define VERR_DBGF_REGISTER_NOT_FOUND (-1210)
  266. /** The value was truncated to fit.
  267. * For queries this means that the register is wider than the queried value.
  268. * For setters this means that the value is wider than the register. */
  269. #define VINF_DBGF_TRUNCATED_REGISTER 1211
  270. /** The value was zero extended to fit.
  271. * For queries this means that the register is narrower than the queried value.
  272. * For setters this means that the value is narrower than the register. */
  273. #define VINF_DBGF_ZERO_EXTENDED_REGISTER 1212
  274. /** The requested type conversion was not supported. */
  275. #define VERR_DBGF_UNSUPPORTED_CAST (-1213)
  276. /** The register is read-only and cannot be modified. */
  277. #define VERR_DBGF_READ_ONLY_REGISTER (-1214)
  278. /** Internal processing error \#1 in the DBGF register code. */
  279. #define VERR_DBGF_REG_IPE_1 (-1215)
  280. /** Internal processing error \#2 in the DBGF register code. */
  281. #define VERR_DBGF_REG_IPE_2 (-1216)
  282. /** Unhandled \#DB in hypervisor code. */
  283. #define VERR_DBGF_HYPER_DB_XCPT (-1217)
  284. /** Internal processing error \#1 in the DBGF stack code. */
  285. #define VERR_DBGF_STACK_IPE_1 (-1218)
  286. /** Internal processing error \#2 in the DBGF stack code. */
  287. #define VERR_DBGF_STACK_IPE_2 (-1219)
  288. /** No trace buffer available, please change the VM config. */
  289. #define VERR_DBGF_NO_TRACE_BUFFER (-1220)
  290. /** @} */
  291. /** @name Patch Manager (PATM) Status Codes
  292. * @{
  293. */
  294. /** Non fatal Patch Manager analysis phase warning */
  295. #define VWRN_CONTINUE_ANALYSIS 1400
  296. /** Non fatal Patch Manager recompile phase warning (mapped to VWRN_CONTINUE_ANALYSIS). */
  297. #define VWRN_CONTINUE_RECOMPILE VWRN_CONTINUE_ANALYSIS
  298. /** Continue search (mapped to VWRN_CONTINUE_ANALYSIS). */
  299. #define VWRN_PATM_CONTINUE_SEARCH VWRN_CONTINUE_ANALYSIS
  300. /** Patch installation refused (patch too complex or unsupported instructions ) */
  301. #define VERR_PATCHING_REFUSED (-1401)
  302. /** Unable to find patch */
  303. #define VERR_PATCH_NOT_FOUND (-1402)
  304. /** Patch disabled */
  305. #define VERR_PATCH_DISABLED (-1403)
  306. /** Patch enabled */
  307. #define VWRN_PATCH_ENABLED 1404
  308. /** Patch was already disabled */
  309. #define VERR_PATCH_ALREADY_DISABLED (-1405)
  310. /** Patch was already enabled */
  311. #define VERR_PATCH_ALREADY_ENABLED (-1406)
  312. /** Patch was removed. */
  313. #define VWRN_PATCH_REMOVED 1407
  314. /** Reason for leaving RC: \#GP with EIP pointing to patch code. */
  315. #define VINF_PATM_PATCH_TRAP_GP 1408
  316. /** First leave RC code. */
  317. #define VINF_PATM_LEAVE_RC_FIRST VINF_PATM_PATCH_TRAP_GP
  318. /** Reason for leaving RC: \#PF with EIP pointing to patch code. */
  319. #define VINF_PATM_PATCH_TRAP_PF 1409
  320. /** Reason for leaving RC: int3 with EIP pointing to patch code. */
  321. #define VINF_PATM_PATCH_INT3 1410
  322. /** Reason for leaving RC: \#PF for monitored patch page. */
  323. #define VINF_PATM_CHECK_PATCH_PAGE 1411
  324. /** Reason for leaving RC: duplicate instruction called at current eip. */
  325. #define VINF_PATM_DUPLICATE_FUNCTION 1412
  326. /** Execute one instruction with the recompiler */
  327. #define VINF_PATCH_EMULATE_INSTR 1413
  328. /** Reason for leaving RC: attempt to patch MMIO write. */
  329. #define VINF_PATM_HC_MMIO_PATCH_WRITE 1414
  330. /** Reason for leaving RC: attempt to patch MMIO read. */
  331. #define VINF_PATM_HC_MMIO_PATCH_READ 1415
  332. /** Reason for leaving RC: pending irq after iret that sets IF. */
  333. #define VINF_PATM_PENDING_IRQ_AFTER_IRET 1416
  334. /** Last leave RC code. */
  335. #define VINF_PATM_LEAVE_RC_LAST VINF_PATM_PENDING_IRQ_AFTER_IRET
  336. /** No conflicts to resolve */
  337. #define VERR_PATCH_NO_CONFLICT (-1425)
  338. /** Detected unsafe code for patching */
  339. #define VERR_PATM_UNSAFE_CODE (-1426)
  340. /** Terminate search branch */
  341. #define VWRN_PATCH_END_BRANCH 1427
  342. /** Already patched */
  343. #define VERR_PATM_ALREADY_PATCHED (-1428)
  344. /** Spinlock detection failed. */
  345. #define VINF_PATM_SPINLOCK_FAILED (1429)
  346. /** Continue execution after patch trap. */
  347. #define VINF_PATCH_CONTINUE (1430)
  348. /** The patch manager is not used because we're using HM and VT-x/AMD-V. */
  349. #define VERR_PATM_HM_IPE (-1431)
  350. /** @} */
  351. /** @name Code Scanning and Analysis Manager (CSAM) Status Codes
  352. * @{
  353. */
  354. /** Trap not handled */
  355. #define VWRN_CSAM_TRAP_NOT_HANDLED 1500
  356. /** Patch installed */
  357. #define VWRN_CSAM_INSTRUCTION_PATCHED 1501
  358. /** Page record not found */
  359. #define VWRN_CSAM_PAGE_NOT_FOUND 1502
  360. /** Reason for leaving RC: CSAM wants perform a task in ring-3. */
  361. #define VINF_CSAM_PENDING_ACTION 1503
  362. /** The CSAM is not used because we're using HM and VT-x/AMD-V. */
  363. #define VERR_CSAM_HM_IPE (-1504)
  364. /** @} */
  365. /** @name Page Monitor/Manager (PGM) Status Codes
  366. * @{
  367. */
  368. /** Attempt to create a GC mapping which conflicts with an existing mapping. */
  369. #define VERR_PGM_MAPPING_CONFLICT (-1600)
  370. /** The physical handler range has no corresponding RAM range.
  371. * If this is MMIO, see todo above the return. If not MMIO, then it's
  372. * someone else's fault... */
  373. #define VERR_PGM_HANDLER_PHYSICAL_NO_RAM_RANGE (-1601)
  374. /** Attempt to register an access handler for a virtual range of which a part
  375. * was already handled. */
  376. #define VERR_PGM_HANDLER_VIRTUAL_CONFLICT (-1602)
  377. /** Attempt to register an access handler for a physical range of which a part
  378. * was already handled. */
  379. #define VERR_PGM_HANDLER_PHYSICAL_CONFLICT (-1603)
  380. /** Invalid page directory specified to PGM. */
  381. #define VERR_PGM_INVALID_PAGE_DIRECTORY (-1604)
  382. /** Invalid GC physical address. */
  383. #define VERR_PGM_INVALID_GC_PHYSICAL_ADDRESS (-1605)
  384. /** Invalid GC physical range. Usually used when a specified range crosses
  385. * a RAM region boundary. */
  386. #define VERR_PGM_INVALID_GC_PHYSICAL_RANGE (-1606)
  387. /** Specified access handler was not found. */
  388. #define VERR_PGM_HANDLER_NOT_FOUND (-1607)
  389. /** Attempt to register a RAM range of which parts are already
  390. * covered by existing RAM ranges. */
  391. #define VERR_PGM_RAM_CONFLICT (-1608)
  392. /** Failed to add new mappings because the current mappings are fixed
  393. * in guest os memory. */
  394. #define VERR_PGM_MAPPINGS_FIXED (-1609)
  395. /** Failed to fix mappings because of a conflict with the intermediate code. */
  396. #define VERR_PGM_MAPPINGS_FIX_CONFLICT (-1610)
  397. /** Failed to fix mappings because a mapping rejected the address. */
  398. #define VERR_PGM_MAPPINGS_FIX_REJECTED (-1611)
  399. /** Failed to fix mappings because the proposed memory area was to small. */
  400. #define VERR_PGM_MAPPINGS_FIX_TOO_SMALL (-1612)
  401. /** Reason for leaving RZ: The urge to syncing CR3. */
  402. #define VINF_PGM_SYNC_CR3 1613
  403. /** Page not marked for dirty bit tracking */
  404. #define VINF_PGM_NO_DIRTY_BIT_TRACKING 1614
  405. /** Page fault caused by dirty bit tracking; corrected */
  406. #define VINF_PGM_HANDLED_DIRTY_BIT_FAULT 1615
  407. /** Go ahead with the default Read/Write operation.
  408. * This is returned by a R3 physical or virtual handler when it wants the
  409. * PGMPhys[Read|Write] routine do the reading/writing. */
  410. #define VINF_PGM_HANDLER_DO_DEFAULT 1616
  411. /** The paging mode of the host is not supported yet. */
  412. #define VERR_PGM_UNSUPPORTED_HOST_PAGING_MODE (-1617)
  413. /** The physical guest page is a reserved/MMIO page and does not have any HC
  414. * address. */
  415. #define VERR_PGM_PHYS_PAGE_RESERVED (-1618)
  416. /** No page directory available for the hypervisor. */
  417. #define VERR_PGM_NO_HYPERVISOR_ADDRESS (-1619)
  418. /** The shadow page pool was flushed.
  419. * This means that a global CR3 sync was flagged. Anyone receiving this kind of status
  420. * will have to get down to a SyncCR3 ASAP. See also VINF_PGM_SYNC_CR3. */
  421. #define VERR_PGM_POOL_FLUSHED (-1620)
  422. /** The shadow page pool was cleared.
  423. * This is a error code internal to the shadow page pool, it will be
  424. * converted to a VERR_PGM_POOL_FLUSHED before leaving the pool code. */
  425. #define VERR_PGM_POOL_CLEARED (-1621)
  426. /** The returned shadow page is cached. */
  427. #define VINF_PGM_CACHED_PAGE 1622
  428. /** Returned by handler registration, modification and deregistration
  429. * when the shadow PTs could be updated because the guest page
  430. * aliased or/and mapped by multiple PTs. */
  431. #define VINF_PGM_GCPHYS_ALIASED 1623
  432. /** Reason for leaving RC: Paging mode changed.
  433. * PGMChangeMode() uses this to force a switch to R3 so it can safely deal with
  434. * a mode switch. */
  435. #define VINF_PGM_CHANGE_MODE 1624
  436. /** SyncPage modified the PDE.
  437. * This is an internal status code used to communicate back to the \#PF handler
  438. * that the PDE was (probably) marked not-present and it should restart the instruction. */
  439. #define VINF_PGM_SYNCPAGE_MODIFIED_PDE 1625
  440. /** Physical range crosses dynamic ram chunk boundary; translation to HC ptr not safe. */
  441. #define VERR_PGM_GCPHYS_RANGE_CROSSES_BOUNDARY (-1626)
  442. /** Conflict between the core memory and the intermediate paging context, try again.
  443. * There are some very special conditions applying to the intermediate paging context
  444. * (used during the world switches), and some times we continuously run into these
  445. * when asking the host kernel for memory during VM init. Let us know if you run into
  446. * this and we'll adjust the code so it tries harder to avoid it.
  447. */
  448. #define VERR_PGM_INTERMEDIATE_PAGING_CONFLICT (-1627)
  449. /** The shadow paging mode is not supported yet. */
  450. #define VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE (-1628)
  451. /** The dynamic mapping cache for physical memory failed. */
  452. #define VERR_PGM_DYNMAP_FAILED (-1629)
  453. /** The auto usage cache for the dynamic mapping set is full. */
  454. #define VERR_PGM_DYNMAP_FULL_SET (-1630)
  455. /** The initialization of the dynamic mapping cache failed. */
  456. #define VERR_PGM_DYNMAP_SETUP_ERROR (-1631)
  457. /** The expanding of the dynamic mapping cache failed. */
  458. #define VERR_PGM_DYNMAP_EXPAND_ERROR (-1632)
  459. /** The page is unassigned (akin to VERR_PGM_INVALID_GC_PHYSICAL_ADDRESS). */
  460. #define VERR_PGM_PHYS_TLB_UNASSIGNED (-1633)
  461. /** Catch any access and route it thru PGM. */
  462. #define VERR_PGM_PHYS_TLB_CATCH_ALL (-1634)
  463. /** Catch write access and route it thru PGM. */
  464. #define VINF_PGM_PHYS_TLB_CATCH_WRITE 1635
  465. /** Catch write access and route it thru PGM. */
  466. #define VERR_PGM_PHYS_TLB_CATCH_WRITE (-1635)
  467. /** No CR3 root shadow page table.. */
  468. #define VERR_PGM_NO_CR3_SHADOW_ROOT (-1636)
  469. /** Trying to free a page with an invalid Page ID. */
  470. #define VERR_PGM_PHYS_INVALID_PAGE_ID (-1637)
  471. /** PGMPhysWrite/Read hit a handler in Ring-0 or raw-mode context. */
  472. #define VERR_PGM_PHYS_WR_HIT_HANDLER (-1638)
  473. /** Trying to free a page that isn't RAM. */
  474. #define VERR_PGM_PHYS_NOT_RAM (-1639)
  475. /** Not ROM page. */
  476. #define VERR_PGM_PHYS_NOT_ROM (-1640)
  477. /** Not MMIO page. */
  478. #define VERR_PGM_PHYS_NOT_MMIO (-1641)
  479. /** Not MMIO2 page. */
  480. #define VERR_PGM_PHYS_NOT_MMIO2 (-1642)
  481. /** Already aliased to a different page. */
  482. #define VERR_PGM_HANDLER_ALREADY_ALIASED (-1643)
  483. /** Already aliased to the same page. */
  484. #define VINF_PGM_HANDLER_ALREADY_ALIASED (1643)
  485. /** PGM pool flush pending - return to ring 3. */
  486. #define VINF_PGM_POOL_FLUSH_PENDING (1644)
  487. /** Unable to use the range for a large page. */
  488. #define VERR_PGM_INVALID_LARGE_PAGE_RANGE (-1645)
  489. /** Don't mess around with ballooned pages. */
  490. #define VERR_PGM_PHYS_PAGE_BALLOONED (-1646)
  491. /** pgmPhysPageMapCommon encountered PGMPAGETYPE_MMIO2_ALIAS_MMIO. */
  492. #define VERR_PGM_MAP_MMIO2_ALIAS_MMIO (-1651)
  493. /** Guest mappings are disabled. */
  494. #define VERR_PGM_MAPPINGS_DISABLED (-1652)
  495. /** No guest mappings when SMP is enabled. */
  496. #define VERR_PGM_MAPPINGS_SMP (-1653)
  497. /** Invalid saved page state. */
  498. #define VERR_PGM_INVALID_SAVED_PAGE_STATE (-1654)
  499. /** Encountered an unexpected page type in the saved state. */
  500. #define VERR_PGM_LOAD_UNEXPECTED_PAGE_TYPE (-1655)
  501. /** Encountered an unexpected page state in the saved state. */
  502. #define VERR_PGM_UNEXPECTED_PAGE_STATE (-1656)
  503. /** Couldn't find MMIO2 range from saved state. */
  504. #define VERR_PGM_SAVED_MMIO2_RANGE_NOT_FOUND (-1657)
  505. /** Couldn't find MMIO2 page from saved state. */
  506. #define VERR_PGM_SAVED_MMIO2_PAGE_NOT_FOUND (-1658)
  507. /** Couldn't find ROM range from saved state. */
  508. #define VERR_PGM_SAVED_ROM_RANGE_NOT_FOUND (-1659)
  509. /** Couldn't find ROM page from saved state. */
  510. #define VERR_PGM_SAVED_ROM_PAGE_NOT_FOUND (-1660)
  511. /** ROM page mismatch between saved state and the VM. */
  512. #define VERR_PGM_SAVED_ROM_PAGE_PROT (-1661)
  513. /** Unknown saved state record. */
  514. #define VERR_PGM_SAVED_REC_TYPE (-1662)
  515. /** Internal processing error in the PGM dynmap (r0/rc). */
  516. #define VERR_PGM_DYNMAP_IPE (-1663)
  517. /** Internal processing error in the PGM handy page allocator. */
  518. #define VERR_PGM_HANDY_PAGE_IPE (-1664)
  519. /** Failed to map the guest PML4. */
  520. #define VERR_PGM_PML4_MAPPING (-1665)
  521. /** Failed to obtain a pool page. */
  522. #define VERR_PGM_POOL_GET_PAGE_FAILED (-1666)
  523. /** A PGM function was called in a mode where it isn't supposed to be used. */
  524. #define VERR_PGM_NOT_USED_IN_MODE (-1667)
  525. /** The CR3 address specified memory we don't know about. */
  526. #define VERR_PGM_INVALID_CR3_ADDR (-1668)
  527. /** One or the PDPEs specified memory we don't know about. */
  528. #define VERR_PGM_INVALID_PDPE_ADDR (-1669)
  529. /** Internal processing error in the PGM physical handler code. */
  530. #define VERR_PGM_PHYS_HANDLER_IPE (-1670)
  531. /** Internal processing error \#1 in the PGM physial page mapping code. */
  532. #define VERR_PGM_PHYS_PAGE_MAP_IPE_1 (-1671)
  533. /** Internal processing error \#2 in the PGM physial page mapping code. */
  534. #define VERR_PGM_PHYS_PAGE_MAP_IPE_2 (-1672)
  535. /** Internal processing error \#3 in the PGM physial page mapping code. */
  536. #define VERR_PGM_PHYS_PAGE_MAP_IPE_3 (-1673)
  537. /** Internal processing error \#4 in the PGM physial page mapping code. */
  538. #define VERR_PGM_PHYS_PAGE_MAP_IPE_4 (-1674)
  539. /** Too many loops looking for a page to reuse. */
  540. #define VERR_PGM_POOL_TOO_MANY_LOOPS (-1675)
  541. /** Internal procesing error related to guest mappings. */
  542. #define VERR_PGM_MAPPING_IPE (-1676)
  543. /** An attempt was made to grow an already maxed out page pool. */
  544. #define VERR_PGM_POOL_MAXED_OUT_ALREADY (-1677)
  545. /** Internal processing error in the page pool code. */
  546. #define VERR_PGM_POOL_IPE (-1678)
  547. /** The write monitor is already engaged. */
  548. #define VERR_PGM_WRITE_MONITOR_ENGAGED (-1679)
  549. /** Failed to get a guest page which is expected to be present. */
  550. #define VERR_PGM_PHYS_PAGE_GET_IPE (-1680)
  551. /** We were given a NULL pPage parameter. */
  552. #define VERR_PGM_PHYS_NULL_PAGE_PARAM (-1681)
  553. /** PCI passthru is not supported by this build. */
  554. #define VERR_PGM_PCI_PASSTHRU_MISCONFIG (-1682)
  555. /** @} */
  556. /** @name Memory Monitor (MM) Status Codes
  557. * @{
  558. */
  559. /** Attempt to register a RAM range of which parts are already
  560. * covered by existing RAM ranges. */
  561. #define VERR_MM_RAM_CONFLICT (-1700)
  562. /** Hypervisor memory allocation failed. */
  563. #define VERR_MM_HYPER_NO_MEMORY (-1701)
  564. /** A bad trap type ended up in mmGCRamTrap0eHandler. */
  565. #define VERR_MM_BAD_TRAP_TYPE_IPE (-1702)
  566. /** @} */
  567. /** @name CPU Monitor (CPUM) Status Codes
  568. * @{
  569. */
  570. /** The caller shall raise an \#GP(0) exception. */
  571. #define VERR_CPUM_RAISE_GP_0 (-1750)
  572. /** Incompatible CPUM configuration. */
  573. #define VERR_CPUM_INCOMPATIBLE_CONFIG (-1751)
  574. /** CPUMR3DisasmInstrCPU unexpectedly failed to determin the hidden
  575. * parts of the CS register. */
  576. #define VERR_CPUM_HIDDEN_CS_LOAD_ERROR (-1752)
  577. /** @} */
  578. /** @name Save State Manager (SSM) Status Codes
  579. * @{
  580. */
  581. /** The specified data unit already exist. */
  582. #define VERR_SSM_UNIT_EXISTS (-1800)
  583. /** The specified data unit wasn't found. */
  584. #define VERR_SSM_UNIT_NOT_FOUND (-1801)
  585. /** The specified data unit wasn't owned by caller. */
  586. #define VERR_SSM_UNIT_NOT_OWNER (-1802)
  587. /** General saved state file integrity error. */
  588. #define VERR_SSM_INTEGRITY (-1810)
  589. /** The saved state file magic was not recognized. */
  590. #define VERR_SSM_INTEGRITY_MAGIC (-1811)
  591. /** The saved state file version is not supported. */
  592. #define VERR_SSM_INTEGRITY_VERSION (-1812)
  593. /** The saved state file size didn't match the one in the header. */
  594. #define VERR_SSM_INTEGRITY_SIZE (-1813)
  595. /** The CRC of the saved state file did not match. */
  596. #define VERR_SSM_INTEGRITY_CRC (-1814)
  597. /** The machine uuid field wasn't null. */
  598. #define VERR_SMM_INTEGRITY_MACHINE (-1815)
  599. /** Saved state header integrity error. */
  600. #define VERR_SSM_INTEGRITY_HEADER (-1816)
  601. /** Unit header integrity error. */
  602. #define VERR_SSM_INTEGRITY_UNIT (-1817)
  603. /** Invalid unit magic (internal data tag). */
  604. #define VERR_SSM_INTEGRITY_UNIT_MAGIC (-1818)
  605. /** The file contained a data unit which no-one wants. */
  606. #define VERR_SSM_INTEGRITY_UNIT_NOT_FOUND (-1819)
  607. /** Incorrect version numbers in the header. */
  608. #define VERR_SSM_INTEGRITY_VBOX_VERSION (-1820)
  609. /** Footer integrity error. */
  610. #define VERR_SSM_INTEGRITY_FOOTER (-1821)
  611. /** Record header integrity error. */
  612. #define VERR_SSM_INTEGRITY_REC_HDR (-1822)
  613. /** Termination record integrity error. */
  614. #define VERR_SSM_INTEGRITY_REC_TERM (-1823)
  615. /** Termination record CRC mismatch. */
  616. #define VERR_SSM_INTEGRITY_REC_TERM_CRC (-1824)
  617. /** Decompression interity error. */
  618. #define VERR_SSM_INTEGRITY_DECOMPRESSION (-1825)
  619. /** Saved state directory iintegrity error. */
  620. #define VERR_SSM_INTEGRITY_DIR (-1826)
  621. /** The saved state directory magic is wrong. */
  622. #define VERR_SSM_INTEGRITY_DIR_MAGIC (-1827)
  623. /** A data unit in the saved state file was defined but didn't any
  624. * routine for processing it. */
  625. #define VERR_SSM_NO_LOAD_EXEC (-1830)
  626. /** A restore routine attempted to load more data then the unit contained. */
  627. #define VERR_SSM_LOADED_TOO_MUCH (-1831)
  628. /** Not in the correct state for the attempted operation. */
  629. #define VERR_SSM_INVALID_STATE (-1832)
  630. /** Not in the correct state for the attempted operation. */
  631. #define VERR_SSM_LOADED_TOO_LITTLE (-1833)
  632. /** Unsupported data unit version.
  633. * A SSM user returns this if it doesn't know the u32Version. */
  634. #define VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION (-1840)
  635. /** The format of a data unit has changed.
  636. * A SSM user returns this if it's not able to read the format for
  637. * other reasons than u32Version. */
  638. #define VERR_SSM_DATA_UNIT_FORMAT_CHANGED (-1841)
  639. /** The CPUID instruction returns different information when loading than when saved.
  640. * Normally caused by hardware changes on the host, but could also be caused by
  641. * changes in the BIOS setup. */
  642. #define VERR_SSM_LOAD_CPUID_MISMATCH (-1842)
  643. /** The RAM size differes between the saved state and the VM config. */
  644. #define VERR_SSM_LOAD_MEMORY_SIZE_MISMATCH (-1843)
  645. /** The state doesn't match the VM configuration in one or another way.
  646. * (There are certain PCI reconfiguration which the OS could potentially
  647. * do which can cause this problem. Check this out when it happens.) */
  648. #define VERR_SSM_LOAD_CONFIG_MISMATCH (-1844)
  649. /** The virtual clock frequency differs too much.
  650. * The clock source for the virtual time isn't reliable or the code have changed. */
  651. #define VERR_SSM_VIRTUAL_CLOCK_HZ (-1845)
  652. /** A timeout occurred while waiting for async IDE operations to finish. */
  653. #define VERR_SSM_IDE_ASYNC_TIMEOUT (-1846)
  654. /** One of the structure magics was wrong. */
  655. #define VERR_SSM_STRUCTURE_MAGIC (-1847)
  656. /** The data in the saved state doesn't conform to expectations. */
  657. #define VERR_SSM_UNEXPECTED_DATA (-1848)
  658. /** Trying to read a 64-bit guest physical address into a 32-bit variable. */
  659. #define VERR_SSM_GCPHYS_OVERFLOW (-1849)
  660. /** Trying to read a 64-bit guest virtual address into a 32-bit variable. */
  661. #define VERR_SSM_GCPTR_OVERFLOW (-1850)
  662. /** Vote for another pass. */
  663. #define VINF_SSM_VOTE_FOR_ANOTHER_PASS 1851
  664. /** Vote for done tell SSM not to call again until the final pass. */
  665. #define VINF_SSM_VOTE_DONE_DONT_CALL_AGAIN 1852
  666. /** Vote for giving up. */
  667. #define VERR_SSM_VOTE_FOR_GIVING_UP (-1853)
  668. /** Don't call again until the final pass. */
  669. #define VINF_SSM_DONT_CALL_AGAIN 1854
  670. /** Giving up a live snapshot/teleportation attempt because of too many
  671. * passes. */
  672. #define VERR_SSM_TOO_MANY_PASSES (-1855)
  673. /** Giving up a live snapshot/teleportation attempt because the state grew to
  674. * big. */
  675. #define VERR_SSM_STATE_GREW_TOO_BIG (-1856)
  676. /** Giving up a live snapshot attempt because we're low on disk space. */
  677. #define VERR_SSM_LOW_ON_DISK_SPACE (-1857)
  678. /** The operation was cancelled. */
  679. #define VERR_SSM_CANCELLED (-1858)
  680. /** Nothing that can be cancelled. */
  681. #define VERR_SSM_NO_PENDING_OPERATION (-1859)
  682. /** The operation has already been cancelled. */
  683. #define VERR_SSM_ALREADY_CANCELLED (-1860)
  684. /** The machine was powered off while saving. */
  685. #define VERR_SSM_LIVE_POWERED_OFF (-1861)
  686. /** The live snapshot/teleportation operation was aborted because of a guru
  687. * meditation. */
  688. #define VERR_SSM_LIVE_GURU_MEDITATION (-1862)
  689. /** The live snapshot/teleportation operation was aborted because of a fatal
  690. * runtime error. */
  691. #define VERR_SSM_LIVE_FATAL_ERROR (-1863)
  692. /** The VM was suspended before or while saving, don't resume execution. */
  693. #define VINF_SSM_LIVE_SUSPENDED 1864
  694. /** Complex SSM field fed to SSMR3PutStruct or SSMR3GetStruct. Use the
  695. * extended API. */
  696. #define VERR_SSM_FIELD_COMPLEX (-1864)
  697. /** Invalid size of a SSM field with the specified transformation. */
  698. #define VERR_SSM_FIELD_INVALID_SIZE (-1865)
  699. /** The specified field is outside the structure. */
  700. #define VERR_SSM_FIELD_OUT_OF_BOUNDS (-1866)
  701. /** The field does not follow immediately the previous one. */
  702. #define VERR_SSM_FIELD_NOT_CONSECUTIVE (-1867)
  703. /** The field contains an invalid callback or transformation index. */
  704. #define VERR_SSM_FIELD_INVALID_CALLBACK (-1868)
  705. /** The field contains an invalid padding size. */
  706. #define VERR_SSM_FIELD_INVALID_PADDING_SIZE (-1869)
  707. /** The field contains a value that is out of range. */
  708. #define VERR_SSM_FIELD_INVALID_VALUE (-1870)
  709. /** Generic stream error. */
  710. #define VERR_SSM_STREAM_ERROR (-1871)
  711. /** SSM did a callback for a pass we didn't expect. */
  712. #define VERR_SSM_UNEXPECTED_PASS (-1872)
  713. /** Someone is trying to skip backwards in the stream... */
  714. #define VERR_SSM_SKIP_BACKWARDS (-1873)
  715. /** Someone is trying to write a memory block which is too big to encode. */
  716. #define VERR_SSM_MEM_TOO_BIG (-1874)
  717. /** Encountered an bad (/unknown) record type. */
  718. #define VERR_SSM_BAD_REC_TYPE (-1875)
  719. /** Internal processing error \#1 in SSM code. */
  720. #define VERR_SSM_IPE_1 (-1876)
  721. /** Internal processing error \#2 in SSM code. */
  722. #define VERR_SSM_IPE_2 (-1877)
  723. /** Internal processing error \#3 in SSM code. */
  724. #define VERR_SSM_IPE_3 (-1878)
  725. /** A field contained an transformation that should only be used when loading
  726. * old states. */
  727. #define VERR_SSM_FIELD_LOAD_ONLY_TRANSFORMATION (-1879)
  728. /** @} */
  729. /** @name Virtual Machine (VM) Status Codes
  730. * @{
  731. */
  732. /** The specified at reset handler wasn't found. */
  733. #define VERR_VM_ATRESET_NOT_FOUND (-1900)
  734. /** Invalid VM request type.
  735. * For the VMR3ReqAlloc() case, the caller just specified an illegal enmType. For
  736. * all the other occurrences it means indicates corruption, broken logic, or stupid
  737. * interface user. */
  738. #define VERR_VM_REQUEST_INVALID_TYPE (-1901)
  739. /** Invalid VM request state.
  740. * The state of the request packet was not the expected and accepted one(s). Either
  741. * the interface user screwed up, or we've got corruption/broken logic. */
  742. #define VERR_VM_REQUEST_STATE (-1902)
  743. /** Invalid VM request packet.
  744. * One or more of the the VM controlled packet members didn't contain the correct
  745. * values. Some thing's broken. */
  746. #define VERR_VM_REQUEST_INVALID_PACKAGE (-1903)
  747. /** The status field has not been updated yet as the request is still
  748. * pending completion. Someone queried the iStatus field before the request
  749. * has been fully processed. */
  750. #define VERR_VM_REQUEST_STATUS_STILL_PENDING (-1904)
  751. /** The request has been freed, don't read the status now.
  752. * Someone is reading the iStatus field of a freed request packet. */
  753. #define VERR_VM_REQUEST_STATUS_FREED (-1905)
  754. /** A VM api requiring EMT was called from another thread.
  755. * Use the VMR3ReqCall() apis to call it! */
  756. #define VERR_VM_THREAD_NOT_EMT (-1906)
  757. /** The VM state was invalid for the requested operation.
  758. * Go check the 'VM Statechart Diagram.gif'. */
  759. #define VERR_VM_INVALID_VM_STATE (-1907)
  760. /** The support driver is not installed.
  761. * On linux, open returned ENOENT. */
  762. #define VERR_VM_DRIVER_NOT_INSTALLED (-1908)
  763. /** The support driver is not accessible.
  764. * On linux, open returned EPERM. */
  765. #define VERR_VM_DRIVER_NOT_ACCESSIBLE (-1909)
  766. /** Was not able to load the support driver.
  767. * On linux, open returned ENODEV. */
  768. #define VERR_VM_DRIVER_LOAD_ERROR (-1910)
  769. /** Was not able to open the support driver.
  770. * Generic open error used when none of the other ones fit. */
  771. #define VERR_VM_DRIVER_OPEN_ERROR (-1911)
  772. /** The installed support driver doesn't match the version of the user. */
  773. #define VERR_VM_DRIVER_VERSION_MISMATCH (-1912)
  774. /** Saving the VM state is temporarily not allowed. Try again later. */
  775. #define VERR_VM_SAVE_STATE_NOT_ALLOWED (-1913)
  776. /** An EMT called an API which cannot be called on such a thread. */
  777. #define VERR_VM_THREAD_IS_EMT (-1914)
  778. /** Encountered an unexpected VM state. */
  779. #define VERR_VM_UNEXPECTED_VM_STATE (-1915)
  780. /** Unexpected unstable VM state. */
  781. #define VERR_VM_UNEXPECTED_UNSTABLE_STATE (-1916)
  782. /** Too many arguments passed to a VM request / request corruption. */
  783. #define VERR_VM_REQUEST_TOO_MANY_ARGS_IPE (-1917)
  784. /** Fatal EMT wait error. */
  785. #define VERR_VM_FATAL_WAIT_ERROR (-1918)
  786. /** The VM request was killed at VM termination. */
  787. #define VERR_VM_REQUEST_KILLED (-1919)
  788. /** @} */
  789. /** @name VBox Remote Desktop Protocol (VRDP) Status Codes
  790. * @{
  791. */
  792. /** Successful completion of operation (mapped to generic iprt status code). */
  793. #define VINF_VRDP_SUCCESS VINF_SUCCESS
  794. /** VRDP transport operation timed out (mapped to generic iprt status code). */
  795. #define VERR_VRDP_TIMEOUT VERR_TIMEOUT
  796. /** Unsupported ISO protocol feature */
  797. #define VERR_VRDP_ISO_UNSUPPORTED (-2000)
  798. /** Security (en/decryption) engine error */
  799. #define VERR_VRDP_SEC_ENGINE_FAIL (-2001)
  800. /** VRDP protocol violation */
  801. #define VERR_VRDP_PROTOCOL_ERROR (-2002)
  802. /** Unsupported VRDP protocol feature */
  803. #define VERR_VRDP_NOT_SUPPORTED (-2003)
  804. /** VRDP protocol violation, client sends less data than expected */
  805. #define VERR_VRDP_INSUFFICIENT_DATA (-2004)
  806. /** Internal error, VRDP packet is in wrong operation mode */
  807. #define VERR_VRDP_INVALID_MODE (-2005)
  808. /** Memory allocation failed */
  809. #define VERR_VRDP_NO_MEMORY (-2006)
  810. /** Client has been rejected */
  811. #define VERR_VRDP_ACCESS_DENIED (-2007)
  812. /** VRPD receives a packet that is not supported */
  813. #define VWRN_VRDP_PDU_NOT_SUPPORTED 2008
  814. /** VRDP script allowed the packet to be processed further */
  815. #define VINF_VRDP_PROCESS_PDU 2009
  816. /** VRDP script has completed its task */
  817. #define VINF_VRDP_OPERATION_COMPLETED 2010
  818. /** VRDP thread has started OK and will run */
  819. #define VINF_VRDP_THREAD_STARTED 2011
  820. /** Framebuffer is resized, terminate send bitmap procedure */
  821. #define VINF_VRDP_RESIZE_REQUESTED 2012
  822. /** Output can be enabled for the client. */
  823. #define VINF_VRDP_OUTPUT_ENABLE 2013
  824. /** @} */
  825. /** @name Configuration Manager (CFGM) Status Codes
  826. * @{
  827. */
  828. /** The integer value was too big for the requested representation. */
  829. #define VERR_CFGM_INTEGER_TOO_BIG (-2100)
  830. /** Child node was not found. */
  831. #define VERR_CFGM_CHILD_NOT_FOUND (-2101)
  832. /** Path to child node was invalid (i.e. empty). */
  833. #define VERR_CFGM_INVALID_CHILD_PATH (-2102)
  834. /** Value not found. */
  835. #define VERR_CFGM_VALUE_NOT_FOUND (-2103)
  836. /** No parent node specified. */
  837. #define VERR_CFGM_NO_PARENT (-2104)
  838. /** No node was specified. */
  839. #define VERR_CFGM_NO_NODE (-2105)
  840. /** The value is not an integer. */
  841. #define VERR_CFGM_NOT_INTEGER (-2106)
  842. /** The value is not a zero terminated character string. */
  843. #define VERR_CFGM_NOT_STRING (-2107)
  844. /** The value is not a byte string. */
  845. #define VERR_CFGM_NOT_BYTES (-2108)
  846. /** The specified string / bytes buffer was to small. Specify a larger one and retry. */
  847. #define VERR_CFGM_NOT_ENOUGH_SPACE (-2109)
  848. /** The path of a new node contained slashs or was empty. */
  849. #define VERR_CFGM_INVALID_NODE_PATH (-2160)
  850. /** A new node couldn't be inserted because one with the same name exists. */
  851. #define VERR_CFGM_NODE_EXISTS (-2161)
  852. /** A new leaf couldn't be inserted because one with the same name exists. */
  853. #define VERR_CFGM_LEAF_EXISTS (-2162)
  854. /** An unknown config value was encountered. */
  855. #define VERR_CFGM_CONFIG_UNKNOWN_VALUE (-2163)
  856. /** An unknown config node (key) was encountered. */
  857. #define VERR_CFGM_CONFIG_UNKNOWN_NODE (-2164)
  858. /** Internal processing error \#1 in CFGM. */
  859. #define VERR_CFGM_IPE_1 (-2165)
  860. /** @} */
  861. /** @name Time Manager (TM) Status Codes
  862. * @{
  863. */
  864. /** The loaded timer state was incorrect. */
  865. #define VERR_TM_LOAD_STATE (-2200)
  866. /** The timer was not in the correct state for the request operation. */
  867. #define VERR_TM_INVALID_STATE (-2201)
  868. /** The timer was in a unknown state. Corruption or stupid coding error. */
  869. #define VERR_TM_UNKNOWN_STATE (-2202)
  870. /** The timer was stuck in an unstable state until we grew impatient and returned. */
  871. #define VERR_TM_UNSTABLE_STATE (-2203)
  872. /** TM requires GIP. */
  873. #define VERR_TM_GIP_REQUIRED (-2204)
  874. /** TM does not support the GIP version. */
  875. #define VERR_TM_GIP_VERSION (-2205)
  876. /** The GIP update interval is too large. */
  877. #define VERR_TM_GIP_UPDATE_INTERVAL_TOO_BIG (-2206)
  878. /** The timer has a bad clock enum value, probably corruption. */
  879. #define VERR_TM_TIMER_BAD_CLOCK (-2207)
  880. /** The timer failed to reach a stable state. */
  881. #define VERR_TM_TIMER_UNSTABLE_STATE (-2208)
  882. /** Attempt to resume a running TSC. */
  883. #define VERR_TM_TSC_ALREADY_TICKING (-2209)
  884. /** Attempt to pause a paused TSC. */
  885. #define VERR_TM_TSC_ALREADY_PAUSED (-2210)
  886. /** Invalid value for cVirtualTicking. */
  887. #define VERR_TM_VIRTUAL_TICKING_IPE (-2211)
  888. /** @} */
  889. /** @name Recompiled Execution Manager (REM) Status Codes
  890. * @{
  891. */
  892. /** Fatal error in virtual hardware. */
  893. #define VERR_REM_VIRTUAL_HARDWARE_ERROR (-2300)
  894. /** Fatal error in the recompiler cpu. */
  895. #define VERR_REM_VIRTUAL_CPU_ERROR (-2301)
  896. /** Recompiler execution was interrupted by forced action. */
  897. #define VINF_REM_INTERRUPED_FF 2302
  898. /** Too many similar traps. This is a very useful debug only
  899. * check (we don't do double/triple faults in REM). */
  900. #define VERR_REM_TOO_MANY_TRAPS (-2304)
  901. /** The REM is out of breakpoint slots. */
  902. #define VERR_REM_NO_MORE_BP_SLOTS (-2305)
  903. /** The REM could not find any breakpoint on the specified address. */
  904. #define VERR_REM_BP_NOT_FOUND (-2306)
  905. /** @} */
  906. /** @name Trap Manager / Monitor (TRPM) Status Codes
  907. * @{
  908. */
  909. /** No active trap. Cannot query or reset a non-existing trap. */
  910. #define VERR_TRPM_NO_ACTIVE_TRAP (-2400)
  911. /** Active trap. Cannot assert a new trap when when one is already active. */
  912. #define VERR_TRPM_ACTIVE_TRAP (-2401)
  913. /** Reason for leaving RC: Guest tried to write to our IDT - fatal.
  914. * The VM will be terminated assuming the worst, i.e. that the
  915. * guest has read the idtr register. */
  916. #define VERR_TRPM_SHADOW_IDT_WRITE (-2402)
  917. /** Reason for leaving RC: Fatal trap in hypervisor. */
  918. #define VERR_TRPM_DONT_PANIC (-2403)
  919. /** Reason for leaving RC: Double Fault. */
  920. #define VERR_TRPM_PANIC (-2404)
  921. /** The exception was dispatched for raw-mode execution. */
  922. #define VINF_TRPM_XCPT_DISPATCHED 2405
  923. /** Bad TRPM_TRAP_IN_OP. */
  924. #define VERR_TRPM_BAD_TRAP_IN_OP (-2406)
  925. /** Internal processing error \#1 in TRPM. */
  926. #define VERR_TRPM_IPE_1 (-2407)
  927. /** Internal processing error \#2 in TRPM. */
  928. #define VERR_TRPM_IPE_2 (-2408)
  929. /** Internal processing error \#3 in TRPM. */
  930. #define VERR_TRPM_IPE_3 (-2409)
  931. /** Got into a part of TRPM that is not used when HM (VT-x/AMD-V) is enabled. */
  932. #define VERR_TRPM_HM_IPE (-2410)
  933. /** @} */
  934. /** @name Selector Manager / Monitor (SELM) Status Code
  935. * @{
  936. */
  937. /** Reason for leaving RC: Guest tried to write to our GDT - fatal.
  938. * The VM will be terminated assuming the worst, i.e. that the
  939. * guest has read the gdtr register. */
  940. #define VERR_SELM_SHADOW_GDT_WRITE (-2500)
  941. /** Reason for leaving RC: Guest tried to write to our LDT - fatal.
  942. * The VM will be terminated assuming the worst, i.e. that the
  943. * guest has read the ldtr register. */
  944. #define VERR_SELM_SHADOW_LDT_WRITE (-2501)
  945. /** Reason for leaving RC: Guest tried to write to our TSS - fatal.
  946. * The VM will be terminated assuming the worst, i.e. that the
  947. * guest has read the ltr register. */
  948. #define VERR_SELM_SHADOW_TSS_WRITE (-2502)
  949. /** Reason for leaving RC: Sync the GDT table to solve a conflict. */
  950. #define VINF_SELM_SYNC_GDT 2503
  951. /** No valid TSS present. */
  952. #define VERR_SELM_NO_TSS (-2504)
  953. /** Invalid guest LDT selector. */
  954. #define VERR_SELM_INVALID_LDT (-2505)
  955. /** The guest LDT selector is out of bounds. */
  956. #define VERR_SELM_LDT_OUT_OF_BOUNDS (-2506)
  957. /** Unknown error while reading the guest GDT during shadow table updating. */
  958. #define VERR_SELM_GDT_READ_ERROR (-2507)
  959. /** The guest GDT so full that we cannot find free space for our own
  960. * selectors. */
  961. #define VERR_SELM_GDT_TOO_FULL (-2508)
  962. /** Got into a part of SELM that is not used when HM (VT-x/AMD-V) is enabled. */
  963. #define VERR_SELM_HM_IPE (-2509)
  964. /** @} */
  965. /** @name I/O Manager / Monitor (IOM) Status Code
  966. * @{
  967. */
  968. /** The specified I/O port range was invalid.
  969. * It was either empty or it was out of bounds. */
  970. #define VERR_IOM_INVALID_IOPORT_RANGE (-2600)
  971. /** The specified R0 or RC I/O port range didn't have a corresponding R3 range.
  972. * IOMR3IOPortRegisterR3() must be called first. */
  973. #define VERR_IOM_NO_R3_IOPORT_RANGE (-2601)
  974. /** The specified I/O port range intruded on an existing range. There is
  975. * a I/O port conflict between two device, or a device tried to register
  976. * the same range twice. */
  977. #define VERR_IOM_IOPORT_RANGE_CONFLICT (-2602)
  978. /** The I/O port range specified for removal wasn't found or it wasn't contiguous. */
  979. #define VERR_IOM_IOPORT_RANGE_NOT_FOUND (-2603)
  980. /** The specified I/O port range was owned by some other device(s). Both registration
  981. * and deregistration, but in the first case only RC and R0 ranges. */
  982. #define VERR_IOM_NOT_IOPORT_RANGE_OWNER (-2604)
  983. /** The specified MMIO range was invalid.
  984. * It was either empty or it was out of bounds. */
  985. #define VERR_IOM_INVALID_MMIO_RANGE (-2605)
  986. /** The specified R0 or RC MMIO range didn't have a corresponding R3 range.
  987. * IOMR3MMIORegisterR3() must be called first. */
  988. #define VERR_IOM_NO_R3_MMIO_RANGE (-2606)
  989. /** The specified MMIO range was owned by some other device(s). Both registration
  990. * and deregistration, but in the first case only RC and R0 ranges. */
  991. #define VERR_IOM_NOT_MMIO_RANGE_OWNER (-2607)
  992. /** The specified MMIO range intruded on an existing range. There is
  993. * a MMIO conflict between two device, or a device tried to register
  994. * the same range twice. */
  995. #define VERR_IOM_MMIO_RANGE_CONFLICT (-2608)
  996. /** The MMIO range specified for removal was not found. */
  997. #define VERR_IOM_MMIO_RANGE_NOT_FOUND (-2609)
  998. /** The MMIO range specified for removal was invalid. The range didn't match
  999. * quite match a set of existing ranges. It's not possible to remove parts of
  1000. * a MMIO range, only one or more full ranges. */
  1001. #define VERR_IOM_INCOMPLETE_MMIO_RANGE (-2610)
  1002. /** An invalid I/O port size was specified for a read or write operation. */
  1003. #define VERR_IOM_INVALID_IOPORT_SIZE (-2611)
  1004. /** The MMIO handler was called for a bogus address! Internal error! */
  1005. #define VERR_IOM_MMIO_HANDLER_BOGUS_CALL (-2612)
  1006. /** The MMIO handler experienced a problem with the disassembler. */
  1007. #define VERR_IOM_MMIO_HANDLER_DISASM_ERROR (-2613)
  1008. /** The port being read was not present(/unused) and IOM shall return ~0 according to size. */
  1009. #define VERR_IOM_IOPORT_UNUSED (-2614)
  1010. /** Unused MMIO register read, fill with 00. */
  1011. #define VINF_IOM_MMIO_UNUSED_00 2615
  1012. /** Unused MMIO register read, fill with FF. */
  1013. #define VINF_IOM_MMIO_UNUSED_FF 2616
  1014. /** Reason for leaving RZ: I/O port read. */
  1015. #define VINF_IOM_R3_IOPORT_READ 2620
  1016. /** Reason for leaving RZ: I/O port write. */
  1017. #define VINF_IOM_R3_IOPORT_WRITE 2621
  1018. /** Reason for leaving RZ: MMIO write. */
  1019. #define VINF_IOM_R3_MMIO_READ 2623
  1020. /** Reason for leaving RZ: MMIO read. */
  1021. #define VINF_IOM_R3_MMIO_WRITE 2624
  1022. /** Reason for leaving RZ: MMIO read/write. */
  1023. #define VINF_IOM_R3_MMIO_READ_WRITE 2625
  1024. /** IOMGCIOPortHandler was given an unexpected opcode. */
  1025. #define VERR_IOM_IOPORT_UNKNOWN_OPCODE (-2630)
  1026. /** Internal processing error \#1 in the I/O port code. */
  1027. #define VERR_IOM_IOPORT_IPE_1 (-2631)
  1028. /** Internal processing error \#2 in the I/O port code. */
  1029. #define VERR_IOM_IOPORT_IPE_2 (-2632)
  1030. /** Internal processing error \#3 in the I/O port code. */
  1031. #define VERR_IOM_IOPORT_IPE_3 (-2633)
  1032. /** Internal processing error \#1 in the MMIO code. */
  1033. #define VERR_IOM_MMIO_IPE_1 (-2634)
  1034. /** Internal processing error \#2 in the MMIO code. */
  1035. #define VERR_IOM_MMIO_IPE_2 (-2635)
  1036. /** Internal processing error \#3 in the MMIO code. */
  1037. #define VERR_IOM_MMIO_IPE_3 (-2636)
  1038. /** Got into a part of IOM that is not used when HM (VT-x/AMD-V) is enabled. */
  1039. #define VERR_IOM_HM_IPE (-2637)
  1040. /** @} */
  1041. /** @name Virtual Machine Monitor (VMM) Status Codes
  1042. * @{
  1043. */
  1044. /** Reason for leaving RZ: Calling host function. */
  1045. #define VINF_VMM_CALL_HOST 2700
  1046. /** Reason for leaving R0: Hit a ring-0 assertion on EMT. */
  1047. #define VERR_VMM_RING0_ASSERTION (-2701)
  1048. /** The hyper CR3 differs between PGM and CPUM. */
  1049. #define VERR_VMM_HYPER_CR3_MISMATCH (-2702)
  1050. /** Reason for leaving RZ: Illegal call to ring-3. */
  1051. #define VERR_VMM_RING3_CALL_DISABLED (-2703)
  1052. /** The VMMR0.r0 module version does not match VBoxVMM.dll/so/dylib.
  1053. * If you just upgraded VirtualBox, please terminate all VMs and make sure
  1054. * VBoxNetDHCP is not running. Then try again. If this error persists, try
  1055. * re-installing VirtualBox. */
  1056. #define VERR_VMM_R0_VERSION_MISMATCH (-2704)
  1057. /** The VMMRC.rc module version does not match VBoxVMM.dll/so/dylib.
  1058. * Re-install if you are a user. Developers should make sure the build is
  1059. * complete or try with a clean build. */
  1060. #define VERR_VMM_RC_VERSION_MISMATCH (-2705)
  1061. /** VMM set jump error. */
  1062. #define VERR_VMM_SET_JMP_ERROR (-2706)
  1063. /** VMM set jump stack overflow error. */
  1064. #define VERR_VMM_SET_JMP_STACK_OVERFLOW (-2707)
  1065. /** VMM set jump resume error. */
  1066. #define VERR_VMM_SET_JMP_ABORTED_RESUME (-2708)
  1067. /** VMM long jump error. */
  1068. #define VERR_VMM_LONG_JMP_ERROR (-2709)
  1069. /** Unknown ring-3 call attempted. */
  1070. #define VERR_VMM_UNKNOWN_RING3_CALL (-2710)
  1071. /** The ring-3 call didn't set an RC. */
  1072. #define VERR_VMM_RING3_CALL_NO_RC (-2711)
  1073. /** Reason for leaving RC: Caller the tracer in ring-0. */
  1074. #define VINF_VMM_CALL_TRACER (2712)
  1075. /** Internal processing error \#1 in the switcher code. */
  1076. #define VERR_VMM_SWITCHER_IPE_1 (-2713)
  1077. /** Reason for leaving RZ: Unknown call to ring-3. */
  1078. #define VINF_VMM_UNKNOWN_RING3_CALL (2714)
  1079. /** Attempted to use stub switcher. */
  1080. #define VERR_VMM_SWITCHER_STUB (-2715)
  1081. /** HM returned in the wrong state. */
  1082. #define VERR_VMM_WRONG_HM_VMCPU_STATE (-2716)
  1083. /** @} */
  1084. /** @name Pluggable Device and Driver Manager (PDM) Status Codes
  1085. * @{
  1086. */
  1087. /** An invalid LUN specification was given. */
  1088. #define VERR_PDM_NO_SUCH_LUN (-2800)
  1089. /** A device encountered an unknown configuration value.
  1090. * This means that the device is potentially misconfigured and the device
  1091. * construction or unit attachment failed because of this. */
  1092. #define VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES (-2801)
  1093. /** The above driver doesn't export a interface required by a driver being
  1094. * attached to it. Typical misconfiguration problem. */
  1095. #define VERR_PDM_MISSING_INTERFACE_ABOVE (-2802)
  1096. /** The below driver doesn't export a interface required by the drive
  1097. * having attached it. Typical misconfiguration problem. */
  1098. #define VERR_PDM_MISSING_INTERFACE_BELOW (-2803)
  1099. /** A device didn't find a required interface with an attached driver.
  1100. * Typical misconfiguration problem. */
  1101. #define VERR_PDM_MISSING_INTERFACE (-2804)
  1102. /** A driver encountered an unknown configuration value.
  1103. * This means that the driver is potentially misconfigured and the driver
  1104. * construction failed because of this. */
  1105. #define VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES (-2805)
  1106. /** The PCI bus assigned to a device didn't have room for it.
  1107. * Either too many devices are configured on the same PCI bus, or there are
  1108. * some internal problem where PDM/PCI doesn't free up slots when unplugging devices. */
  1109. #define VERR_PDM_TOO_PCI_MANY_DEVICES (-2806)
  1110. /** A queue is out of free items, the queueing operation failed. */
  1111. #define VERR_PDM_NO_QUEUE_ITEMS (-2807)
  1112. /** Not possible to attach further drivers to the driver.
  1113. * A driver which doesn't support attachments (below of course) will
  1114. * return this status code if it found that further drivers were configured
  1115. * to be attached to it. */
  1116. #define VERR_PDM_DRVINS_NO_ATTACH (-2808)
  1117. /** Not possible to attach drivers to the device.
  1118. * A device which doesn't support attachments (below of course) will
  1119. * return this status code if it found that drivers were configured
  1120. * to be attached to it. */
  1121. #define VERR_PDM_DEVINS_NO_ATTACH (-2809)
  1122. /** No attached driver.
  1123. * The PDMDRVHLP::pfnAttach and PDMDEVHLP::pfnDriverAttach will return
  1124. * this error when no driver was configured to be attached. */
  1125. #define VERR_PDM_NO_ATTACHED_DRIVER (-2810)
  1126. /** The media geometry hasn't been set yet, so it cannot be obtained.
  1127. * The caller should then calculate the geometry from the media size. */
  1128. #define VERR_PDM_GEOMETRY_NOT_SET (-2811)
  1129. /** The media translation hasn't been set yet, so it cannot be obtained.
  1130. * The caller should then guess the translation. */
  1131. #define VERR_PDM_TRANSLATION_NOT_SET (-2812)
  1132. /** The media is not mounted, operation requires a mounted media. */
  1133. #define VERR_PDM_MEDIA_NOT_MOUNTED (-2813)
  1134. /** Mount failed because a media was already mounted. Unmount the media
  1135. * and retry the mount. */
  1136. #define VERR_PDM_MEDIA_MOUNTED (-2814)
  1137. /** The media is locked and cannot be unmounted. */
  1138. #define VERR_PDM_MEDIA_LOCKED (-2815)
  1139. /** No 'Type' attribute in the DrvBlock configuration.
  1140. * Misconfiguration. */
  1141. #define VERR_PDM_BLOCK_NO_TYPE (-2816)
  1142. /** The 'Type' attribute in the DrvBlock configuration had an unknown value.
  1143. * Misconfiguration. */
  1144. #define VERR_PDM_BLOCK_UNKNOWN_TYPE (-2817)
  1145. /** The 'Translation' attribute in the DrvBlock configuration had an unknown value.
  1146. * Misconfiguration. */
  1147. #define VERR_PDM_BLOCK_UNKNOWN_TRANSLATION (-2818)
  1148. /** The block driver type wasn't supported.
  1149. * Misconfiguration of the kind you get when attaching a floppy to an IDE controller. */
  1150. #define VERR_PDM_UNSUPPORTED_BLOCK_TYPE (-2819)
  1151. /** A attach or prepare mount call failed because the driver already
  1152. * had a driver attached. */
  1153. #define VERR_PDM_DRIVER_ALREADY_ATTACHED (-2820)
  1154. /** An attempt on deattaching a driver without anyone actually being attached, or
  1155. * performing any other operation on an attached driver. */
  1156. #define VERR_PDM_NO_DRIVER_ATTACHED (-2821)
  1157. /** The attached driver configuration is missing the 'Driver' attribute. */
  1158. #define VERR_PDM_CFG_MISSING_DRIVER_NAME (-2822)
  1159. /** The configured driver wasn't found.
  1160. * Either the necessary driver modules wasn't loaded, the name was
  1161. * misspelled, or it was a misconfiguration. */
  1162. #define VERR_PDM_DRIVER_NOT_FOUND (-2823)
  1163. /** The Ring-3 module was already loaded. */
  1164. #define VINF_PDM_ALREADY_LOADED (2824)
  1165. /** The name of the module clashed with an existing module. */
  1166. #define VERR_PDM_MODULE_NAME_CLASH (-2825)
  1167. /** Couldn't find any export for registration of drivers/devices. */
  1168. #define VERR_PDM_NO_REGISTRATION_EXPORT (-2826)
  1169. /** A module name is too long. */
  1170. #define VERR_PDM_MODULE_NAME_TOO_LONG (-2827)
  1171. /** Driver name clash. Another driver with the same name as the
  1172. * one begin registred exists. */
  1173. #define VERR_PDM_DRIVER_NAME_CLASH (-2828)
  1174. /** The version of the driver registration structure is unknown
  1175. * to this VBox version. Either mixing incompatible versions or
  1176. * the structure isn't correctly initialized. */
  1177. #define VERR_PDM_UNKNOWN_DRVREG_VERSION (-2829)
  1178. /** Invalid entry in the driver registration structure. */
  1179. #define VERR_PDM_INVALID_DRIVER_REGISTRATION (-2830)
  1180. /** Invalid host bit mask. */
  1181. #define VERR_PDM_INVALID_DRIVER_HOST_BITS (-2831)
  1182. /** Not possible to detach a driver because the above driver/device
  1183. * doesn't support it. The above entity doesn't implement the pfnDetach call. */
  1184. #define VERR_PDM_DRIVER_DETACH_NOT_POSSIBLE (-2832)
  1185. /** No PCI Bus is available to register the device with. This is usually a
  1186. * misconfiguration or in rare cases a buggy pci device. */
  1187. #define VERR_PDM_NO_PCI_BUS (-2833)
  1188. /** The device is not a registered PCI device and thus cannot
  1189. * perform any PCI operations. The device forgot to register it self. */
  1190. #define VERR_PDM_NOT_PCI_DEVICE (-2834)
  1191. /** The version of the device registration structure is unknown
  1192. * to this VBox version. Either mixing incompatible versions or
  1193. * the structure isn't correctly initialized. */
  1194. #define VERR_PDM_UNKNOWN_DEVREG_VERSION (-2835)
  1195. /** Invalid entry in the device registration structure. */
  1196. #define VERR_PDM_INVALID_DEVICE_REGISTRATION (-2836)
  1197. /** Invalid host bit mask. */
  1198. #define VERR_PDM_INVALID_DEVICE_GUEST_BITS (-2837)
  1199. /** The guest bit mask didn't match the guest being loaded. */
  1200. #define VERR_PDM_INVALID_DEVICE_HOST_BITS (-2838)
  1201. /** Device name clash. Another device with the same name as the
  1202. * one begin registred exists. */
  1203. #define VERR_PDM_DEVICE_NAME_CLASH (-2839)
  1204. /** The device wasn't found. There was no registered device
  1205. * by that name. */
  1206. #define VERR_PDM_DEVICE_NOT_FOUND (-2840)
  1207. /** The device instance was not found. */
  1208. #define VERR_PDM_DEVICE_INSTANCE_NOT_FOUND (-2841)
  1209. /** The device instance have no base interface. */
  1210. #define VERR_PDM_DEVICE_INSTANCE_NO_IBASE (-2842)
  1211. /** The device instance have no such logical unit. */
  1212. #define VERR_PDM_DEVICE_INSTANCE_LUN_NOT_FOUND (-2843)
  1213. /** The driver instance could not be found. */
  1214. #define VERR_PDM_DRIVER_INSTANCE_NOT_FOUND (-2844)
  1215. /** Logical Unit was not found. */
  1216. #define VERR_PDM_LUN_NOT_FOUND (-2845)
  1217. /** The Logical Unit was found, but it had no driver attached to it. */
  1218. #define VERR_PDM_NO_DRIVER_ATTACHED_TO_LUN (-2846)
  1219. /** The Logical Unit was found, but it had no driver attached to it. */
  1220. #define VINF_PDM_NO_DRIVER_ATTACHED_TO_LUN 2846
  1221. /** No PIC device instance is registered with the current VM and thus
  1222. * the PIC operation cannot be performed. */
  1223. #define VERR_PDM_NO_PIC_INSTANCE (-2847)
  1224. /** No APIC device instance is registered with the current VM and thus
  1225. * the APIC operation cannot be performed. */
  1226. #define VERR_PDM_NO_APIC_INSTANCE (-2848)
  1227. /** No DMAC device instance is registered with the current VM and thus
  1228. * the DMA operation cannot be performed. */
  1229. #define VERR_PDM_NO_DMAC_INSTANCE (-2849)
  1230. /** No RTC device instance is registered with the current VM and thus
  1231. * the RTC or CMOS operation cannot be performed. */
  1232. #define VERR_PDM_NO_RTC_INSTANCE (-2850)
  1233. /** Unable to open the host interface due to a sharing violation . */
  1234. #define VERR_PDM_HIF_SHARING_VIOLATION (-2851)
  1235. /** Unable to open the host interface. */
  1236. #define VERR_PDM_HIF_OPEN_FAILED (-2852)
  1237. /** The device doesn't support runtime driver attaching.
  1238. * The PDMDEVREG::pfnAttach callback function is NULL. */
  1239. #define VERR_PDM_DEVICE_NO_RT_ATTACH (-2853)
  1240. /** The driver doesn't support runtime driver attaching.
  1241. * The PDMDRVREG::pfnAttach callback function is NULL. */
  1242. #define VERR_PDM_DRIVER_NO_RT_ATTACH (-2854)
  1243. /** Invalid host interface version. */
  1244. #define VERR_PDM_HIF_INVALID_VERSION (-2855)
  1245. /** The version of the USB device registration structure is unknown
  1246. * to this VBox version. Either mixing incompatible versions or
  1247. * the structure isn't correctly initialized. */
  1248. #define VERR_PDM_UNKNOWN_USBREG_VERSION (-2856)
  1249. /** Invalid entry in the device registration structure. */
  1250. #define VERR_PDM_INVALID_USB_REGISTRATION (-2857)
  1251. /** Driver name clash. Another driver with the same name as the
  1252. * one begin registred exists. */
  1253. #define VERR_PDM_USB_NAME_CLASH (-2858)
  1254. /** The USB hub is already registered. */
  1255. #define VERR_PDM_USB_HUB_EXISTS (-2859)
  1256. /** Couldn't find any USB hubs to attach the device to. */
  1257. #define VERR_PDM_NO_USB_HUBS (-2860)
  1258. /** Couldn't find any free USB ports to attach the device to. */
  1259. #define VERR_PDM_NO_USB_PORTS (-2861)
  1260. /** Couldn't find the USB Proxy device. Using OSE? */
  1261. #define VERR_PDM_NO_USBPROXY (-2862)
  1262. /** The async completion template is still used. */
  1263. #define VERR_PDM_ASYNC_TEMPLATE_BUSY (-2863)
  1264. /** The async completion task is already suspended. */
  1265. #define VERR_PDM_ASYNC_COMPLETION_ALREADY_SUSPENDED (-2864)
  1266. /** The async completion task is not suspended. */
  1267. #define VERR_PDM_ASYNC_COMPLETION_NOT_SUSPENDED (-2865)
  1268. /** The driver properties were invalid, and as a consequence construction
  1269. * failed. Caused my unusable media or similar problems. */
  1270. #define VERR_PDM_DRIVER_INVALID_PROPERTIES (-2866)
  1271. /** Too many instances of a device. */
  1272. #define VERR_PDM_TOO_MANY_DEVICE_INSTANCES (-2867)
  1273. /** Too many instances of a driver. */
  1274. #define VERR_PDM_TOO_MANY_DRIVER_INSTANCES (-2868)
  1275. /** Too many instances of a usb device. */
  1276. #define VERR_PDM_TOO_MANY_USB_DEVICE_INSTANCES (-2869)
  1277. /** The device instance structure version has changed.
  1278. *
  1279. * If you have upgraded VirtualBox recently, please make sure you have
  1280. * terminated all VMs and upgraded any extension packs. If this error
  1281. * persists, try re-installing VirtualBox. */
  1282. #define VERR_PDM_DEVINS_VERSION_MISMATCH (-2870)
  1283. /** The device helper structure version has changed.
  1284. *
  1285. * If you have upgraded VirtualBox recently, please make sure you have
  1286. * terminated all VMs and upgraded any extension packs. If this error
  1287. * persists, try re-installing VirtualBox. */
  1288. #define VERR_PDM_DEVHLPR3_VERSION_MISMATCH (-2871)
  1289. /** The USB device instance structure version has changed.
  1290. *
  1291. * If you have upgraded VirtualBox recently, please make sure you have
  1292. * terminated all VMs and upgraded any extension packs. If this error
  1293. * persists, try re-installing VirtualBox. */
  1294. #define VERR_PDM_USBINS_VERSION_MISMATCH (-2872)
  1295. /** The USB device helper structure version has changed.
  1296. *
  1297. * If you have upgraded VirtualBox recently, please make sure you have
  1298. * terminated all VMs and upgraded any extension packs. If this error
  1299. * persists, try re-installing VirtualBox. */
  1300. #define VERR_PDM_USBHLPR3_VERSION_MISMATCH (-2873)
  1301. /** The driver instance structure version has changed.
  1302. *
  1303. * If you have upgraded VirtualBox recently, please make sure you have
  1304. * terminated all VMs and upgraded any extension packs. If this error
  1305. * persists, try re-installing VirtualBox. */
  1306. #define VERR_PDM_DRVINS_VERSION_MISMATCH (-2874)
  1307. /** The driver helper structure version has changed.
  1308. *
  1309. * If you have upgraded VirtualBox recently, please make sure you have
  1310. * terminated all VMs and upgraded any extension packs. If this error
  1311. * persists, try re-installing VirtualBox. */
  1312. #define VERR_PDM_DRVHLPR3_VERSION_MISMATCH (-2875)
  1313. /** Generic device structure version mismatch.
  1314. *
  1315. * If you have upgraded VirtualBox recently, please make sure you have
  1316. * terminated all VMs and upgraded any extension packs. If this error
  1317. * persists, try re-installing VirtualBox. */
  1318. #define VERR_PDM_DEVICE_VERSION_MISMATCH (-2876)
  1319. /** Generic USB device structure version mismatch.
  1320. *
  1321. * If you have upgraded VirtualBox recently, please make sure you have
  1322. * terminated all VMs and upgraded any extension packs. If this error
  1323. * persists, try re-installing VirtualBox. */
  1324. #define VERR_PDM_USBDEV_VERSION_MISMATCH (-2877)
  1325. /** Generic driver structure version mismatch.
  1326. *
  1327. * If you have upgraded VirtualBox recently, please make sure you have
  1328. * terminated all VMs and upgraded any extension packs. If this error
  1329. * persists, try re-installing VirtualBox. */
  1330. #define VERR_PDM_DRIVER_VERSION_MISMATCH (-2878)
  1331. /** PDMVMMDevHeapR3ToGCPhys failure. */
  1332. #define VERR_PDM_DEV_HEAP_R3_TO_GCPHYS (-2879)
  1333. /** A legacy device isn't implementing the HPET notification interface. */
  1334. #define VERR_PDM_HPET_LEGACY_NOTIFY_MISSING (-2880)
  1335. /** Internal processing error in the critical section code. */
  1336. #define VERR_PDM_CRITSECT_IPE (-2881)
  1337. /** The critical section being deleted was not found. */
  1338. #define VERR_PDM_CRITSECT_NOT_FOUND (-2882)
  1339. /** A PDMThread API was called by the wrong thread. */
  1340. #define VERR_PDM_THREAD_INVALID_CALLER (-2883)
  1341. /** Internal processing error \#1 in the PDM Thread code. */
  1342. #define VERR_PDM_THREAD_IPE_1 (-2884)
  1343. /** Internal processing error \#2 in the PDM Thread code. */
  1344. #define VERR_PDM_THREAD_IPE_2 (-2885)
  1345. /** Only one PCI function is supported per PDM device. */
  1346. #define VERR_PDM_ONE_PCI_FUNCTION_PER_DEVICE (-2886)
  1347. /** Bad PCI configuration. */
  1348. #define VERR_PDM_BAD_PCI_CONFIG (-2887)
  1349. /** Internal processing error # in the PDM device code. */
  1350. #define VERR_PDM_DEV_IPE_1 (-2888)
  1351. /** Misconfigured driver chain transformation. */
  1352. #define VERR_PDM_MISCONFIGURED_DRV_TRANSFORMATION (-2889)
  1353. /** The driver is already removed, not more transformations possible (at
  1354. * present). */
  1355. #define VERR_PDM_CANNOT_TRANSFORM_REMOVED_DRIVER (-2890)
  1356. /** The PCI device isn't configured as a busmaster, physical memory access
  1357. * rejected. */
  1358. #define VERR_PDM_NOT_PCI_BUS_MASTER (-2891)
  1359. /** Got into a part of PDM that is not used when HM (VT-x/AMD-V) is enabled. */
  1360. #define VERR_PDM_HM_IPE (-2892)
  1361. /** @} */
  1362. /** @name Host-Guest Communication Manager (HGCM) Status Codes
  1363. * @{
  1364. */
  1365. /** Requested service does not exist. */
  1366. #define VERR_HGCM_SERVICE_NOT_FOUND (-2900)
  1367. /** Service rejected client connection */
  1368. #define VINF_HGCM_CLIENT_REJECTED 2901
  1369. /** Command address is invalid. */
  1370. #define VERR_HGCM_INVALID_CMD_ADDRESS (-2902)
  1371. /** Service will execute the command in background. */
  1372. #define VINF_HGCM_ASYNC_EXECUTE 2903
  1373. /** HGCM could not perform requested operation because of an internal error. */
  1374. #define VERR_HGCM_INTERNAL (-2904)
  1375. /** Invalid HGCM client id. */
  1376. #define VERR_HGCM_INVALID_CLIENT_ID (-2905)
  1377. /** The HGCM is saving state. */
  1378. #define VINF_HGCM_SAVE_STATE (2906)
  1379. /** Requested service already exists. */
  1380. #define VERR_HGCM_SERVICE_EXISTS (-2907)
  1381. /** @} */
  1382. /** @name Network Address Translation Driver (DrvNAT) Status Codes
  1383. * @{
  1384. */
  1385. /** Failed to find the DNS configured for this machine. */
  1386. #define VINF_NAT_DNS 3000
  1387. /** Failed to convert the specified Guest IP to a binary IP address.
  1388. * Malformed input. */
  1389. #define VERR_NAT_REDIR_GUEST_IP (-3001)
  1390. /** Failed while setting up a redirector rule.
  1391. * There probably is a conflict between the rule and some existing
  1392. * service on the computer. */
  1393. #define VERR_NAT_REDIR_SETUP (-3002)
  1394. /** @} */
  1395. /** @name HostIF Driver (DrvTUN) Status Codes
  1396. * @{
  1397. */
  1398. /** The Host Interface Networking init program failed. */
  1399. #define VERR_HOSTIF_INIT_FAILED (-3100)
  1400. /** The Host Interface Networking device name is too long. */
  1401. #define VERR_HOSTIF_DEVICE_NAME_TOO_LONG (-3101)
  1402. /** The Host Interface Networking name config IOCTL call failed. */
  1403. #define VERR_HOSTIF_IOCTL (-3102)
  1404. /** Failed to make the Host Interface Networking handle non-blocking. */
  1405. #define VERR_HOSTIF_BLOCKING (-3103)
  1406. /** If a Host Interface Networking filehandle was specified it's not allowed to
  1407. * have any init or term programs. */
  1408. #define VERR_HOSTIF_FD_AND_INIT_TERM (-3104)
  1409. /** The Host Interface Networking terminate program failed. */
  1410. #define VERR_HOSTIF_TERM_FAILED (-3105)
  1411. /** @} */
  1412. /** @name VBox HDD Container (VD) Status Codes
  1413. * @{
  1414. */
  1415. /** Invalid image type. */
  1416. #define VERR_VD_INVALID_TYPE (-3200)
  1417. /** Operation can't be done in current HDD container state. */
  1418. #define VERR_VD_INVALID_STATE (-3201)
  1419. /** Configuration value not found. */
  1420. #define VERR_VD_VALUE_NOT_FOUND (-3202)
  1421. /** Virtual HDD is not opened. */
  1422. #define VERR_VD_NOT_OPENED (-3203)
  1423. /** Requested image is not opened. */
  1424. #define VERR_VD_IMAGE_NOT_FOUND (-3204)
  1425. /** Image is read-only. */
  1426. #define VERR_VD_IMAGE_READ_ONLY (-3205)
  1427. /** Geometry hasn't been set. */
  1428. #define VERR_VD_GEOMETRY_NOT_SET (-3206)
  1429. /** No data for this block in image. */
  1430. #define VERR_VD_BLOCK_FREE (-3207)
  1431. /** Differencing and parent images can't be used together due to UUID. */
  1432. #define VERR_VD_UUID_MISMATCH (-3208)
  1433. /** Asynchronous I/O request finished. */
  1434. #define VINF_VD_ASYNC_IO_FINISHED 3209
  1435. /** Asynchronous I/O is not finished yet. */
  1436. #define VERR_VD_ASYNC_IO_IN_PROGRESS (-3210)
  1437. /** The image is too small or too large for this format. */
  1438. #define VERR_VD_INVALID_SIZE (-3211)
  1439. /** Generic: Invalid image file header. Use this for plugins. */
  1440. #define VERR_VD_GEN_INVALID_HEADER (-3220)
  1441. /** VDI: Invalid image file header. */
  1442. #define VERR_VD_VDI_INVALID_HEADER (-3230)
  1443. /** VDI: Invalid image file header: invalid signature. */
  1444. #define VERR_VD_VDI_INVALID_SIGNATURE (-3231)
  1445. /** VDI: Invalid image file header: invalid version. */
  1446. #define VERR_VD_VDI_UNSUPPORTED_VERSION (-3232)
  1447. /** Comment string is too long. */
  1448. #define VERR_VD_VDI_COMMENT_TOO_LONG (-3233)
  1449. /** VMDK: Invalid image file header. */
  1450. #define VERR_VD_VMDK_INVALID_HEADER (-3240)
  1451. /** VMDK: Invalid image file header: invalid version. */
  1452. #define VERR_VD_VMDK_UNSUPPORTED_VERSION (-3241)
  1453. /** VMDK: Image property not found. */
  1454. #define VERR_VD_VMDK_VALUE_NOT_FOUND (-3242)
  1455. /** VMDK: Operation can't be done in current image state. */
  1456. #define VERR_VD_VMDK_INVALID_STATE (-3243)
  1457. /** VMDK: Format is invalid/inconsistent. */
  1458. #define VERR_VD_VMDK_INVALID_FORMAT (-3244)
  1459. /** VMDK: Invalid write position. */
  1460. #define VERR_VD_VMDK_INVALID_WRITE (-3245)
  1461. /** iSCSI: Invalid header, i.e. dummy for validity check. */
  1462. #define VERR_VD_ISCSI_INVALID_HEADER (-3250)
  1463. /** iSCSI: Configuration value is unknown. This indicates misconfiguration. */
  1464. #define VERR_VD_ISCSI_UNKNOWN_CFG_VALUES (-3251)
  1465. /** iSCSI: Interface is unknown. This indicates misconfiguration. */
  1466. #define VERR_VD_ISCSI_UNKNOWN_INTERFACE (-3252)
  1467. /** iSCSI: Operation can't be done in current image state. */
  1468. #define VERR_VD_ISCSI_INVALID_STATE (-3253)
  1469. /** iSCSI: Invalid device type (not a disk). */
  1470. #define VERR_VD_ISCSI_INVALID_TYPE (-3254)
  1471. /** iSCSI: Initiator secret not decrypted */
  1472. #define VERR_VD_ISCSI_SECRET_ENCRYPTED (-3255)
  1473. /** VHD: Invalid image file header. */
  1474. #define VERR_VD_VHD_INVALID_HEADER (-3260)
  1475. /** Parallels HDD: Invalid image file header. */
  1476. #define VERR_VD_PARALLELS_INVALID_HEADER (-3265)
  1477. /** DMG: Invalid image file header. */
  1478. #define VERR_VD_DMG_INVALID_HEADER (-3267)
  1479. /** Raw: Invalid image file header. */
  1480. #define VERR_VD_RAW_INVALID_HEADER (-3270)
  1481. /** Raw: Invalid image file type. */
  1482. #define VERR_VD_RAW_INVALID_TYPE (-3271)
  1483. /** The backend needs more metadata before it can continue. */
  1484. #define VERR_VD_NOT_ENOUGH_METADATA (-3272)
  1485. /** Halt the current I/O context until further notification from the backend. */
  1486. #define VERR_VD_IOCTX_HALT (-3273)
  1487. /** The disk has a cache attached already. */
  1488. #define VERR_VD_CACHE_ALREADY_EXISTS (-3274)
  1489. /** There is no cache attached to the disk. */
  1490. #define VERR_VD_CACHE_NOT_FOUND (-3275)
  1491. /** The cache is not up to date with the image. */
  1492. #define VERR_VD_CACHE_NOT_UP_TO_DATE (-3276)
  1493. /** The given range does not meet the required alignment. */
  1494. #define VERR_VD_DISCARD_ALIGNMENT_NOT_MET (-3277)
  1495. /** The discard operation is not supported for this image. */
  1496. #define VERR_VD_DISCARD_NOT_SUPPORTED (-3278)
  1497. /** The image is the correct format but is corrupted. */
  1498. #define VERR_VD_IMAGE_CORRUPTED (-3279)
  1499. /** Repairing the image is not supported. */
  1500. #define VERR_VD_IMAGE_REPAIR_NOT_SUPPORTED (-3280)
  1501. /** Repairing the image is not possible because the corruption is to severe. */
  1502. #define VERR_VD_IMAGE_REPAIR_IMPOSSIBLE (-3281)
  1503. /** Reading from the image was not possible because the offset is out of the image range.
  1504. * This usually indicates that there is a minor corruption in the image meta data. */
  1505. #define VERR_VD_READ_OUT_OF_RANGE (-3282)
  1506. /** Block read was marked as free in the image and returned as a zero block. */
  1507. #define VINF_VD_NEW_ZEROED_BLOCK 3283
  1508. /** @} */
  1509. /** @name VBox Guest Library (VBGL) Status Codes
  1510. * @{
  1511. */
  1512. /** Library was not initialized. */
  1513. #define VERR_VBGL_NOT_INITIALIZED (-3300)
  1514. /** Virtual address was not allocated by the library. */
  1515. #define VERR_VBGL_INVALID_ADDR (-3301)
  1516. /** IOCtl to VBoxGuest driver failed. */
  1517. #define VERR_VBGL_IOCTL_FAILED (-3302)
  1518. /** @} */
  1519. /** @name VBox USB (VUSB) Status Codes
  1520. * @{
  1521. */
  1522. /** No available ports on the hub.
  1523. * This error is returned when a device is attempted created and/or attached
  1524. * to a hub which is out of ports. */
  1525. #define VERR_VUSB_NO_PORTS (-3400)
  1526. /** The requested operation cannot be performed on a detached USB device. */
  1527. #define VERR_VUSB_DEVICE_NOT_ATTACHED (-3401)
  1528. /** Failed to allocate memory for a URB. */
  1529. #define VERR_VUSB_NO_URB_MEMORY (-3402)
  1530. /** General failure during URB queuing.
  1531. * This will go away when the queueing gets proper status code handling. */
  1532. #define VERR_VUSB_FAILED_TO_QUEUE_URB (-3403)
  1533. /** Device creation failed because the USB device name was not found. */
  1534. #define VERR_VUSB_DEVICE_NAME_NOT_FOUND (-3404)
  1535. /** Not permitted to open the USB device.
  1536. * The user doesn't have access to the device in the usbfs, check the mount options. */
  1537. #define VERR_VUSB_USBFS_PERMISSION (-3405)
  1538. /** The requested operation cannot be performed because the device
  1539. * is currently being reset. */
  1540. #define VERR_VUSB_DEVICE_IS_RESETTING (-3406)
  1541. /** The requested operation cannot be performed because the device
  1542. * is currently suspended. */
  1543. #define VERR_VUSB_DEVICE_IS_SUSPENDED (-3407)
  1544. /** Not permitted to open the USB device.
  1545. * The user doesn't have access to the device node, check group memberships. */
  1546. #define VERR_VUSB_USB_DEVICE_PERMISSION (-3408)
  1547. /** @} */
  1548. /** @name VBox VGA Status Codes
  1549. * @{
  1550. */
  1551. /** One of the custom modes was incorrect.
  1552. * The format or bit count of the custom mode value is invalid. */
  1553. #define VERR_VGA_INVALID_CUSTOM_MODE (-3500)
  1554. /** The display connector is resizing. */
  1555. #define VINF_VGA_RESIZE_IN_PROGRESS (3501)
  1556. /** @} */
  1557. /** @name Internal Networking Status Codes
  1558. * @{
  1559. */
  1560. /** The networking interface to filter was not found. */
  1561. #define VERR_INTNET_FLT_IF_NOT_FOUND (-3600)
  1562. /** The networking interface to filter was busy (used by someone). */
  1563. #define VERR_INTNET_FLT_IF_BUSY (-3601)
  1564. /** Failed to create or connect to a networking interface filter. */
  1565. #define VERR_INTNET_FLT_IF_FAILED (-3602)
  1566. /** The network already exists with a different trunk configuration. */
  1567. #define VERR_INTNET_INCOMPATIBLE_TRUNK (-3603)
  1568. /** The network already exists with a different security profile (restricted / public). */
  1569. #define VERR_INTNET_INCOMPATIBLE_FLAGS (-3604)
  1570. /** Failed to create a virtual network interface instance. */
  1571. #define VERR_INTNET_FLT_VNIC_CREATE_FAILED (-3605)
  1572. /** @} */
  1573. /** @name Support Driver Status Codes
  1574. * @{
  1575. */
  1576. /** The component factory was not found. */
  1577. #define VERR_SUPDRV_COMPONENT_NOT_FOUND (-3700)
  1578. /** The component factories do not support the requested interface. */
  1579. #define VERR_SUPDRV_INTERFACE_NOT_SUPPORTED (-3701)
  1580. /** The service module was not found. */
  1581. #define VERR_SUPDRV_SERVICE_NOT_FOUND (-3702)
  1582. /** The host kernel is too old. */
  1583. #define VERR_SUPDRV_KERNEL_TOO_OLD_FOR_VTX (-3703)
  1584. /** Bad VTG magic value. */
  1585. #define VERR_SUPDRV_VTG_MAGIC (-3704)
  1586. /** Bad VTG bit count value. */
  1587. #define VERR_SUPDRV_VTG_BITS (-3705)
  1588. /** Bad VTG header - misc. */
  1589. #define VERR_SUPDRV_VTG_BAD_HDR_MISC (-3706)
  1590. /** Bad VTG header - offset. */
  1591. #define VERR_SUPDRV_VTG_BAD_HDR_OFF (-3707)
  1592. /** Bad VTG header - offset. */
  1593. #define VERR_SUPDRV_VTG_BAD_HDR_PTR (-3708)
  1594. /** Bad VTG header - to low value. */
  1595. #define VERR_SUPDRV_VTG_BAD_HDR_TOO_FEW (-3709)
  1596. /** Bad VTG header - to high value. */
  1597. #define VERR_SUPDRV_VTG_BAD_HDR_TOO_MUCH (-3710)
  1598. /** Bad VTG header - size value is not a multiple of the structure size. */
  1599. #define VERR_SUPDRV_VTG_BAD_HDR_NOT_MULTIPLE (-3711)
  1600. /** Bad VTG string table offset. */
  1601. #define VERR_SUPDRV_VTG_STRTAB_OFF (-3712)
  1602. /** Bad VTG string. */
  1603. #define VERR_SUPDRV_VTG_BAD_STRING (-3713)
  1604. /** VTG string is too long. */
  1605. #define VERR_SUPDRV_VTG_STRING_TOO_LONG (-3714)
  1606. /** Bad VTG attribute value. */
  1607. #define VERR_SUPDRV_VTG_BAD_ATTR (-3715)
  1608. /** Bad VTG provider descriptor. */
  1609. #define VERR_SUPDRV_VTG_BAD_PROVIDER (-3716)
  1610. /** Bad VTG probe descriptor. */
  1611. #define VERR_SUPDRV_VTG_BAD_PROBE (-3717)
  1612. /** Bad VTG argument list descriptor. */
  1613. #define VERR_SUPDRV_VTG_BAD_ARGLIST (-3718)
  1614. /** Bad VTG probe enabled data. */
  1615. #define VERR_SUPDRV_VTG_BAD_PROBE_ENABLED (-3719)
  1616. /** Bad VTG probe location record. */
  1617. #define VERR_SUPDRV_VTG_BAD_PROBE_LOC (-3720)
  1618. /** The VTG object for the session or image has already been registered. */
  1619. #define VERR_SUPDRV_VTG_ALREADY_REGISTERED (-3721)
  1620. /** A driver may only register one VTG object per session. */
  1621. #define VERR_SUPDRV_VTG_ONLY_ONCE_PER_SESSION (-3722)
  1622. /** A tracer has already been registered. */
  1623. #define VERR_SUPDRV_TRACER_ALREADY_REGISTERED (-3723)
  1624. /** The session has no tracer associated with it. */
  1625. #define VERR_SUPDRV_TRACER_NOT_REGISTERED (-3724)
  1626. /** The tracer has already been opened in this sesssion. */
  1627. #define VERR_SUPDRV_TRACER_ALREADY_OPENED (-3725)
  1628. /** The tracer has not been opened. */
  1629. #define VERR_SUPDRV_TRACER_NOT_OPENED (-3726)
  1630. /** There is no tracer present. */
  1631. #define VERR_SUPDRV_TRACER_NOT_PRESENT (-3727)
  1632. /** The tracer is unloading. */
  1633. #define VERR_SUPDRV_TRACER_UNLOADING (-3728)
  1634. /** Another thread in the session is talking to the tracer. */
  1635. #define VERR_SUPDRV_TRACER_SESSION_BUSY (-3729)
  1636. /** The tracer cannot open it self in the same session. */
  1637. #define VERR_SUPDRV_TRACER_CANNOT_OPEN_SELF (-3730)
  1638. /** Bad argument flags. */
  1639. #define VERR_SUPDRV_TRACER_BAD_ARG_FLAGS (-3731)
  1640. /** The session has reached the max number of (user mode) providers. */
  1641. #define VERR_SUPDRV_TRACER_TOO_MANY_PROVIDERS (-3732)
  1642. /** The tracepoint provider object is too large. */
  1643. #define VERR_SUPDRV_TRACER_TOO_LARGE (-3733)
  1644. /** The probe location array isn't adjacent to the probe enable array. */
  1645. #define VERR_SUPDRV_TRACER_UMOD_NOT_ADJACENT (-3734)
  1646. /** The user mode tracepoint provider has too many probe locations and
  1647. * probes. */
  1648. #define VERR_SUPDRV_TRACER_UMOD_TOO_MANY_PROBES (-3735)
  1649. /** The user mode tracepoint provider string table is too large. */
  1650. #define VERR_SUPDRV_TRACER_UMOD_STRTAB_TOO_BIG (-3736)
  1651. /** The user mode tracepoint provider string table offset is bad. */
  1652. #define VERR_SUPDRV_TRACER_UMOD_STRTAB_OFF_BAD (-3737)
  1653. /** @} */
  1654. /** @name Support Library Status Codes
  1655. * @{
  1656. */
  1657. /** The specified path was not absolute (hardening). */
  1658. #define VERR_SUPLIB_PATH_NOT_ABSOLUTE (-3750)
  1659. /** The specified path was not clean (hardening). */
  1660. #define VERR_SUPLIB_PATH_NOT_CLEAN (-3751)
  1661. /** The specified path is too long (hardening). */
  1662. #define VERR_SUPLIB_PATH_TOO_LONG (-3752)
  1663. /** The specified path is too short (hardening). */
  1664. #define VERR_SUPLIB_PATH_TOO_SHORT (-3753)
  1665. /** The specified path has too many components (hardening). */
  1666. #define VERR_SUPLIB_PATH_TOO_MANY_COMPONENTS (-3754)
  1667. /** The specified path is a root path (hardening). */
  1668. #define VERR_SUPLIB_PATH_IS_ROOT (-3755)
  1669. /** Failed to enumerate directory (hardening). */
  1670. #define VERR_SUPLIB_DIR_ENUM_FAILED (-3756)
  1671. /** Failed to stat a file/dir during enumeration (hardening). */
  1672. #define VERR_SUPLIB_STAT_ENUM_FAILED (-3757)
  1673. /** Failed to stat a file/dir (hardening). */
  1674. #define VERR_SUPLIB_STAT_FAILED (-3758)
  1675. /** Failed to fstat a native handle (hardening). */
  1676. #define VERR_SUPLIB_FSTAT_FAILED (-3759)
  1677. /** Found an illegal symbolic link (hardening). */
  1678. #define VERR_SUPLIB_SYMLINKS_ARE_NOT_PERMITTED (-3760)
  1679. /** Found something which isn't a file nor a directory (hardening). */
  1680. #define VERR_SUPLIB_NOT_DIR_NOT_FILE (-3761)
  1681. /** The specified path is a directory and not a file (hardening). */
  1682. #define VERR_SUPLIB_IS_DIRECTORY (-3762)
  1683. /** The specified path is a file and not a directory (hardening). */
  1684. #define VERR_SUPLIB_IS_FILE (-3763)
  1685. /** The path is not the same object as the native handle (hardening). */
  1686. #define VERR_SUPLIB_NOT_SAME_OBJECT (-3764)
  1687. /** The owner is not root (hardening). */
  1688. #define VERR_SUPLIB_OWNER_NOT_ROOT (-3765)
  1689. /** The group is a non-system group and it has write access (hardening). */
  1690. #define VERR_SUPLIB_WRITE_NON_SYS_GROUP (-3766)
  1691. /** The file or directory is world writable (hardening). */
  1692. #define VERR_SUPLIB_WORLD_WRITABLE (-3767)
  1693. /** The argv[0] of an internal application does not match the executable image
  1694. * path (hardening). */
  1695. #define VERR_SUPLIB_INVALID_ARGV0_INTERNAL (-3768)
  1696. /** The internal application does not reside in the correct place (hardening). */
  1697. #define VERR_SUPLIB_INVALID_INTERNAL_APP_DIR (-3769)
  1698. /** @} */
  1699. /** @name VBox GMM Status Codes
  1700. * @{
  1701. */
  1702. /** The GMM is out of pages and needs to be give another chunk of user memory that
  1703. * it can lock down and borrow pages from. */
  1704. #define VERR_GMM_SEED_ME (-3800)
  1705. /** Unable to allocate more pages from the host system. */
  1706. #define VERR_GMM_OUT_OF_MEMORY (-3801)
  1707. /** Hit the global allocation limit.
  1708. * If you know there is still sufficient memory available, try raising the limit. */
  1709. #define VERR_GMM_HIT_GLOBAL_LIMIT (-3802)
  1710. /** Hit the a VM account limit. */
  1711. #define VERR_GMM_HIT_VM_ACCOUNT_LIMIT (-3803)
  1712. /** Attempt to free more memory than what was previously allocated. */
  1713. #define VERR_GMM_ATTEMPT_TO_FREE_TOO_MUCH (-3804)
  1714. /** Attempted to report too many pages as deflated. */
  1715. #define VERR_GMM_ATTEMPT_TO_DEFLATE_TOO_MUCH (-3805)
  1716. /** The page to be freed or updated was not found. */
  1717. #define VERR_GMM_PAGE_NOT_FOUND (-3806)
  1718. /** The specified shared page was not actually private. */
  1719. #define VERR_GMM_PAGE_NOT_PRIVATE (-3807)
  1720. /** The specified shared page was not actually shared. */
  1721. #define VERR_GMM_PAGE_NOT_SHARED (-3808)
  1722. /** The page to be freed was already freed. */
  1723. #define VERR_GMM_PAGE_ALREADY_FREE (-3809)
  1724. /** The page to be updated or freed was noted owned by the caller. */
  1725. #define VERR_GMM_NOT_PAGE_OWNER (-3810)
  1726. /** The specified chunk was not found. */
  1727. #define VERR_GMM_CHUNK_NOT_FOUND (-3811)
  1728. /** The chunk has already been mapped into the process. */
  1729. #define VERR_GMM_CHUNK_ALREADY_MAPPED (-3812)
  1730. /** The chunk to be unmapped isn't actually mapped into the process. */
  1731. #define VERR_GMM_CHUNK_NOT_MAPPED (-3813)
  1732. /** The chunk has been mapped too many times already (impossible). */
  1733. #define VERR_GMM_TOO_MANY_CHUNK_MAPPINGS (-3814)
  1734. /** The reservation or reservation update was declined - too many VMs, too
  1735. * little memory, and/or too low GMM configuration. */
  1736. #define VERR_GMM_MEMORY_RESERVATION_DECLINED (-3815)
  1737. /** A GMM sanity check failed. */
  1738. #define VERR_GMM_IS_NOT_SANE (-3816)
  1739. /** Inserting a new chunk failed. */
  1740. #define VERR_GMM_CHUNK_INSERT (-3817)
  1741. /** Failed to obtain the GMM instance. */
  1742. #define VERR_GMM_INSTANCE (-3818)
  1743. /** Bad mutex semaphore flags. */
  1744. #define VERR_GMM_MTX_FLAGS (-3819)
  1745. /** Internal processing error in the page allocator. */
  1746. #define VERR_GMM_ALLOC_PAGES_IPE (-3820)
  1747. /** Invalid page count given to GMMR3FreePagesPerform. */
  1748. #define VERR_GMM_ACTUAL_PAGES_IPE (-3821)
  1749. /** The shared module name is too long. */
  1750. #define VERR_GMM_MODULE_NAME_TOO_LONG (-3822)
  1751. /** The shared module version string is too long. */
  1752. #define VERR_GMM_MODULE_VERSION_TOO_LONG (-3823)
  1753. /** The shared module has too many regions. */
  1754. #define VERR_GMM_TOO_MANY_REGIONS (-3824)
  1755. /** The guest has reported too many modules. */
  1756. #define VERR_GMM_TOO_MANY_PER_VM_MODULES (-3825)
  1757. /** The guest has reported too many modules. */
  1758. #define VERR_GMM_TOO_MANY_GLOBAL_MODULES (-3826)
  1759. /** The shared module is already registered. */
  1760. #define VINF_GMM_SHARED_MODULE_ALREADY_REGISTERED (3827)
  1761. /** The shared module clashed address wise with a previously registered
  1762. * module. */
  1763. #define VERR_GMM_SHARED_MODULE_ADDRESS_CLASH (-3828)
  1764. /** The shared module was not found. */
  1765. #define VERR_GMM_SHARED_MODULE_NOT_FOUND (-3829)
  1766. /** The size of the shared module was out of range. */
  1767. #define VERR_GMM_BAD_SHARED_MODULE_SIZE (-3830)
  1768. /** The size of the one or more regions in the shared module was out of
  1769. * range. */
  1770. #define VERR_GMM_SHARED_MODULE_BAD_REGIONS_SIZE (-3831)
  1771. /** @} */
  1772. /** @name VBox GVM Status Codes
  1773. * @{
  1774. */
  1775. /** The GVM is out of VM handle space. */
  1776. #define VERR_GVM_TOO_MANY_VMS (-3900)
  1777. /** The EMT was not blocked at the time of the call. */
  1778. #define VINF_GVM_NOT_BLOCKED 3901
  1779. /** The EMT was not busy running guest code at the time of the call. */
  1780. #define VINF_GVM_NOT_BUSY_IN_GC 3902
  1781. /** RTThreadYield was called during a GVMMR0SchedPoll call. */
  1782. #define VINF_GVM_YIELDED 3903
  1783. /** @} */
  1784. /** @name VBox VMX Status Codes
  1785. * @{
  1786. */
  1787. /** Invalid VMCS index or write to read-only element. */
  1788. #define VERR_VMX_INVALID_VMCS_FIELD (-4000)
  1789. /** Invalid VMCS pointer. */
  1790. #define VERR_VMX_INVALID_VMCS_PTR (-4001)
  1791. /** Invalid VMXON pointer. */
  1792. #define VERR_VMX_INVALID_VMXON_PTR (-4002)
  1793. /** Invalid CPU mode for VMX execution. */
  1794. #define VERR_VMX_UNSUPPORTED_MODE (-4004)
  1795. /** Unable to start VM execution. */
  1796. #define VERR_VMX_UNABLE_TO_START_VM (-4005)
  1797. /** Unable to switch due to invalid host state. */
  1798. #define VERR_VMX_INVALID_HOST_STATE (-4007)
  1799. /** IA32_FEATURE_CONTROL MSR not setup correcty (turn on VMX in the host system BIOS) */
  1800. #define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR (-4008)
  1801. /** VMX CPU extension not available */
  1802. #define VERR_VMX_NO_VMX (-4009)
  1803. /** VMXON failed; possibly because it was already run before */
  1804. #define VERR_VMX_VMXON_FAILED (-4010)
  1805. /** CPU was incorrectly left in VMX root mode; incompatible with VirtualBox */
  1806. #define VERR_VMX_IN_VMX_ROOT_MODE (-4011)
  1807. /** Somebody cleared X86_CR4_VMXE in the CR4 register. */
  1808. #define VERR_VMX_X86_CR4_VMXE_CLEARED (-4012)
  1809. /** VT-x features locked or unavailable in MSR. */
  1810. #define VERR_VMX_MSR_LOCKED_OR_DISABLED (-4013)
  1811. /** Unable to switch due to invalid guest state. */
  1812. #define VERR_VMX_INVALID_GUEST_STATE (-4014)
  1813. /** Unexpected VM exit code. */
  1814. #define VERR_VMX_UNEXPECTED_EXIT_CODE (-4015)
  1815. /** Unexpected VM exception code. */
  1816. #define VERR_VMX_UNEXPECTED_EXCEPTION (-4016)
  1817. /** Unexpected interruption exit code. */
  1818. #define VERR_VMX_UNEXPECTED_INTERRUPTION_EXIT_CODE (-4017)
  1819. /** CPU is not in VMX root mode; unexpected when leaving VMX root mode. */
  1820. #define VERR_VMX_NOT_IN_VMX_ROOT_MODE (-4018)
  1821. /** Undefined VM exit code. */
  1822. #define VERR_VMX_UNDEFINED_EXIT_CODE (-4019)
  1823. /** Resume guest execution after injecting a double-fault. */
  1824. #define VINF_VMX_DOUBLE_FAULT 4020
  1825. /** VMPTRLD failed; possibly because of invalid VMCS launch-state. */
  1826. #define VERR_VMX_VMPTRLD_FAILED (-4021)
  1827. /** Invalid VMCS pointer passed to VMLAUNCH/VMRESUME. */
  1828. #define VERR_VMX_INVALID_VMCS_PTR_TO_START_VM (-4022)
  1829. /** @} */
  1830. /** @name VBox SVM Status Codes
  1831. * @{
  1832. */
  1833. /** Unable to start VM execution. */
  1834. #define VERR_SVM_UNABLE_TO_START_VM (-4050)
  1835. /** AMD-V bit not set in K6_EFER MSR */
  1836. #define VERR_SVM_ILLEGAL_EFER_MSR (-4051)
  1837. /** AMD-V CPU extension not available. */
  1838. #define VERR_SVM_NO_SVM (-4052)
  1839. /** AMD-V CPU extension disabled (by BIOS). */
  1840. #define VERR_SVM_DISABLED (-4053)
  1841. /** AMD-V CPU extension in-use. */
  1842. #define VERR_SVM_IN_USE (-4054)
  1843. /** Invalid pVMCB. */
  1844. #define VERR_SVM_INVALID_PVMCB (-4055)
  1845. /** Unexpected SVM exit. */
  1846. #define VERR_SVM_UNEXPECTED_EXIT (-4056)
  1847. /** Unexpected SVM exception exit. */
  1848. #define VERR_SVM_UNEXPECTED_XCPT_EXIT (-4057)
  1849. /** Unexpected SVM patch type. */
  1850. #define VERR_SVM_UNEXPECTED_PATCH_TYPE (-4058)
  1851. /** @} */
  1852. /** @name VBox HM Status Codes
  1853. * @{
  1854. */
  1855. /** Unable to start VM execution. */
  1856. #define VERR_HM_UNKNOWN_CPU (-4100)
  1857. /** No CPUID support. */
  1858. #define VERR_HM_NO_CPUID (-4101)
  1859. /** Host is about to go into suspend mode. */
  1860. #define VERR_HM_SUSPEND_PENDING (-4102)
  1861. /** Conflicting CFGM values. */
  1862. #define VERR_HM_CONFIG_MISMATCH (-4103)
  1863. /** Internal processing error in the HM init code. */
  1864. #define VERR_HM_ALREADY_ENABLED_IPE (-4104)
  1865. /** Unexpected MSR in the load / restore list. */
  1866. #define VERR_HM_UNEXPECTED_LD_ST_MSR (-4105)
  1867. /** No 32-bit to 64-bit switcher in place. */
  1868. #define VERR_HM_NO_32_TO_64_SWITCHER (-4106)
  1869. /** HMR0Leave was called on the wrong CPU. */
  1870. #define VERR_HM_WRONG_CPU_1 (-4107)
  1871. /** Internal processing error \#1 in the HM code. */
  1872. #define VERR_HM_IPE_1 (-4108)
  1873. /** Internal processing error \#2 in the HM code. */
  1874. #define VERR_HM_IPE_2 (-4109)
  1875. /** Wrong 32/64-bit switcher. */
  1876. #define VERR_HM_WRONG_SWITCHER (-4110)
  1877. /** Unknown I/O instruction. */
  1878. #define VERR_HM_UNKNOWN_IO_INSTRUCTION (-4111)
  1879. /** Unsupported CPU feature combination. */
  1880. #define VERR_HM_UNSUPPORTED_CPU_FEATURE_COMBO (-4112)
  1881. /** Internal processing error \#3 in the HM code. */
  1882. #define VERR_HM_IPE_3 (-4113)
  1883. /** Internal processing error \#3 in the HM code. */
  1884. #define VERR_HM_IPE_4 (-4114)
  1885. /** Internal processing error \#3 in the HM code. */
  1886. #define VERR_HM_IPE_5 (-4115)
  1887. /** Invalid HM64ON32OP value. */
  1888. #define VERR_HM_INVALID_HM64ON32OP (-4116)
  1889. /** @} */
  1890. /** @name VBox Disassembler Status Codes
  1891. * @{
  1892. */
  1893. /** Invalid opcode byte(s) */
  1894. #define VERR_DIS_INVALID_OPCODE (-4200)
  1895. /** Generic failure during disassembly. */
  1896. #define VERR_DIS_GEN_FAILURE (-4201)
  1897. /** No read callback. */
  1898. #define VERR_DIS_NO_READ_CALLBACK (-4202)
  1899. /** Invalid Mod/RM. */
  1900. #define VERR_DIS_INVALID_MODRM (-4203)
  1901. /** Invalid parameter index. */
  1902. #define VERR_DIS_INVALID_PARAMETER (-4204)
  1903. /** The instruction is too long. */
  1904. #define VERR_DIS_TOO_LONG_INSTR (-4206)
  1905. /** @} */
  1906. /** @name VBox Webservice Status Codes
  1907. * @{
  1908. */
  1909. /** Authentication failed (ISessionManager::logon()) */
  1910. #define VERR_WEB_NOT_AUTHENTICATED (-4300)
  1911. /** Invalid format of managed object reference */
  1912. #define VERR_WEB_INVALID_MANAGED_OBJECT_REFERENCE (-4301)
  1913. /** Invalid session ID in managed object reference */
  1914. #define VERR_WEB_INVALID_SESSION_ID (-4302)
  1915. /** Invalid object ID in managed object reference */
  1916. #define VERR_WEB_INVALID_OBJECT_ID (-4303)
  1917. /** Unsupported interface for managed object reference */
  1918. #define VERR_WEB_UNSUPPORTED_INTERFACE (-4304)
  1919. /** @} */
  1920. /** @name VBox PARAV Status Codes
  1921. * @{
  1922. */
  1923. /** Switch back to host */
  1924. #define VINF_PARAV_SWITCH_TO_HOST 4400
  1925. /** @} */
  1926. /** @name VBox Video HW Acceleration command status
  1927. * @{
  1928. */
  1929. /** command processing is pending, a completion handler will be called */
  1930. #define VINF_VHWA_CMD_PENDING 4500
  1931. /** @} */
  1932. /** @name VBox COM error codes
  1933. *
  1934. * @remarks Global::vboxStatusCodeToCOM and Global::vboxStatusCodeFromCOM uses
  1935. * these for conversion that is lossless with respect to important COM
  1936. * status codes. These methods should be moved to the glue library.
  1937. * @{ */
  1938. /** Unexpected turn of events. */
  1939. #define VERR_COM_UNEXPECTED (-4600)
  1940. /** The base of the VirtualBox COM status codes (the lower value)
  1941. * corresponding 1:1 to VBOX_E_XXX. This is the lowest value. */
  1942. #define VERR_COM_VBOX_LOWEST (-4699)
  1943. /** Object corresponding to the supplied arguments does not exist. */
  1944. #define VERR_COM_OBJECT_NOT_FOUND (VERR_COM_VBOX_LOWEST + 1)
  1945. /** Current virtual machine state prevents the operation. */
  1946. #define VERR_COM_INVALID_VM_STATE (VERR_COM_VBOX_LOWEST + 2)
  1947. /** Virtual machine error occurred attempting the operation. */
  1948. #define VERR_COM_VM_ERROR (VERR_COM_VBOX_LOWEST + 3)
  1949. /** File not accessible or erroneous file contents. */
  1950. #define VERR_COM_FILE_ERROR (VERR_COM_VBOX_LOWEST + 4)
  1951. /** IPRT error. */
  1952. #define VERR_COM_IPRT_ERROR (VERR_COM_VBOX_LOWEST + 5)
  1953. /** Pluggable Device Manager error. */
  1954. #define VERR_COM_PDM_ERROR (VERR_COM_VBOX_LOWEST + 6)
  1955. /** Current object state prohibits operation. */
  1956. #define VERR_COM_INVALID_OBJECT_STATE (VERR_COM_VBOX_LOWEST + 7)
  1957. /** Host operating system related error. */
  1958. #define VERR_COM_HOST_ERROR (VERR_COM_VBOX_LOWEST + 8)
  1959. /** Requested operation is not supported. */
  1960. #define VERR_COM_NOT_SUPPORTED (VERR_COM_VBOX_LOWEST + 9)
  1961. /** Invalid XML found. */
  1962. #define VERR_COM_XML_ERROR (VERR_COM_VBOX_LOWEST + 10)
  1963. /** Current session state prohibits operation. */
  1964. #define VERR_COM_INVALID_SESSION_STATE (VERR_COM_VBOX_LOWEST + 11)
  1965. /** Object being in use prohibits operation. */
  1966. #define VERR_COM_OBJECT_IN_USE (VERR_COM_VBOX_LOWEST + 12)
  1967. /** Returned by callback methods which does not need to be called
  1968. * again because the client does not actually make use of them. */
  1969. #define VERR_COM_DONT_CALL_AGAIN (VERR_COM_VBOX_LOWEST + 13)
  1970. /** @} */
  1971. /** @name VBox CPU hotplug Status codes
  1972. * @{
  1973. */
  1974. /** CPU hotplug events from VMMDev are not monitored by the guest. */
  1975. #define VERR_CPU_HOTPLUG_NOT_MONITORED_BY_GUEST (-4700)
  1976. /** @} */
  1977. /** @name VBox async I/O manager Status Codes
  1978. * @{
  1979. */
  1980. /** Async I/O task is pending, a completion handler will be called. */
  1981. #define VINF_AIO_TASK_PENDING 4800
  1982. /** @} */
  1983. /** @name VBox Virtual SCSI Status Codes
  1984. * @{
  1985. */
  1986. /** LUN type is not supported. */
  1987. #define VERR_VSCSI_LUN_TYPE_NOT_SUPPORTED (-4900)
  1988. /** LUN is already/still attached to a device. */
  1989. #define VERR_VSCSI_LUN_ATTACHED_TO_DEVICE (-4901)
  1990. /** The specified LUN is invalid. */
  1991. #define VERR_VSCSI_LUN_INVALID (-4902)
  1992. /** The LUN is not attached to the device. */
  1993. #define VERR_VSCSI_LUN_NOT_ATTACHED (-4903)
  1994. /** The LUN is still busy. */
  1995. #define VERR_VSCSI_LUN_BUSY (-4904)
  1996. /** @} */
  1997. /** @name VBox FAM Status Codes
  1998. * @{
  1999. */
  2000. /** FAM failed to open a connection. */
  2001. #define VERR_FAM_OPEN_FAILED (-5000)
  2002. /** FAM failed to add a file to the list to be monitored. */
  2003. #define VERR_FAM_MONITOR_FILE_FAILED (-5001)
  2004. /** FAM failed to add a directory to the list to be monitored. */
  2005. #define VERR_FAM_MONITOR_DIRECTORY_FAILED (-5002)
  2006. /** The connection to the FAM daemon was lost. */
  2007. #define VERR_FAM_CONNECTION_LOST (-5003)
  2008. /** @} */
  2009. /** @name PCI Passtrhough Status Codes
  2010. * @{
  2011. */
  2012. /** RamPreAlloc not set.
  2013. * RAM pre-allocation is currently a requirement for PCI passthrough. */
  2014. #define VERR_PCI_PASSTHROUGH_NO_RAM_PREALLOC (-5100)
  2015. /** VT-x/AMD-V not active.
  2016. * PCI passthrough currently works only if VT-x/AMD-V is active. */
  2017. #define VERR_PCI_PASSTHROUGH_NO_HM (-5101)
  2018. /** Nested paging not active.
  2019. * PCI passthrough currently works only if nested paging is active. */
  2020. #define VERR_PCI_PASSTHROUGH_NO_NESTED_PAGING (-5102)
  2021. /** @} */
  2022. /** @name GVMM Status Codes
  2023. * @{
  2024. */
  2025. /** Internal error obtaining the GVMM instance. */
  2026. #define VERR_GVMM_INSTANCE (-5200)
  2027. /** GVMM does not support the range of CPUs present/possible on the host. */
  2028. #define VERR_GVMM_HOST_CPU_RANGE (-5201)
  2029. /** GVMM ran into some broken IPRT code. */
  2030. #define VERR_GVMM_BROKEN_IPRT (-5202)
  2031. /** Internal processing error \#1 in the GVMM code. */
  2032. #define VERR_GVMM_IPE_1 (-5203)
  2033. /** Internal processing error \#2 in the GVMM code. */
  2034. #define VERR_GVMM_IPE_2 (-5204)
  2035. /** @} */
  2036. /** @name IEM Status Codes
  2037. * @{ */
  2038. /** The instruction is not yet implemented by IEM. */
  2039. #define VERR_IEM_INSTR_NOT_IMPLEMENTED (-5300)
  2040. /** This particular aspect of the instruction is not yet implemented by IEM. */
  2041. #define VERR_IEM_ASPECT_NOT_IMPLEMENTED (-5391)
  2042. /** Internal processing error \#1 in the IEM code.. */
  2043. #define VERR_IEM_IPE_1 (-5392)
  2044. /** Internal processing error \#2 in the IEM code.. */
  2045. #define VERR_IEM_IPE_2 (-5393)
  2046. /** Internal processing error \#3 in the IEM code.. */
  2047. #define VERR_IEM_IPE_3 (-5394)
  2048. /** Restart the current instruction. For testing only. */
  2049. #define VERR_IEM_RESTART_INSTRUCTION (-5395)
  2050. /** @} */
  2051. /** @name DBGC Status Codes
  2052. * @{ */
  2053. /** Status that causes DBGC to quit. */
  2054. #define VERR_DBGC_QUIT (-5400)
  2055. /** Async command pending. */
  2056. #define VWRN_DBGC_CMD_PENDING 5401
  2057. /** The command has already been registered. */
  2058. #define VWRN_DBGC_ALREADY_REGISTERED 5402
  2059. /** The command cannot be deregistered because has not been registered. */
  2060. #define VERR_DBGC_COMMANDS_NOT_REGISTERED (-5403)
  2061. /** Unknown breakpoint. */
  2062. #define VERR_DBGC_BP_NOT_FOUND (-5404)
  2063. /** The breakpoint already exists. */
  2064. #define VERR_DBGC_BP_EXISTS (-5405)
  2065. /** The breakpoint has no command. */
  2066. #define VINF_DBGC_BP_NO_COMMAND 5406
  2067. /** Generic debugger command failure. */
  2068. #define VERR_DBGC_COMMAND_FAILED (-5407)
  2069. /** Logic bug in the DBGC code.. */
  2070. #define VERR_DBGC_IPE (-5408)
  2071. /** The lowest parse status code. */
  2072. #define VERR_DBGC_PARSE_LOWEST (-5499)
  2073. /** Syntax error - too few arguments. */
  2074. #define VERR_DBGC_PARSE_TOO_FEW_ARGUMENTS (VERR_DBGC_PARSE_LOWEST + 0)
  2075. /** Syntax error - too many arguments. */
  2076. #define VERR_DBGC_PARSE_TOO_MANY_ARGUMENTS (VERR_DBGC_PARSE_LOWEST + 1)
  2077. /** Syntax error - too many arguments for static storage. */
  2078. #define VERR_DBGC_PARSE_ARGUMENT_OVERFLOW (VERR_DBGC_PARSE_LOWEST + 2)
  2079. /** Syntax error - expected binary operator. */
  2080. #define VERR_DBGC_PARSE_EXPECTED_BINARY_OP (VERR_DBGC_PARSE_LOWEST + 3)
  2081. /** Syntax error - the argument does not allow a range to be specified. */
  2082. #define VERR_DBGC_PARSE_NO_RANGE_ALLOWED (VERR_DBGC_PARSE_LOWEST + 5)
  2083. /** Syntax error - unbalanced quotes. */
  2084. #define VERR_DBGC_PARSE_UNBALANCED_QUOTE (VERR_DBGC_PARSE_LOWEST + 6)
  2085. /** Syntax error - unbalanced parenthesis. */
  2086. #define VERR_DBGC_PARSE_UNBALANCED_PARENTHESIS (VERR_DBGC_PARSE_LOWEST + 7)
  2087. /** Syntax error - an argument or subargument contains nothing useful. */
  2088. #define VERR_DBGC_PARSE_EMPTY_ARGUMENT (VERR_DBGC_PARSE_LOWEST + 8)
  2089. /** Syntax error - invalid operator usage. */
  2090. #define VERR_DBGC_PARSE_UNEXPECTED_OPERATOR (VERR_DBGC_PARSE_LOWEST + 9)
  2091. /** Syntax error - invalid numeric value. */
  2092. #define VERR_DBGC_PARSE_INVALID_NUMBER (VERR_DBGC_PARSE_LOWEST + 10)
  2093. /** Syntax error - numeric overflow. */
  2094. #define VERR_DBGC_PARSE_NUMBER_TOO_BIG (VERR_DBGC_PARSE_LOWEST + 11)
  2095. /** Syntax error - invalid operation attempted. */
  2096. #define VERR_DBGC_PARSE_INVALID_OPERATION (VERR_DBGC_PARSE_LOWEST + 12)
  2097. /** Syntax error - function not found. */
  2098. #define VERR_DBGC_PARSE_FUNCTION_NOT_FOUND (VERR_DBGC_PARSE_LOWEST + 13)
  2099. /** Syntax error - the specified function is not a function. */
  2100. #define VERR_DBGC_PARSE_NOT_A_FUNCTION (VERR_DBGC_PARSE_LOWEST + 14)
  2101. /** Syntax error - out of scratch memory. */
  2102. #define VERR_DBGC_PARSE_NO_SCRATCH (VERR_DBGC_PARSE_LOWEST + 15)
  2103. /** Syntax error - out of regular heap memory. */
  2104. #define VERR_DBGC_PARSE_NO_MEMORY (VERR_DBGC_PARSE_LOWEST + 16)
  2105. /** Syntax error - incorrect argument type. */
  2106. #define VERR_DBGC_PARSE_INCORRECT_ARG_TYPE (VERR_DBGC_PARSE_LOWEST + 17)
  2107. /** Syntax error - an undefined variable was referenced. */
  2108. #define VERR_DBGC_PARSE_VARIABLE_NOT_FOUND (VERR_DBGC_PARSE_LOWEST + 18)
  2109. /** Syntax error - a type conversion failed. */
  2110. #define VERR_DBGC_PARSE_CONVERSION_FAILED (VERR_DBGC_PARSE_LOWEST + 19)
  2111. /** Syntax error - you hit a debugger feature which isn't implemented yet.
  2112. * (Feel free to help implement it.) */
  2113. #define VERR_DBGC_PARSE_NOT_IMPLEMENTED (VERR_DBGC_PARSE_LOWEST + 20)
  2114. /** Syntax error - Couldn't staisfy a request for a sepcific result type. */
  2115. #define VERR_DBGC_PARSE_BAD_RESULT_TYPE (VERR_DBGC_PARSE_LOWEST + 21)
  2116. /** Syntax error - Cannot read symbol value, it is a set-only symbol. */
  2117. #define VERR_DBGC_PARSE_WRITEONLY_SYMBOL (VERR_DBGC_PARSE_LOWEST + 22)
  2118. /** Syntax error - Invalid command name. */
  2119. #define VERR_DBGC_PARSE_INVALD_COMMAND_NAME (VERR_DBGC_PARSE_LOWEST + 23)
  2120. /** Syntax error - Command not found. */
  2121. #define VERR_DBGC_PARSE_COMMAND_NOT_FOUND (VERR_DBGC_PARSE_LOWEST + 24)
  2122. /** Syntax error - buggy parser. */
  2123. #define VERR_DBGC_PARSE_BUG (VERR_DBGC_PARSE_LOWEST + 25)
  2124. /** @} */
  2125. /** @name VBox Extension Pack Status Codes
  2126. * @{
  2127. */
  2128. /** The host is not supported. Uninstall the extension pack.
  2129. * Returned by the VBOXEXTPACKREG::pfnInstalled. */
  2130. #define VERR_EXTPACK_UNSUPPORTED_HOST_UNINSTALL (-6000)
  2131. /** The VirtualBox version is not supported by one of the extension packs.
  2132. *
  2133. * You have probably upgraded VirtualBox recently. Please upgrade the
  2134. * extension packs to versions compatible with this VirtualBox release.
  2135. */
  2136. #define VERR_EXTPACK_VBOX_VERSION_MISMATCH (-6001)
  2137. /** @} */
  2138. /** @} */
  2139. /** @name VBox Guest Control Status Codes
  2140. * @{
  2141. */
  2142. /** Guest side reported an error. */
  2143. #define VERR_GSTCTL_GUEST_ERROR (-6200)
  2144. /** A guest control object has changed its overall status. */
  2145. #define VWRN_GSTCTL_OBJECTSTATE_CHANGED 6220
  2146. /** @} */
  2147. /* SED-END */
  2148. /** @} */
  2149. #endif