VirtualBox

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

Last change on this file since 5070 was 4971, checked in by vboxsync, 17 years ago

GVM.

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