VirtualBox

source: vbox/trunk/include/VBox/err.h@ 4693

Last change on this file since 4693 was 4077, checked in by vboxsync, 17 years ago

Renamed to VERR_VMX_IN_VMX_ROOT_MODE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 50.7 KB
Line 
1/** @file
2 * VirtualBox Status Codes.
3 */
4
5/*
6 * Copyright (C) 2006-2007 innotek GmbH
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License as published by the Free Software Foundation,
12 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13 * distribution. VirtualBox OSE is distributed in the hope that it will
14 * be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef ___VBox_err_h
18#define ___VBox_err_h
19
20#include <VBox/cdefs.h>
21#include <iprt/err.h>
22
23
24/** @defgroup grp_err Error Codes
25 * @{
26 */
27
28/* SED-START */
29
30/** @name Misc. Status Codes
31 * @{
32 */
33/** Failed to allocate VM memory. */
34#define VERR_NO_VM_MEMORY (-1000)
35/** GC is toasted and the VMM should be terminated at once, but no need to panic about it :-) */
36#define VERR_DONT_PANIC (-1001)
37/** Unsupported CPU. */
38#define VERR_UNSUPPORTED_CPU (-1002)
39/** Unsupported CPU mode. */
40#define VERR_UNSUPPORTED_CPU_MODE (-1003)
41/** Page not present. */
42#define VERR_PAGE_NOT_PRESENT (-1004)
43/** Invalid/Corrupted configuration file. */
44#define VERR_CFG_INVALID_FORMAT (-1005)
45/** No configuration value exists. */
46#define VERR_CFG_NO_VALUE (-1006)
47/** Not selector not present. */
48#define VERR_SELECTOR_NOT_PRESENT (-1007)
49/** Not code selector. */
50#define VERR_NOT_CODE_SELECTOR (-1008)
51/** Not data selector. */
52#define VERR_NOT_DATA_SELECTOR (-1009)
53/** Out of selector bounds. */
54#define VERR_OUT_OF_SELECTOR_BOUNDS (-1010)
55/** Invalid selector. Usually beyond table limits. */
56#define VERR_INVALID_SELECTOR (-1011)
57/** Invalid requested privilegde level. */
58#define VERR_INVALID_RPL (-1012)
59/** @} */
60
61
62/** @name Execution Monitor/Manager (EM) Status Codes
63 *
64 * The order of the status codes between VINF_EM_FIRST and VINF_EM_LAST
65 * are of vital importance. The lower the number the higher importance
66 * as a scheduling instruction.
67 * @{
68 */
69/** First scheduling related status code. */
70#define VINF_EM_FIRST 1100
71/** Indicating that the VM is being terminated and that the the execution
72 * shall stop. */
73#define VINF_EM_TERMINATE 1100
74/** Hypervisor code was stepped.
75 * EM will first send this to the debugger, and if the issue isn't
76 * resolved there it will enter guru meditation. */
77#define VINF_EM_DBG_HYPER_STEPPED 1101
78/** Hit a breakpoint in the hypervisor code,
79 * EM will first send this to the debugger, and if the issue isn't
80 * resolved there it will enter guru meditation. */
81#define VINF_EM_DBG_HYPER_BREAKPOINT 1102
82/** Hit a possible assertion in the hypervisor code,
83 * EM will first send this to the debugger, and if the issue isn't
84 * resolved there it will enter guru meditation. */
85#define VINF_EM_DBG_HYPER_ASSERTION 1103
86/** Indicating that the VM should be suspended for debugging because
87 * the developer wants to inspect the VM state. */
88#define VINF_EM_DBG_STOP 1104
89/** Indicating success single stepping and that EM should report that
90 * event to the debugger. */
91#define VINF_EM_DBG_STEPPED 1105
92/** Indicating that a breakpoint was hit and that EM should notify the debugger
93 * and in the event there is no debugger fail fatally. */
94#define VINF_EM_DBG_BREAKPOINT 1106
95/** Indicating that EM should single step an instruction.
96 * The instruction is stepped in the current execution mode (RAW/REM). */
97#define VINF_EM_DBG_STEP 1107
98/** Indicating that the VM is being turned off and that the EM should
99 * exit to the VM awaiting the destruction request. */
100#define VINF_EM_OFF 1108
101/** Indicating that the VM has been reset and that scheduling goes
102 * back to startup defaults. */
103#define VINF_EM_RESET 1109
104/** Indicating that the VM has been suspended and that the the thread
105 * should wait for request telling it what to do next. */
106#define VINF_EM_SUSPEND 1110
107/** Indicating that the VM has executed a halt instruction and that
108 * the emulation thread should wait for an interrupt before resuming
109 * execution. */
110#define VINF_EM_HALT 1111
111/** Indicating that the VM has been resumed and that the thread should
112 * start executing. */
113#define VINF_EM_RESUME 1112
114/** Indicating that a rescheduling to recompiled execution.
115 * Typically caused by raw-mode executing code which is difficult/slow
116 * to virtualize rawly.
117 * @note important to have a higher priority (lower number) than VINF_EM_RESCHEDULE
118 * and VINF_EM_RESCHEDULE_RAW
119 */
120#define VINF_EM_RESCHEDULE_REM 1114
121/** Indicating that a rescheduling to vmx-mode execution.
122 * Typically caused by REM detecting that hardware-accelerated raw-mode execution is possible.
123 */
124#define VINF_EM_RESCHEDULE_HWACC 1115
125/** Indicating that a rescheduling to raw-mode execution.
126 * Typically caused by REM detecting that raw-mode execution is possible.
127 * @note important to have a higher priority (lower number) than VINF_EM_RESCHEDULE
128 * and VINF_EM_RESCHEDULE_RAW
129 */
130#define VINF_EM_RESCHEDULE_RAW 1116
131/** Indicating that a rescheduling now is required. Typically caused by
132 * interrupts having changed the EIP. */
133#define VINF_EM_RESCHEDULE 1117
134/** Last scheduling related status code. (inclusive) */
135#define VINF_EM_LAST 1118
136
137/** Reason for leaving GC: Guest trap which couldn't be handled in GC.
138 * The trap is generally forwared to the REM and executed there. */
139#define VINF_EM_RAW_GUEST_TRAP 1120
140/** Reason for leaving GC: Interrupted by external interrupt.
141 * The interrupt needed to be handled by the host OS. */
142#define VINF_EM_RAW_INTERRUPT 1121
143/** Reason for leaving GC: Interrupted by external interrupt while in hypervisor code.
144 * The interrupt needed to be handled by the host OS and hypervisor execution must be
145 * resumed. VM state is not complete at this point. */
146#define VINF_EM_RAW_INTERRUPT_HYPER 1122
147/** Reason for leaving GC: A Ring switch was attempted.
148 * Normal cause of action is to execute this in REM. */
149#define VINF_EM_RAW_RING_SWITCH 1123
150/** Reason for leaving GC: A Ring switch was attempted using software interrupt.
151 * Normal cause of action is to execute this in REM. */
152#define VINF_EM_RAW_RING_SWITCH_INT 1124
153/** Reason for leaving GC: A privileged instruction was attempted executed.
154 * Normal cause of action is to execute this in REM. */
155#define VINF_EM_RAW_EXCEPTION_PRIVILEGED 1125
156
157/** Reason for leaving GC: Emulate instruction. */
158#define VINF_EM_RAW_EMULATE_INSTR 1126
159/** Reason for leaving GC: Unhandled TSS write.
160 * Recompiler gets control. */
161#define VINF_EM_RAW_EMULATE_INSTR_TSS_FAULT 1127
162/** Reason for leaving GC: Unhandled LDT write.
163 * Recompiler gets control. */
164#define VINF_EM_RAW_EMULATE_INSTR_LDT_FAULT 1128
165/** Reason for leaving GC: Unhandled IDT write.
166 * Recompiler gets control. */
167#define VINF_EM_RAW_EMULATE_INSTR_IDT_FAULT 1129
168/** Reason for leaving GC: Unhandled GDT write.
169 * Recompiler gets control. */
170#define VINF_EM_RAW_EMULATE_INSTR_GDT_FAULT 1130
171/** Reason for leaving GC: Unhandled Page Directory write.
172 * Recompiler gets control. */
173#define VINF_EM_RAW_EMULATE_INSTR_PD_FAULT 1131
174/** Reason for leaving GC: jump inside generated patch jump.
175 * Fatal error. */
176#define VERR_EM_RAW_PATCH_CONFLICT (-1132)
177/** Reason for leaving GC: Hlt instruction.
178 * Recompiler gets control. */
179#define VINF_EM_RAW_EMULATE_INSTR_HLT 1133
180/** Reason for leaving GC: Ring-3 operation pending. */
181#define VINF_EM_RAW_TO_R3 1134
182/** Reason for leaving GC: Timer pending. */
183#define VINF_EM_RAW_TIMER_PENDING 1135
184/** Reason for leaving GC: Interrupt pending (guest). */
185#define VINF_EM_RAW_INTERRUPT_PENDING 1136
186/** Reason for leaving GC: Encountered a stale selector. */
187#define VINF_EM_RAW_STALE_SELECTOR 1137
188/** Reason for leaving GC: The IRET resuming guest code trapped. */
189#define VINF_EM_RAW_IRET_TRAP 1138
190/** The interpreter was unable to deal with the instruction at hand. */
191#define VERR_EM_INTERPRETER (-1148)
192/** Internal EM error caused by an unknown warning or informational status code. */
193#define VERR_EM_INTERNAL_ERROR (-1149)
194/** Pending VM request packet. */
195#define VINF_EM_PENDING_REQUEST (-1150)
196/** @} */
197
198
199/** @name Debugging Facility (DBGF) DBGF Status Codes
200 * @{
201 */
202/** The function called requires the caller to be attached as a
203 * debugger to the VM. */
204#define VERR_DBGF_NOT_ATTACHED (-1200)
205/** Someone (including the caller) was already attached as
206 * debugger to the VM. */
207#define VERR_DBGF_ALREADY_ATTACHED (-1201)
208/** Tried to hald a debugger which was already halted.
209 * (This is a warning and not an error.) */
210#define VWRN_DBGF_ALREADY_HALTED 1202
211/** The DBGF has no more free breakpoint slots. */
212#define VERR_DBGF_NO_MORE_BP_SLOTS (-1203)
213/** The DBGF couldn't find the specified breakpoint. */
214#define VERR_DBGF_BP_NOT_FOUND (-1204)
215/** Attempted to enabled a breakpoint which was already enabled. */
216#define VINF_DBGF_BP_ALREADY_ENABLED 1205
217/** Attempted to disabled a breakpoint which was already disabled. */
218#define VINF_DBGF_BP_ALREADY_DISABLED 1206
219/** The breakpoint already exists. */
220#define VINF_DBGF_BP_ALREADY_EXIST 1207
221/** @} */
222
223
224/** @name Patch Manager (PATM) Status Codes
225 * @{
226 */
227/** Non fatal Patch Manager analysis phase warning */
228#define VWRN_CONTINUE_ANALYSIS 1400
229/** Non fatal Patch Manager recompile phase warning (mapped to VWRN_CONTINUE_ANALYSIS). */
230#define VWRN_CONTINUE_RECOMPILE VWRN_CONTINUE_ANALYSIS
231/** Continue search (mapped to VWRN_CONTINUE_ANALYSIS). */
232#define VWRN_PATM_CONTINUE_SEARCH VWRN_CONTINUE_ANALYSIS
233/** Patch installation refused (patch too complex or unsupported instructions ) */
234#define VERR_PATCHING_REFUSED (-1401)
235/** Unable to find patch */
236#define VERR_PATCH_NOT_FOUND (-1402)
237/** Patch disabled */
238#define VERR_PATCH_DISABLED (-1403)
239/** Patch enabled */
240#define VWRN_PATCH_ENABLED 1404
241/** Patch was already disabled */
242#define VERR_PATCH_ALREADY_DISABLED (-1405)
243/** Patch was already enabled */
244#define VERR_PATCH_ALREADY_ENABLED (-1406)
245/** Patch was removed. */
246#define VWRN_PATCH_REMOVED 1408
247
248/** Reason for leaving GC: \#GP with EIP pointing to patch code. */
249#define VINF_PATM_PATCH_TRAP_GP 1408
250/** First leave GC code. */
251#define VINF_PATM_LEAVEGC_FIRST VINF_PATM_PATCH_TRAP_GP
252/** Reason for leaving GC: \#PF with EIP pointing to patch code. */
253#define VINF_PATM_PATCH_TRAP_PF 1409
254/** Reason for leaving GC: int3 with EIP pointing to patch code. */
255#define VINF_PATM_PATCH_INT3 1410
256/** Reason for leaving GC: \#PF for monitored patch page. */
257#define VINF_PATM_CHECK_PATCH_PAGE 1411
258/** Reason for leaving GC: duplicate instruction called at current eip. */
259#define VINF_PATM_DUPLICATE_FUNCTION 1412
260/** Execute one instruction with the recompiler */
261#define VINF_PATCH_EMULATE_INSTR 1413
262/** Reason for leaving GC: attempt to patch MMIO write. */
263#define VINF_PATM_HC_MMIO_PATCH_WRITE 1414
264/** Reason for leaving GC: attempt to patch MMIO read. */
265#define VINF_PATM_HC_MMIO_PATCH_READ 1415
266/** Reason for leaving GC: pending irq after iret that sets IF. */
267#define VINF_PATM_PENDING_IRQ_AFTER_IRET 1416
268/** Last leave GC code. */
269#define VINF_PATM_LEAVEGC_LAST VINF_PATM_PENDING_IRQ_AFTER_IRET
270
271/** No conflicts to resolve */
272#define VERR_PATCH_NO_CONFLICT (-1425)
273/** Detected unsafe code for patching */
274#define VERR_PATM_UNSAFE_CODE (-1426)
275/** Terminate search branch */
276#define VWRN_PATCH_END_BRANCH 1427
277/** Already patched */
278#define VERR_PATM_ALREADY_PATCHED (-1428)
279/** Spinlock detection failed. */
280#define VINF_PATM_SPINLOCK_FAILED (1429)
281/** Continue execution after patch trap. */
282#define VINF_PATCH_CONTINUE (1430)
283
284/** @} */
285
286
287/** @name Code Scanning and Analysis Manager (CSAM) Status Codes
288 * @{
289 */
290/** Trap not handled */
291#define VWRN_CSAM_TRAP_NOT_HANDLED 1500
292/** Patch installed */
293#define VWRN_CSAM_INSTRUCTION_PATCHED 1501
294/** Page record not found */
295#define VWRN_CSAM_PAGE_NOT_FOUND 1502
296/** Reason for leaving GC: CSAM wants perform a task in ring-3. */
297#define VINF_CSAM_PENDING_ACTION 1503
298/** @} */
299
300
301/** @name Page Monitor/Manager (PGM) Status Codes
302 * @{
303 */
304/** Attempt to create a GC mapping which conflicts with an existing mapping. */
305#define VERR_PGM_MAPPING_CONFLICT (-1600)
306/** The physical handler range has no corresponding RAM range.
307 * If this is MMIO, see todo above the return. If not MMIO, then it's
308 * someone else's fault... */
309#define VERR_PGM_HANDLER_PHYSICAL_NO_RAM_RANGE (-1601)
310/** Attempt to register an access handler for a virtual range of which a part
311 * was already handled. */
312#define VERR_PGM_HANDLER_VIRTUAL_CONFLICT (-1602)
313/** Attempt to register an access handler for a physical range of which a part
314 * was already handled. */
315#define VERR_PGM_HANDLER_PHYSICAL_CONFLICT (-1603)
316/** Invalid page directory specified to PGM. */
317#define VERR_PGM_INVALID_PAGE_DIRECTORY (-1604)
318/** Invalid GC physical address. */
319#define VERR_PGM_INVALID_GC_PHYSICAL_ADDRESS (-1605)
320/** Invalid GC physical range. Usually used when a specified range crosses
321 * a RAM region boundrary. */
322#define VERR_PGM_INVALID_GC_PHYSICAL_RANGE (-1606)
323/** Specified access handler was not found. */
324#define VERR_PGM_HANDLER_NOT_FOUND (-1607)
325/** Attempt to register a RAM range of which parts are already
326 * covered by existing RAM ranges. */
327#define VERR_PGM_RAM_CONFLICT (-1608)
328/** Failed to add new mappings because the current mappings are fixed
329 * in guest os memory. */
330#define VERR_PGM_MAPPINGS_FIXED (-1609)
331/** Failed to fix mappings because of a conflict with the intermediate code. */
332#define VERR_PGM_MAPPINGS_FIX_CONFLICT (-1610)
333/** Failed to fix mappings because a mapping rejected the address. */
334#define VERR_PGM_MAPPINGS_FIX_REJECTED (-1611)
335/** Failed to fix mappings because the proposed memory area was to small. */
336#define VERR_PGM_MAPPINGS_FIX_TOO_SMALL (-1612)
337/** Reason for leaving GC: The urge to syncing CR3. */
338#define VINF_PGM_SYNC_CR3 1613
339/** Page not marked for dirty bit tracking */
340#define VINF_PGM_NO_DIRTY_BIT_TRACKING 1614
341/** Page fault caused by dirty bit tracking; corrected */
342#define VINF_PGM_HANDLED_DIRTY_BIT_FAULT 1615
343/** Go ahead with the default Read/Write operation.
344 * This is returned by a HC physical or virtual handler when it wants the PGMPhys[Read|Write]
345 * routine do the reading/writing. */
346#define VINF_PGM_HANDLER_DO_DEFAULT 1616
347/** The paging mode of the host is not supported yet. */
348#define VERR_PGM_UNSUPPORTED_HOST_PAGING_MODE (-1617)
349/** The physical guest page is a reserved/mmio page and does not have any HC address. */
350#define VERR_PGM_PHYS_PAGE_RESERVED (-1618)
351/** No page directory available for the hypervisor. */
352#define VERR_PGM_NO_HYPERVISOR_ADDRESS (-1619)
353/** The shadow page pool was flushed.
354 * This means that a global CR3 sync was flagged. Anyone receiving this kind of status
355 * will have to get down to a SyncCR3 ASAP. See also VINF_PGM_SYNC_CR3. */
356#define VERR_PGM_POOL_FLUSHED (-1620)
357/** The shadow page pool was cleared.
358 * This is a error code internal to the shadow page pool, it will be
359 * converted to a VERR_PGM_POOL_FLUSHED before leaving the pool code. */
360#define VERR_PGM_POOL_CLEARED (-1621)
361/** The returned shadow page is cached. */
362#define VINF_PGM_CACHED_PAGE 1622
363/** Returned by handler registration, modification and deregistration
364 * when the shadow PTs could be updated because the guest page
365 * aliased or/and mapped by multiple PTs. */
366#define VINF_PGM_GCPHYS_ALIASED 1623
367/** Reason for leaving GC: Paging mode changed.
368 * PGMChangeMode() uses this to force a switch to HC so it can safely
369 * deal with a mode switch.
370 */
371#define VINF_PGM_CHANGE_MODE 1624
372/** SyncPage modified the PDE.
373 * This is an internal status code used to communicate back to the \#PF handler
374 * that the PDE was (probably) marked not-present and it should restart the instruction. */
375#define VINF_PGM_SYNCPAGE_MODIFIED_PDE 1625
376/** Physical range crosses dynamic ram chunk boundary; translation to HC ptr not safe. */
377#define VERR_PGM_GCPHYS_RANGE_CROSSES_BOUNDARY (-1626)
378/** @} */
379
380
381/** @name Memory Monitor (MM) Status Codes
382 * @{
383 */
384/** Attempt to register a RAM range of which parts are already
385 * covered by existing RAM ranges. */
386#define VERR_MM_RAM_CONFLICT (-1700)
387/** Hypervisor memory allocation failed. */
388#define VERR_MM_HYPER_NO_MEMORY (-1701)
389
390/** @} */
391
392
393/** @name Save State Manager (SSM) Status Codes
394 * @{
395 */
396/** The specified data unit already exist. */
397#define VERR_SSM_UNIT_EXISTS (-1800)
398/** The specified data unit wasn't found. */
399#define VERR_SSM_UNIT_NOT_FOUND (-1801)
400/** The specified data unit wasn't owned by caller. */
401#define VERR_SSM_UNIT_NOT_OWNER (-1802)
402/** General saved state file integrity error. */
403#define VERR_SSM_INTEGRITY (-1810)
404/** The saved state file magic was not recognized. */
405#define VERR_SSM_INTEGRITY_MAGIC (-1811)
406/** The saved state file magic was not recognized. */
407#define VERR_SSM_INTEGRITY_VERSION (-1812)
408/** The saved state file magic was not recognized. */
409#define VERR_SSM_INTEGRITY_SIZE (-1813)
410/** The CRC of the saved state file did match. */
411#define VERR_SSM_INTEGRITY_CRC (-1814)
412/** The current virtual machine id didn't match the virtual machine id. */
413#define VERR_SMM_INTEGRITY_MACHINE (-1815)
414/** Invalid unit magic (internal data tag). */
415#define VERR_SSM_INTEGRITY_UNIT_MAGIC (-1816)
416/** The file contained a data unit which no-one wants. */
417#define VERR_SSM_INTEGRITY_UNIT_NOT_FOUND (-1817)
418/** A data unit in the saved state file was defined but didn't any
419 * routine for processing it. */
420#define VERR_SSM_NO_LOAD_EXEC (-1818)
421/** A restore routine attempted to load more data then the unit contained. */
422#define VERR_SSM_LOADED_TOO_MUCH (-1819)
423/** Not in the correct state for the attempted operation. */
424#define VERR_SSM_INVALID_STATE (-1820)
425
426/** Unsupported data unit version.
427 * A SSM user returns this if it doesn't know the u32Version. */
428#define VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION (-1821)
429/** The format of a data unit has changed.
430 * A SSM user returns this if it's not able to read the format for
431 * other reasons than u32Version. */
432#define VERR_SSM_DATA_UNIT_FORMAT_CHANGED (-1822)
433/** The CPUID instruction returns different information when loading than when saved.
434 * Normally caused by hardware changes on the host, but could also be caused by
435 * changes in the BIOS setup. */
436#define VERR_SSM_LOAD_CPUID_MISMATCH (-1823)
437/** The RAM size differes between the saved state and the VM config. */
438#define VERR_SSM_LOAD_MEMORY_SIZE_MISMATCH (-1824)
439/** The state doesn't match the VM configuration in one or another way.
440 * (There are certain PCI reconfiguration which the OS could potentially
441 * do which can cause this problem. Check this out when it happens.) */
442#define VERR_SSM_LOAD_CONFIG_MISMATCH (-1825)
443/** The virtual clock freqency differs too much.
444 * The clock source for the virtual time isn't reliable or the code have changed. */
445#define VERR_SSM_VIRTUAL_CLOCK_HZ (-1826)
446/** A timeout occured while waiting for async IDE operations to finish. */
447#define VERR_SSM_IDE_ASYNC_TIMEOUT (-1827)
448/** One of the structure magics was wrong. */
449#define VERR_SSM_STRUCTURE_MAGIC (-1828)
450/** The data in the saved state doesn't confirm to expectations. */
451#define VERR_SSM_UNEXPECTED_DATA (-1829)
452/** @} */
453
454
455/** @name Virtual Machine (VM) Status Codes
456 * @{
457 */
458/** The specified at reset handler wasn't found. */
459#define VERR_VM_ATRESET_NOT_FOUND (-1900)
460/** Invalid VM request type.
461 * For the VMR3ReqAlloc() case, the caller just specified an illegal enmType. For
462 * all the other occurences it means indicates corruption, broken logic, or stupid
463 * interface user. */
464#define VERR_VM_REQUEST_INVALID_TYPE (-1901)
465/** Invalid VM request state.
466 * The state of the request packet was not the expected and accepted one(s). Either
467 * the interface user screwed up, or we've got corruption/broken logic. */
468#define VERR_VM_REQUEST_STATE (-1902)
469/** Invalid VM request packet.
470 * One or more of the the VM controlled packet members didn't contain the correct
471 * values. Some thing's broken. */
472#define VERR_VM_REQUEST_INVALID_PACKAGE (-1903)
473/** The status field has not been updated yet as the request is still
474 * pending completion. Someone queried the iStatus field before the request
475 * has been fully processed. */
476#define VERR_VM_REQUEST_STATUS_STILL_PENDING (-1904)
477/** The request has been freed, don't read the status now.
478 * Someone is reading the iStatus field of a freed request packet. */
479#define VERR_VM_REQUEST_STATUS_FREED (-1905)
480/** A VM api requiring EMT was called from another thread.
481 * Use the VMR3ReqCall() apis to call it! */
482#define VERR_VM_THREAD_NOT_EMT (-1906)
483/** The VM state was invalid for the requested operation.
484 * Go check the 'VM Statechart Diagram.gif'. */
485#define VERR_VM_INVALID_VM_STATE (-1907)
486/** The support driver is not installed.
487 * On linux, open returned ENOENT. */
488#define VERR_VM_DRIVER_NOT_INSTALLED (-1908)
489/** The support driver is not accessible.
490 * On linux, open returned EPERM. */
491#define VERR_VM_DRIVER_NOT_ACCESSIBLE (-1909)
492/** Was not able to load the support driver.
493 * On linux, open returned ENODEV. */
494#define VERR_VM_DRIVER_LOAD_ERROR (-1910)
495/** Was not able to open the support driver.
496 * Generic open error used when none of the other ones fit. */
497#define VERR_VM_DRIVER_OPEN_ERROR (-1911)
498/** The installed support driver doesn't match the version of the user. */
499#define VERR_VM_DRIVER_VERSION_MISMATCH (-1912)
500/** Saving the VM state is temporarily not allowed. Try again later. */
501#define VERR_VM_SAVE_STATE_NOT_ALLOWED (-1913)
502/** @} */
503
504
505/** @name VBox Remote Desktop Protocol (VRDP) Status Codes
506 * @{
507 */
508/** Successful completion of operation (mapped to generic iprt status code). */
509#define VINF_VRDP_SUCCESS VINF_SUCCESS
510/** VRDP transport operation timed out (mapped to generic iprt status code). */
511#define VERR_VRDP_TIMEOUT VERR_TIMEOUT
512
513/** Unsupported ISO protocol feature */
514#define VERR_VRDP_ISO_UNSUPPORTED (-2000)
515/** Security (en/decryption) engine error */
516#define VERR_VRDP_SEC_ENGINE_FAIL (-2001)
517/** VRDP protocol violation */
518#define VERR_VRDP_PROTOCOL_ERROR (-2002)
519/** Unsupported VRDP protocol feature */
520#define VERR_VRDP_NOT_SUPPORTED (-2003)
521/** VRDP protocol violation, client sends less data than expected */
522#define VERR_VRDP_INSUFFICIENT_DATA (-2004)
523/** Internal error, VRDP packet is in wrong operation mode */
524#define VERR_VRDP_INVALID_MODE (-2005)
525/** Memory allocation failed */
526#define VERR_VRDP_NO_MEMORY (-2006)
527/** Client has been rejected */
528#define VERR_VRDP_ACCESS_DENIED (-2007)
529/** VRPD receives a packet that is not supported */
530#define VWRN_VRDP_PDU_NOT_SUPPORTED 2008
531/** VRDP script allowed the packet to be processed further */
532#define VINF_VRDP_PROCESS_PDU 2009
533/** VRDP script has completed its task */
534#define VINF_VRDP_OPERATION_COMPLETED 2010
535/** VRDP thread has started OK and will run */
536#define VINF_VRDP_THREAD_STARTED 2011
537/** Framebuffer is resized, terminate send bitmap procedure */
538#define VINF_VRDP_RESIZE_REQUESTED 2012
539/** Output can be enabled for the client. */
540#define VINF_VRDP_OUTPUT_ENABLE 2013
541/** @} */
542
543
544/** @name Configuration Manager (CFGM) Status Codes
545 * @{
546 */
547/** The integer value was too big for the requested representation. */
548#define VERR_CFGM_INTEGER_TOO_BIG (-2100)
549/** Child node was not found. */
550#define VERR_CFGM_CHILD_NOT_FOUND (-2101)
551/** Path to child node was invalid (i.e. empty). */
552#define VERR_CFGM_INVALID_CHILD_PATH (-2102)
553/** Value not found. */
554#define VERR_CFGM_VALUE_NOT_FOUND (-2103)
555/** No parent node specified. */
556#define VERR_CFGM_NO_PARENT (-2104)
557/** No node was specified. */
558#define VERR_CFGM_NO_NODE (-2105)
559/** The value is not an integer. */
560#define VERR_CFGM_NOT_INTEGER (-2106)
561/** The value is not a zero terminated character string. */
562#define VERR_CFGM_NOT_STRING (-2107)
563/** The value is not a byte string. */
564#define VERR_CFGM_NOT_BYTES (-2108)
565/** The specified string / bytes buffer was to small. Specify a larger one and retry. */
566#define VERR_CFGM_NOT_ENOUGH_SPACE (-2109)
567/** The path of a new node contained slashs or was empty. */
568#define VERR_CFGM_INVALID_NODE_PATH (-2160)
569/** A new node couldn't be inserted because one with the same name exists. */
570#define VERR_CFGM_NODE_EXISTS (-2161)
571/** A new leaf couldn't be inserted because one with the same name exists. */
572#define VERR_CFGM_LEAF_EXISTS (-2162)
573/** @} */
574
575
576/** @name Time Manager (TM) Status Codes
577 * @{
578 */
579/** The loaded timer state was incorrect. */
580#define VERR_TM_LOAD_STATE (-2200)
581/** The timer was not in the correct state for the request operation. */
582#define VERR_TM_INVALID_STATE (-2201)
583/** The timer was in a unknown state. Corruption or stupid coding error. */
584#define VERR_TM_UNKNOWN_STATE (-2202)
585/** The timer was stuck in an unstable state until we grew impatient and returned. */
586#define VERR_TM_UNSTABLE_STATE (-2203)
587/** @} */
588
589
590/** @name Recompiled Execution Manager (REM) Status Codes
591 * @{
592 */
593/** Fatal error in virtual hardware. */
594#define VERR_REM_VIRTUAL_HARDWARE_ERROR (-2300)
595/** Fatal error in the recompiler cpu. */
596#define VERR_REM_VIRTUAL_CPU_ERROR (-2301)
597/** Recompiler execution was interrupted by forced action. */
598#define VINF_REM_INTERRUPED_FF 2302
599/** Reason for leaving GC: Must flush pending invlpg operations to REM.
600 * Tell REM to flush page invalidations. Will temporary go to REM context
601 * from REM and perform the flushes. */
602#define VERR_REM_FLUSHED_PAGES_OVERFLOW (-2303)
603/** Too many similar traps. This is a very useful debug only
604 * check (we don't do double/tripple faults in REM). */
605#define VERR_REM_TOO_MANY_TRAPS (-2304)
606/** The REM is out of breakpoint slots. */
607#define VERR_REM_NO_MORE_BP_SLOTS (-2305)
608/** The REM could not find any breakpoint on the specified address. */
609#define VERR_REM_BP_NOT_FOUND (-2306)
610/** @} */
611
612
613/** @name Trap Manager / Monitor (TRPM) Status Codes
614 * @{
615 */
616/** No active trap. Cannot query or reset a non-existing trap. */
617#define VERR_TRPM_NO_ACTIVE_TRAP (-2400)
618/** Active trap. Cannot assert a new trap when when one is already active. */
619#define VERR_TRPM_ACTIVE_TRAP (-2401)
620/** Reason for leaving GC: Guest tried to write to our IDT - fatal.
621 * The VM will be terminated assuming the worst, i.e. that the
622 * guest has read the idtr register. */
623#define VERR_TRPM_SHADOW_IDT_WRITE (-2402)
624/** Reason for leaving GC: Fatal trap in hypervisor. */
625#define VERR_TRPM_DONT_PANIC (-2403)
626/** Reason for leaving GC: Double Fault. */
627#define VERR_TRPM_PANIC (-2404)
628/** The exception was dispatched for raw-mode execution. */
629#define VINF_TRPM_XCPT_DISPATCHED 2405
630/** @} */
631
632
633/** @name Selector Manager / Monitor (SELM) Status Code
634 * @{
635 */
636/** Reason for leaving GC: Guest tried to write to our GDT - fatal.
637 * The VM will be terminated assuming the worst, i.e. that the
638 * guest has read the gdtr register. */
639#define VERR_SELM_SHADOW_GDT_WRITE (-2500)
640/** Reason for leaving GC: Guest tried to write to our LDT - fatal.
641 * The VM will be terminated assuming the worst, i.e. that the
642 * guest has read the ldtr register. */
643#define VERR_SELM_SHADOW_LDT_WRITE (-2501)
644/** Reason for leaving GC: Guest tried to write to our TSS - fatal.
645 * The VM will be terminated assuming the worst, i.e. that the
646 * guest has read the ltr register. */
647#define VERR_SELM_SHADOW_TSS_WRITE (-2502)
648/** Reason for leaving GC: Sync the GDT table to solve a conflict. */
649#define VINF_SELM_SYNC_GDT 2503
650/** No valid TSS present. */
651#define VERR_SELM_NO_TSS (-2504)
652/** @} */
653
654
655/** @name I/O Manager / Monitor (IOM) Status Code
656 * @{
657 */
658/** The specified I/O port range was invalid.
659 * It was either empty or it was out of bounds. */
660#define VERR_IOM_INVALID_IOPORT_RANGE (-2600)
661/** The specified GC I/O port range didn't have a corresponding HC range.
662 * IOMIOPortRegisterHC() must be called before IOMIOPortRegisterGC(). */
663#define VERR_IOM_NO_HC_IOPORT_RANGE (-2601)
664/** The specified I/O port range intruded on an existing range. There is
665 * a I/O port conflict between two device, or a device tried to register
666 * the same range twice. */
667#define VERR_IOM_IOPORT_RANGE_CONFLICT (-2602)
668/** The I/O port range specified for removal wasn't found or it wasn't contiguous. */
669#define VERR_IOM_IOPORT_RANGE_NOT_FOUND (-2603)
670/** The specified I/O port range was owned by some other device(s). Both registration
671 * and deregistration, but in the first case only GC ranges. */
672#define VERR_IOM_NOT_IOPORT_RANGE_OWNER (-2604)
673
674/** The specified MMIO range was invalid.
675 * It was either empty or it was out of bounds. */
676#define VERR_IOM_INVALID_MMIO_RANGE (-2605)
677/** The specified GC MMIO range didn't have a corresponding HC range.
678 * IOMMMIORegisterHC() must be called before IOMMMIORegisterGC(). */
679#define VERR_IOM_NO_HC_MMIO_RANGE (-2606)
680/** The specified MMIO range was owned by some other device(s). Both registration
681 * and deregistration, but in the first case only GC ranges. */
682#define VERR_IOM_NOT_MMIO_RANGE_OWNER (-2607)
683/** The specified MMIO range intruded on an existing range. There is
684 * a MMIO conflict between two device, or a device tried to register
685 * the same range twice. */
686#define VERR_IOM_MMIO_RANGE_CONFLICT (-2608)
687/** The MMIO range specified for removal was not found. */
688#define VERR_IOM_MMIO_RANGE_NOT_FOUND (-2609)
689/** The MMIO range specified for removal was invalid. The range didn't match
690 * quite match a set of existing ranges. It's not possible to remove parts of
691 * a MMIO range, only one or more full ranges. */
692#define VERR_IOM_INCOMPLETE_MMIO_RANGE (-2610)
693/** An invalid I/O port size was specified for a read or write operation. */
694#define VERR_IOM_INVALID_IOPORT_SIZE (-2611)
695/** The MMIO handler was called for a bogus address! Internal error! */
696#define VERR_IOM_MMIO_HANDLER_BOGUS_CALL (-2612)
697/** The MMIO handler experienced a problem with the disassembler. */
698#define VERR_IOM_MMIO_HANDLER_DISASM_ERROR (-2613)
699/** The port being read was not present(/unused) and IOM shall return ~0 according to size. */
700#define VERR_IOM_IOPORT_UNUSED (-2614)
701/** Unused MMIO register read, fill with 00. */
702#define VINF_IOM_MMIO_UNUSED_00 2615
703/** Unused MMIO register read, fill with FF. */
704#define VINF_IOM_MMIO_UNUSED_FF 2616
705
706/** Reason for leaving GC: I/O port read. */
707#define VINF_IOM_HC_IOPORT_READ 2620
708/** Reason for leaving GC: I/O port write. */
709#define VINF_IOM_HC_IOPORT_WRITE 2621
710/** Reason for leaving GC: MMIO write. */
711#define VINF_IOM_HC_MMIO_READ 2623
712/** Reason for leaving GC: MMIO read. */
713#define VINF_IOM_HC_MMIO_WRITE 2624
714/** Reason for leaving GC: MMIO read/write. */
715#define VINF_IOM_HC_MMIO_READ_WRITE 2625
716/** @} */
717
718
719/** @name Virtual Machine Monitor (VMM) Status Codes
720 * @{
721 */
722/** Reason for leaving GC: Calling host function. */
723#define VINF_VMM_CALL_HOST 2700
724/** @} */
725
726
727/** @name Pluggable Device and Driver Manager (PDM) Status Codes
728 * @{
729 */
730/** An invalid LUN specification was given. */
731#define VERR_PDM_NO_SUCH_LUN (-2800)
732/** A device encountered an unknown configuration value.
733 * This means that the device is potentially misconfigured and the device
734 * construction or unit attachment failed because of this. */
735#define VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES (-2801)
736/** The above driver doesn't export a interface required by a driver being
737 * attached to it. Typical misconfiguration problem. */
738#define VERR_PDM_MISSING_INTERFACE_ABOVE (-2802)
739/** The below driver doesn't export a interface required by the drive
740 * having attached it. Typical misconfiguration problem. */
741#define VERR_PDM_MISSING_INTERFACE_BELOW (-2803)
742/** A device didn't find a required interface with an attached driver.
743 * Typical misconfiguration problem. */
744#define VERR_PDM_MISSING_INTERFACE (-2804)
745/** A driver encountered an unknown configuration value.
746 * This means that the driver is potentially misconfigured and the driver
747 * construction. */
748#define VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES (-2805)
749/** The PCI bus assigned to a device didn't have room for it.
750 * Either too many devices are configured on the same PCI bus, or there are
751 * some internal problem where PDM/PCI doesn't free up slots when unplugging devices. */
752#define VERR_PDM_TOO_PCI_MANY_DEVICES (-2806)
753/** A queue is out of free items, the queueing operation failed. */
754#define VERR_PDM_NO_QUEUE_ITEMS (-2807)
755/** Not possible to attach further drivers to the driver.
756 * A driver which doesn't support attachments (below of course) will
757 * return this status code if it found that further drivers were configured
758 * to be attached to it. */
759#define VERR_PDM_DRVINS_NO_ATTACH (-2808)
760/** Not possible to attach drivers to the device.
761 * A device which doesn't support attachments (below of course) will
762 * return this status code if it found that drivers were configured
763 * to be attached to it. */
764#define VERR_PDM_DEVINS_NO_ATTACH (-2809)
765/** No attached driver.
766 * The PDMDRVHLP::pfnAttach and PDMDEVHLP::pfnDriverAttach will return
767 * this error when no driver was configured to be attached. */
768#define VERR_PDM_NO_ATTACHED_DRIVER (-2810)
769/** The media geometry hasn't been set yet, so it cannot be obtained.
770 * The caller should then calculate the geometry from the media size. */
771#define VERR_PDM_GEOMETRY_NOT_SET (-2811)
772/** The media translation hasn't been set yet, so it cannot be obtained.
773 * The caller should then guess the translation. */
774#define VERR_PDM_TRANSLATION_NOT_SET (-2812)
775/** The media is not mounted, operation requires a mounted media. */
776#define VERR_PDM_MEDIA_NOT_MOUNTED (-2813)
777/** Mount failed because a media was already mounted. Unmount the media
778 * and retry the mount. */
779#define VERR_PDM_MEDIA_MOUNTED (-2814)
780/** The media is locked and cannot be unmounted. */
781#define VERR_PDM_MEDIA_LOCKED (-2815)
782/** No 'Type' attribute in the DrvBlock configuration.
783 * Misconfiguration. */
784#define VERR_PDM_BLOCK_NO_TYPE (-2816)
785/** The 'Type' attribute in the DrvBlock configuration had an unknown value.
786 * Misconfiguration. */
787#define VERR_PDM_BLOCK_UNKNOWN_TYPE (-2817)
788/** The 'Translation' attribute in the DrvBlock configuration had an unknown value.
789 * Misconfiguration. */
790#define VERR_PDM_BLOCK_UNKNOWN_TRANSLATION (-2818)
791/** The block driver type wasn't supported.
792 * Misconfiguration of the kind you get when attaching a floppy to an IDE controller. */
793#define VERR_PDM_UNSUPPORTED_BLOCK_TYPE (-2819)
794/** A attach or prepare mount call failed because the driver already
795 * had a driver attached. */
796#define VERR_PDM_DRIVER_ALREADY_ATTACHED (-2820)
797/** An attempt on deattaching a driver without anyone actually being attached, or
798 * performing any other operation on an attached driver. */
799#define VERR_PDM_NO_DRIVER_ATTACHED (-2821)
800/** The attached driver configuration is missing the 'Driver' attribute. */
801#define VERR_PDM_CFG_MISSING_DRIVER_NAME (-2822)
802/** The configured driver wasn't found.
803 * Either the necessary driver modules wasn't loaded, the name was
804 * misspelled, or it was a misconfiguration. */
805#define VERR_PDM_DRIVER_NOT_FOUND (-2823)
806/** The Ring-3 module was already loaded. */
807#define VINF_PDM_ALREADY_LOADED (2824)
808/** The name of the module clashed with an existing module. */
809#define VERR_PDM_MODULE_NAME_CLASH (-2825)
810/** Couldn't find any export for registration of drivers/devices. */
811#define VERR_PDM_NO_REGISTRATION_EXPORT (-2826)
812/** A module name is too long. */
813#define VERR_PDM_MODULE_NAME_TOO_LONG (-2827)
814/** Driver name clash. Another driver with the same name as the
815 * one begin registred exists. */
816#define VERR_PDM_DRIVER_NAME_CLASH (-2828)
817/** The version of the driver registration structure is unknown
818 * to this VBox version. Either mixing incompatible versions or
819 * the structure isn't correctly initialized. */
820#define VERR_PDM_UNKNOWN_DRVREG_VERSION (-2829)
821/** Invalid entry in the driver registration structure. */
822#define VERR_PDM_INVALID_DRIVER_REGISTRATION (-2830)
823/** Invalid host bit mask. */
824#define VERR_PDM_INVALID_DRIVER_HOST_BITS (-2831)
825/** Not possible to detach a driver because the above driver/device
826 * doesn't support it. The above entity doesn't implement the pfnDetach call. */
827#define VERR_PDM_DRIVER_DETACH_NOT_POSSIBLE (-2832)
828/** No PCI Bus is available to register the device with. This is usually a
829 * misconfiguration or in rare cases a buggy pci device. */
830#define VERR_PDM_NO_PCI_BUS (-2833)
831/** The device is not a registered PCI device and thus cannot
832 * perform any PCI operations. The device forgot to register it self. */
833#define VERR_PDM_NOT_PCI_DEVICE (-2834)
834
835/** The version of the device registration structure is unknown
836 * to this VBox version. Either mixing incompatible versions or
837 * the structure isn't correctly initialized. */
838#define VERR_PDM_UNKNOWN_DEVREG_VERSION (-2835)
839/** Invalid entry in the device registration structure. */
840#define VERR_PDM_INVALID_DEVICE_REGISTRATION (-2836)
841/** Invalid host bit mask. */
842#define VERR_PDM_INVALID_DEVICE_GUEST_BITS (-2837)
843/** The guest bit mask didn't match the guest being loaded. */
844#define VERR_PDM_INVALID_DEVICE_HOST_BITS (-2838)
845/** Device name clash. Another device with the same name as the
846 * one begin registred exists. */
847#define VERR_PDM_DEVICE_NAME_CLASH (-2839)
848/** The device wasn't found. There was no registered device
849 * by that name. */
850#define VERR_PDM_DEVICE_NOT_FOUND (-2840)
851/** The device instance was not found. */
852#define VERR_PDM_DEVICE_INSTANCE_NOT_FOUND (-2841)
853/** The device instance have no base interface. */
854#define VERR_PDM_DEVICE_INSTANCE_NO_IBASE (-2842)
855/** The device instance have no such logical unit. */
856#define VERR_PDM_DEVICE_INSTANCE_LUN_NOT_FOUND (-2843)
857/** The driver instance could not be found. */
858#define VERR_PDM_DRIVER_INSTANCE_NOT_FOUND (-2844)
859/** Logical Unit was not found. */
860#define VERR_PDM_LUN_NOT_FOUND (-2845)
861/** The Logical Unit was found, but it had no driver attached to it. */
862#define VERR_PDM_NO_DRIVER_ATTACHED_TO_LUN (-2846)
863/** The Logical Unit was found, but it had no driver attached to it. */
864#define VINF_PDM_NO_DRIVER_ATTACHED_TO_LUN 2846
865/** No PIC device instance is registered with the current VM and thus
866 * the PIC operation cannot be performed. */
867#define VERR_PDM_NO_PIC_INSTANCE (-2847)
868/** No APIC device instance is registered with the current VM and thus
869 * the APIC operation cannot be performed. */
870#define VERR_PDM_NO_APIC_INSTANCE (-2848)
871/** No DMAC device instance is registered with the current VM and thus
872 * the DMA operation cannot be performed. */
873#define VERR_PDM_NO_DMAC_INSTANCE (-2849)
874/** No RTC device instance is registered with the current VM and thus
875 * the RTC or CMOS operation cannot be performed. */
876#define VERR_PDM_NO_RTC_INSTANCE (-2850)
877/** Unable to open the host interface due to a sharing violation . */
878#define VERR_PDM_HIF_SHARING_VIOLATION (-2851)
879/** Unable to open the host interface. */
880#define VERR_PDM_HIF_OPEN_FAILED (-2852)
881/** The device doesn't support runtime driver attaching.
882 * The PDMDEVREG::pfnAttach callback function is NULL. */
883#define VERR_PDM_DEVICE_NO_RT_ATTACH (-2853)
884/** The device doesn't support runtime driver detaching.
885 * The PDMDEVREG::pfnDetach callback function is NULL. */
886#define VERR_PDM_DEVICE_NO_RT_DETACH (-2854)
887/** Invalid host interface version. */
888#define VERR_PDM_HIF_INVALID_VERSION (-2855)
889
890/** The version of the USB device registration structure is unknown
891 * to this VBox version. Either mixing incompatible versions or
892 * the structure isn't correctly initialized. */
893#define VERR_PDM_UNKNOWN_USBREG_VERSION (-2856)
894/** Invalid entry in the device registration structure. */
895#define VERR_PDM_INVALID_USB_REGISTRATION (-2857)
896/** Driver name clash. Another driver with the same name as the
897 * one begin registred exists. */
898#define VERR_PDM_USB_NAME_CLASH (-2858)
899/** The USB hub is already registered. */
900#define VERR_PDM_USB_HUB_EXISTS (-2859)
901/** Couldn't find any USB hubs to attach the device to. */
902#define VERR_PDM_NO_USB_HUBS (-2860)
903/** Couldn't find any free USB ports to attach the device to. */
904#define VERR_PDM_NO_USB_PORTS (-2861)
905/** Couldn't find the USB Proxy device. Using OSE? */
906#define VERR_PDM_NO_USBPROXY (-2862)
907
908/** @} */
909
910
911/** @name Host-Guest Communication Manager (HGCM) Status Codes
912 * @{
913 */
914/** Requested service does not exist. */
915#define VERR_HGCM_SERVICE_NOT_FOUND (-2900)
916/** Service rejected client connection */
917#define VINF_HGCM_CLIENT_REJECTED 2901
918/** Command address is invalid. */
919#define VERR_HGCM_INVALID_CMD_ADDRESS (-2902)
920/** Service will execute the command in background. */
921#define VINF_HGCM_ASYNC_EXECUTE 2903
922/** HGCM could not perform requested operation because of an internal error. */
923#define VERR_HGCM_INTERNAL (-2904)
924/** Invalid HGCM client id. */
925#define VERR_HGCM_INVALID_CLIENT_ID (-2905)
926/** The HGCM is saving state. */
927#define VINF_HGCM_SAVE_STATE (2906)
928/** Requested service already exists. */
929#define VERR_HGCM_SERVICE_EXISTS (-2907)
930
931/** @} */
932
933
934/** @name Network Address Translation Driver (DrvNAT) Status Codes
935 * @{
936 */
937/** Failed to find the DNS configured for this machine. */
938#define VINF_NAT_DNS 3000
939/** Failed to convert the specified Guest IP to a binary IP address.
940 * Malformed input. */
941#define VERR_NAT_REDIR_GUEST_IP (-3001)
942/** Failed while setting up a redirector rule.
943 * There probably is a conflict between the rule and some existing
944 * service on the computer. */
945#define VERR_NAT_REDIR_SETUP (-3002)
946/** @} */
947
948
949/** @name HostIF Driver (DrvTUN) Status Codes
950 * @{
951 */
952/** The Host Interface Networking init program failed. */
953#define VERR_HOSTIF_INIT_FAILED (-3100)
954/** The Host Interface Networking device name is too long. */
955#define VERR_HOSTIF_DEVICE_NAME_TOO_LONG (-3101)
956/** The Host Interface Networking name config IOCTL call failed. */
957#define VERR_HOSTIF_IOCTL (-3102)
958/** Failed to make the Host Interface Networking handle non-blocking. */
959#define VERR_HOSTIF_BLOCKING (-3103)
960/** If a Host Interface Networking filehandle was specified it's not allowed to
961 * have any init or term programs. */
962#define VERR_HOSTIF_FD_AND_INIT_TERM (-3104)
963/** @} */
964
965
966/** @name VBox HDD Container (VDI) Status Codes
967 * @{
968 */
969/** Invalid image file header. */
970#define VERR_VDI_INVALID_HEADER (-3200)
971/** Invalid image file header: invalid signature. */
972#define VERR_VDI_INVALID_SIGNATURE (-3201)
973/** Invalid image file header: invalid version. */
974#define VERR_VDI_UNSUPPORTED_VERSION (-3202)
975/** Invalid image type. */
976#define VERR_VDI_INVALID_TYPE (-3203)
977/** Invalid image flags. */
978#define VERR_VDI_INVALID_FLAGS (-3204)
979/** Operation can't be done in current HDD container state. */
980#define VERR_VDI_INVALID_STATE (-3205)
981/** Differencing image can't be used with current base image. */
982#define VERR_VDI_WRONG_DIFF_IMAGE (-3206)
983/** Two or more images of one HDD has different versions. */
984#define VERR_VDI_IMAGES_VERSION_MISMATCH (-3207)
985/** Differencing and parent images can't be used together due to UUID. */
986#define VERR_VDI_IMAGES_UUID_MISMATCH (-3208)
987/** No differencing images to commit. */
988#define VERR_VDI_NO_DIFF_IMAGES (-3209)
989/** Virtual HDD is not opened. */
990#define VERR_VDI_NOT_OPENED (-3210)
991/** Requested image is not opened. */
992#define VERR_VDI_IMAGE_NOT_FOUND (-3211)
993/** Image is read-only. */
994#define VERR_VDI_IMAGE_READ_ONLY (-3212)
995/** Comment string is too long. */
996#define VERR_VDI_COMMENT_TOO_LONG (-3213)
997/** Geometry hasn't been set. */
998#define VERR_VDI_GEOMETRY_NOT_SET (-3214)
999/** No data for this block in image. */
1000#define VINF_VDI_BLOCK_FREE 3215
1001/** Configuration value not found. */
1002#define VERR_VDI_VALUE_NOT_FOUND (-3216)
1003/** @} */
1004
1005
1006/** @name VBox Guest Library (VBGL) Status Codes
1007 * @{
1008 */
1009/** Library was not initialized. */
1010#define VERR_VBGL_NOT_INITIALIZED (-3300)
1011/** Virtual address was not allocated by the library. */
1012#define VERR_VBGL_INVALID_ADDR (-3301)
1013/** IOCtl to VBoxGuest driver failed. */
1014#define VERR_VBGL_IOCTL_FAILED (-3302)
1015/** @} */
1016
1017
1018/** @name VBox USB (VUSB) Status Codes
1019 * @{
1020 */
1021/** No available ports on the hub.
1022 * This error is returned when a device is attempted created and/or attached
1023 * to a hub which is out of ports. */
1024#define VERR_VUSB_NO_PORTS (-3400)
1025/** The requested operation cannot be performed on a detached USB device. */
1026#define VERR_VUSB_DEVICE_NOT_ATTACHED (-3401)
1027/** Failed to allocate memory for a URB. */
1028#define VERR_VUSB_NO_URB_MEMORY (-3402)
1029/** General failure during URB queuing.
1030 * This will go away when the queueing gets proper status code handling. */
1031#define VERR_VUSB_FAILED_TO_QUEUE_URB (-3403)
1032/** Device creation failed because the USB device name was not found. */
1033#define VERR_VUSB_DEVICE_NAME_NOT_FOUND (-3404)
1034/** Not permitted to open the USB device.
1035 * The user doesn't have access to the device in the usbfs, check the mount options. */
1036#define VERR_VUSB_USBFS_PERMISSION (-3405)
1037/** The requested operation cannot be performed because the device
1038 * is currently being reset. */
1039#define VERR_VUSB_DEVICE_IS_RESETTING (-3406)
1040/** @} */
1041
1042
1043/** @name VBox VGA Status Codes
1044 * @{
1045 */
1046/** One of the custom modes was incorrect.
1047 * The format or bit count of the custom mode value is invalid. */
1048#define VERR_VGA_INVALID_CUSTOM_MODE (-3500)
1049/** The display connector is resizing. */
1050#define VINF_VGA_RESIZE_IN_PROGRESS (3501)
1051/** @} */
1052
1053
1054/** @name VBox VMX Status Codes
1055 * @{
1056 */
1057/** Invalid VMCS index or write to read-only element. */
1058#define VERR_VMX_INVALID_VMCS_FIELD (-4000)
1059/** Invalid VMCS pointer. */
1060#define VERR_VMX_INVALID_VMCS_PTR (-4001)
1061/** Invalid VMXON pointer. */
1062#define VERR_VMX_INVALID_VMXON_PTR (-4002)
1063/** Generic VMX failure. */
1064#define VERR_VMX_GENERIC (-4003)
1065/** Invalid CPU mode for VMX execution. */
1066#define VERR_VMX_UNSUPPORTED_MODE (-4004)
1067/** Unable to start VM execution. */
1068#define VERR_VMX_UNABLE_TO_START_VM (-4005)
1069/** Unable to resume VM execution. */
1070#define VERR_VMX_UNABLE_TO_RESUME_VM (-4006)
1071/** Unable to switch due to invalid host state. */
1072#define VERR_VMX_INVALID_HOST_STATE (-4007)
1073/** IA32_FEATURE_CONTROL MSR not setup correcty (turn on VMX in the host system BIOS) */
1074#define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR (-4008)
1075/** VMX CPU extension not available */
1076#define VERR_VMX_NO_VMX (-4009)
1077/** VMXON failed; possibly because it was already run before */
1078#define VERR_VMX_VMXON_FAILED (-4010)
1079/** CPU was incorrectly left in VMX root mode; incompatible with VirtualBox */
1080#define VERR_VMX_IN_VMX_ROOT_MODE (-4011)
1081/** @} */
1082
1083/** @name VBox SVM Status Codes
1084 * @{
1085 */
1086/** Unable to start VM execution. */
1087#define VERR_SVM_UNABLE_TO_START_VM (-4050)
1088/** SVM bit not set in K6_EFER MSR */
1089#define VERR_SVM_ILLEGAL_EFER_MSR (-4051)
1090/** SVM CPU extension not available. */
1091#define VERR_SVM_NO_SVM (-4052)
1092/** SVM CPU extension disabled (by BIOS). */
1093#define VERR_SVM_DISABLED (-4053)
1094/** @} */
1095
1096/** @name VBox HWACCM Status Codes
1097 * @{
1098 */
1099/** Unable to start VM execution. */
1100#define VERR_HWACCM_UNKNOWN_CPU (-4100)
1101/** No CPUID support. */
1102#define VERR_HWACCM_NO_CPUID (-4101)
1103/** @} */
1104
1105/* SED-END */
1106
1107
1108/** @def VBOX_SUCCESS
1109 * Check for success.
1110 *
1111 * @returns true if rc indicates success.
1112 * @returns false if rc indicates failure.
1113 *
1114 * @param rc The iprt status code to test.
1115 */
1116#define VBOX_SUCCESS(rc) RT_SUCCESS(rc)
1117
1118/** @def VBOX_FAILURE
1119 * Check for failure.
1120 *
1121 * @returns true if rc indicates failure.
1122 * @returns false if rc indicates success.
1123 *
1124 * @param rc The iprt status code to test.
1125 */
1126#define VBOX_FAILURE(rc) RT_FAILURE(rc)
1127
1128/** @} */
1129
1130
1131#endif
1132
Note: See TracBrowser for help on using the repository browser.

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