err.h revision 96dfb27fd8fe1e8515a3d2d82d8ff5633cc1cfa2
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/** @file
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * VirtualBox Status Codes.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/*
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * Copyright (C) 2006-2007 innotek GmbH
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync *
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * available from http://www.virtualbox.org. This file is free software;
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * you can redistribute it and/or modify it under the terms of the GNU
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * General Public License as published by the Free Software Foundation,
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#ifndef ___VBox_err_h
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define ___VBox_err_h
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#include <VBox/cdefs.h>
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#include <iprt/err.h>
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/** @defgroup grp_err Error Codes
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @{
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/* SED-START */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name Misc. Status Codes
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * @{
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Failed to allocate VM memory. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_NO_VM_MEMORY (-1000)
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/** GC is toasted and the VMM should be terminated at once, but no need to panic about it :-) */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VERR_DONT_PANIC (-1001)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unsupported CPU. */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VERR_UNSUPPORTED_CPU (-1002)
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/** Unsupported CPU mode. */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VERR_UNSUPPORTED_CPU_MODE (-1003)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Page not present. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PAGE_NOT_PRESENT (-1004)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Invalid/Corrupted configuration file. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFG_INVALID_FORMAT (-1005)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No configuration value exists. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_CFG_NO_VALUE (-1006)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Not selector not present. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_SELECTOR_NOT_PRESENT (-1007)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Not code selector. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_NOT_CODE_SELECTOR (-1008)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Not data selector. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_NOT_DATA_SELECTOR (-1009)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Out of selector bounds. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_OUT_OF_SELECTOR_BOUNDS (-1010)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid selector. Usually beyond table limits. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_INVALID_SELECTOR (-1011)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid requested privilegde level. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_INVALID_RPL (-1012)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name Execution Monitor/Manager (EM) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync *
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The order of the status codes between VINF_EM_FIRST and VINF_EM_LAST
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * are of vital importance. The lower the number the higher importance
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * as a scheduling instruction.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** First scheduling related status code. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_FIRST 1100
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Indicating that the VM is being terminated and that the the execution
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * shall stop. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_TERMINATE 1100
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Hypervisor code was stepped.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * EM will first send this to the debugger, and if the issue isn't
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * resolved there it will enter guru meditation. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_DBG_HYPER_STEPPED 1101
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Hit a breakpoint in the hypervisor code,
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * EM will first send this to the debugger, and if the issue isn't
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * resolved there it will enter guru meditation. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_DBG_HYPER_BREAKPOINT 1102
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Hit a possible assertion in the hypervisor code,
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * EM will first send this to the debugger, and if the issue isn't
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * resolved there it will enter guru meditation. */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VINF_EM_DBG_HYPER_ASSERTION 1103
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Indicating that the VM should be suspended for debugging because
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * the developer wants to inspect the VM state. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_DBG_STOP 1104
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating success single stepping and that EM should report that
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * event to the debugger. */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VINF_EM_DBG_STEPPED 1105
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that a breakpoint was hit and that EM should notify the debugger
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * and in the event there is no debugger fail fatally. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_DBG_BREAKPOINT 1106
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that EM should single step an instruction.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The instruction is stepped in the current execution mode (RAW/REM). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_DBG_STEP 1107
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that the VM is being turned off and that the EM should
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * exit to the VM awaiting the destruction request. */
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync#define VINF_EM_OFF 1108
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that the VM has been reset and that scheduling goes
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync * back to startup defaults. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESET 1109
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that the VM has been suspended and that the the thread
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * should wait for request telling it what to do next. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_SUSPEND 1110
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Indicating that the VM has executed a halt instruction and that
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the emulation thread should wait for an interrupt before resuming
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * execution. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_EM_HALT 1111
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Indicating that the VM has been resumed and that the thread should
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * start executing. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESUME 1112
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that we've got an out-of-memory condition and that we need
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * to take the appropriate actions to deal with this.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @remarks It might seem odd at first that this has lower priority than VINF_EM_HALT,
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * VINF_EM_SUSPEND, and VINF_EM_RESUME. The reason is that these events are
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * vital to correctly operating the VM. Also, they can't normally occur together
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * with an out-of-memory condition, and even if that should happen the condition
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * will be rediscovered before executing any more code. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_NO_MEMORY 1113
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The fatal variant of VINF_EM_NO_MEMORY. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_EM_NO_MEMORY (-1113)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that a rescheduling to recompiled execution.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Typically caused by raw-mode executing code which is difficult/slow
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * to virtualize rawly.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @remarks Important to have a higher priority (lower number) than the other rescheduling status codes. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESCHEDULE_REM 1114
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that a rescheduling to vmx-mode execution.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Typically caused by REM detecting that hardware-accelerated raw-mode execution is possible. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESCHEDULE_HWACC 1115
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that a rescheduling to raw-mode execution.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Typically caused by REM detecting that raw-mode execution is possible.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @remarks Important to have a higher priority (lower number) than VINF_EM_RESCHEDULE. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESCHEDULE_RAW 1116
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Indicating that a rescheduling now is required. Typically caused by
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * interrupts having changed the EIP. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RESCHEDULE 1117
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Last scheduling related status code. (inclusive) */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_LAST 1117
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Guest trap which couldn't be handled in GC.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The trap is generally forwared to the REM and executed there. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_GUEST_TRAP 1120
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Interrupted by external interrupt.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The interrupt needed to be handled by the host OS. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_INTERRUPT 1121
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Interrupted by external interrupt while in hypervisor code.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The interrupt needed to be handled by the host OS and hypervisor execution must be
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * resumed. VM state is not complete at this point. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_INTERRUPT_HYPER 1122
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: A Ring switch was attempted.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Normal cause of action is to execute this in REM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_RING_SWITCH 1123
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: A Ring switch was attempted using software interrupt.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Normal cause of action is to execute this in REM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_RING_SWITCH_INT 1124
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: A privileged instruction was attempted executed.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Normal cause of action is to execute this in REM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EXCEPTION_PRIVILEGED 1125
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Emulate instruction. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR 1126
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Unhandled TSS write.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_TSS_FAULT 1127
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Unhandled LDT write.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_LDT_FAULT 1128
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Unhandled IDT write.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_IDT_FAULT 1129
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Unhandled GDT write.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_GDT_FAULT 1130
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Unhandled Page Directory write.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_PD_FAULT 1131
29099c2d04b11e614f1fa399fab9e9162f2788b9vboxsync/** Reason for leaving GC: jump inside generated patch jump.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Fatal error. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_EM_RAW_PATCH_CONFLICT (-1132)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Hlt instruction.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Recompiler gets control. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_EMULATE_INSTR_HLT 1133
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Ring-3 operation pending. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_TO_R3 1134
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Timer pending. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_TIMER_PENDING 1135
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Interrupt pending (guest). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_INTERRUPT_PENDING 1136
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Encountered a stale selector. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_STALE_SELECTOR 1137
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: The IRET resuming guest code trapped. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_RAW_IRET_TRAP 1138
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The interpreter was unable to deal with the instruction at hand. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_EM_INTERPRETER (-1148)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Internal EM error caused by an unknown warning or informational status code. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_EM_INTERNAL_ERROR (-1149)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Pending VM request packet. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_EM_PENDING_REQUEST (-1150)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name Debugging Facility (DBGF) DBGF Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The function called requires the caller to be attached as a
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * debugger to the VM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_DBGF_NOT_ATTACHED (-1200)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Someone (including the caller) was already attached as
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * debugger to the VM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_DBGF_ALREADY_ATTACHED (-1201)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Tried to hald a debugger which was already halted.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * (This is a warning and not an error.) */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_DBGF_ALREADY_HALTED 1202
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The DBGF has no more free breakpoint slots. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_DBGF_NO_MORE_BP_SLOTS (-1203)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The DBGF couldn't find the specified breakpoint. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_DBGF_BP_NOT_FOUND (-1204)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempted to enabled a breakpoint which was already enabled. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_DBGF_BP_ALREADY_ENABLED 1205
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempted to disabled a breakpoint which was already disabled. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_DBGF_BP_ALREADY_DISABLED 1206
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The breakpoint already exists. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_DBGF_BP_ALREADY_EXIST 1207
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Patch Manager (PATM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Non fatal Patch Manager analysis phase warning */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_CONTINUE_ANALYSIS 1400
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Non fatal Patch Manager recompile phase warning (mapped to VWRN_CONTINUE_ANALYSIS). */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_CONTINUE_RECOMPILE VWRN_CONTINUE_ANALYSIS
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Continue search (mapped to VWRN_CONTINUE_ANALYSIS). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VWRN_PATM_CONTINUE_SEARCH VWRN_CONTINUE_ANALYSIS
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Patch installation refused (patch too complex or unsupported instructions ) */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PATCHING_REFUSED (-1401)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unable to find patch */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PATCH_NOT_FOUND (-1402)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Patch disabled */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATCH_DISABLED (-1403)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Patch enabled */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_PATCH_ENABLED 1404
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Patch was already disabled */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATCH_ALREADY_DISABLED (-1405)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Patch was already enabled */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATCH_ALREADY_ENABLED (-1406)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Patch was removed. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_PATCH_REMOVED 1408
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: \#GP with EIP pointing to patch code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_PATCH_TRAP_GP 1408
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** First leave GC code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_LEAVEGC_FIRST VINF_PATM_PATCH_TRAP_GP
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: \#PF with EIP pointing to patch code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_PATCH_TRAP_PF 1409
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: int3 with EIP pointing to patch code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_PATCH_INT3 1410
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: \#PF for monitored patch page. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_CHECK_PATCH_PAGE 1411
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: duplicate instruction called at current eip. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_DUPLICATE_FUNCTION 1412
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Execute one instruction with the recompiler */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATCH_EMULATE_INSTR 1413
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: attempt to patch MMIO write. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_HC_MMIO_PATCH_WRITE 1414
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: attempt to patch MMIO read. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_HC_MMIO_PATCH_READ 1415
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: pending irq after iret that sets IF. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_PENDING_IRQ_AFTER_IRET 1416
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Last leave GC code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_LEAVEGC_LAST VINF_PATM_PENDING_IRQ_AFTER_IRET
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** No conflicts to resolve */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATCH_NO_CONFLICT (-1425)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Detected unsafe code for patching */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATM_UNSAFE_CODE (-1426)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Terminate search branch */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_PATCH_END_BRANCH 1427
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Already patched */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PATM_ALREADY_PATCHED (-1428)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Spinlock detection failed. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATM_SPINLOCK_FAILED (1429)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Continue execution after patch trap. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PATCH_CONTINUE (1430)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Code Scanning and Analysis Manager (CSAM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Trap not handled */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_CSAM_TRAP_NOT_HANDLED 1500
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Patch installed */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_CSAM_INSTRUCTION_PATCHED 1501
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Page record not found */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VWRN_CSAM_PAGE_NOT_FOUND 1502
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: CSAM wants perform a task in ring-3. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_CSAM_PENDING_ACTION 1503
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Page Monitor/Manager (PGM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempt to create a GC mapping which conflicts with an existing mapping. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_MAPPING_CONFLICT (-1600)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The physical handler range has no corresponding RAM range.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * If this is MMIO, see todo above the return. If not MMIO, then it's
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * someone else's fault... */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_HANDLER_PHYSICAL_NO_RAM_RANGE (-1601)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempt to register an access handler for a virtual range of which a part
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * was already handled. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_HANDLER_VIRTUAL_CONFLICT (-1602)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempt to register an access handler for a physical range of which a part
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * was already handled. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_HANDLER_PHYSICAL_CONFLICT (-1603)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Invalid page directory specified to PGM. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_INVALID_PAGE_DIRECTORY (-1604)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Invalid GC physical address. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_INVALID_GC_PHYSICAL_ADDRESS (-1605)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Invalid GC physical range. Usually used when a specified range crosses
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * a RAM region boundrary. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_INVALID_GC_PHYSICAL_RANGE (-1606)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Specified access handler was not found. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_HANDLER_NOT_FOUND (-1607)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Attempt to register a RAM range of which parts are already
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * covered by existing RAM ranges. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_RAM_CONFLICT (-1608)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Failed to add new mappings because the current mappings are fixed
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * in guest os memory. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_MAPPINGS_FIXED (-1609)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Failed to fix mappings because of a conflict with the intermediate code. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_MAPPINGS_FIX_CONFLICT (-1610)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Failed to fix mappings because a mapping rejected the address. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_MAPPINGS_FIX_REJECTED (-1611)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Failed to fix mappings because the proposed memory area was to small. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PGM_MAPPINGS_FIX_TOO_SMALL (-1612)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: The urge to syncing CR3. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_PGM_SYNC_CR3 1613
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Page not marked for dirty bit tracking */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_PGM_NO_DIRTY_BIT_TRACKING 1614
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Page fault caused by dirty bit tracking; corrected */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_HANDLED_DIRTY_BIT_FAULT 1615
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Go ahead with the default Read/Write operation.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * This is returned by a HC physical or virtual handler when it wants the PGMPhys[Read|Write]
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * routine do the reading/writing. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_HANDLER_DO_DEFAULT 1616
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The paging mode of the host is not supported yet. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_UNSUPPORTED_HOST_PAGING_MODE (-1617)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The physical guest page is a reserved/mmio page and does not have any HC address. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_PHYS_PAGE_RESERVED (-1618)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** No page directory available for the hypervisor. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_NO_HYPERVISOR_ADDRESS (-1619)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The shadow page pool was flushed.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * This means that a global CR3 sync was flagged. Anyone receiving this kind of status
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * will have to get down to a SyncCR3 ASAP. See also VINF_PGM_SYNC_CR3. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_POOL_FLUSHED (-1620)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The shadow page pool was cleared.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * This is a error code internal to the shadow page pool, it will be
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * converted to a VERR_PGM_POOL_FLUSHED before leaving the pool code. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_POOL_CLEARED (-1621)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The returned shadow page is cached. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_CACHED_PAGE 1622
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Returned by handler registration, modification and deregistration
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * when the shadow PTs could be updated because the guest page
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * aliased or/and mapped by multiple PTs. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_GCPHYS_ALIASED 1623
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Reason for leaving GC: Paging mode changed.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * PGMChangeMode() uses this to force a switch to HC so it can safely
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * deal with a mode switch.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_CHANGE_MODE 1624
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** SyncPage modified the PDE.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * This is an internal status code used to communicate back to the \#PF handler
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * that the PDE was (probably) marked not-present and it should restart the instruction. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VINF_PGM_SYNCPAGE_MODIFIED_PDE 1625
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Physical range crosses dynamic ram chunk boundary; translation to HC ptr not safe. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_PGM_GCPHYS_RANGE_CROSSES_BOUNDARY (-1626)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Memory Monitor (MM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Attempt to register a RAM range of which parts are already
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * covered by existing RAM ranges. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_MM_RAM_CONFLICT (-1700)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Hypervisor memory allocation failed. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_MM_HYPER_NO_MEMORY (-1701)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Save State Manager (SSM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The specified data unit already exist. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_UNIT_EXISTS (-1800)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The specified data unit wasn't found. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_UNIT_NOT_FOUND (-1801)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The specified data unit wasn't owned by caller. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_UNIT_NOT_OWNER (-1802)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** General saved state file integrity error. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY (-1810)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The saved state file magic was not recognized. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_MAGIC (-1811)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The saved state file magic was not recognized. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_VERSION (-1812)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The saved state file magic was not recognized. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_SIZE (-1813)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The CRC of the saved state file did match. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_CRC (-1814)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The current virtual machine id didn't match the virtual machine id. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SMM_INTEGRITY_MACHINE (-1815)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Invalid unit magic (internal data tag). */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_UNIT_MAGIC (-1816)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The file contained a data unit which no-one wants. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INTEGRITY_UNIT_NOT_FOUND (-1817)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** A data unit in the saved state file was defined but didn't any
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * routine for processing it. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_NO_LOAD_EXEC (-1818)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** A restore routine attempted to load more data then the unit contained. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_LOADED_TOO_MUCH (-1819)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Not in the correct state for the attempted operation. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_INVALID_STATE (-1820)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Unsupported data unit version.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * A SSM user returns this if it doesn't know the u32Version. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION (-1821)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The format of a data unit has changed.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * A SSM user returns this if it's not able to read the format for
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * other reasons than u32Version. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_DATA_UNIT_FORMAT_CHANGED (-1822)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The CPUID instruction returns different information when loading than when saved.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * Normally caused by hardware changes on the host, but could also be caused by
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * changes in the BIOS setup. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_LOAD_CPUID_MISMATCH (-1823)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The RAM size differes between the saved state and the VM config. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_LOAD_MEMORY_SIZE_MISMATCH (-1824)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The state doesn't match the VM configuration in one or another way.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * (There are certain PCI reconfiguration which the OS could potentially
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * do which can cause this problem. Check this out when it happens.) */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_LOAD_CONFIG_MISMATCH (-1825)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The virtual clock freqency differs too much.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * The clock source for the virtual time isn't reliable or the code have changed. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_VIRTUAL_CLOCK_HZ (-1826)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** A timeout occured while waiting for async IDE operations to finish. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_IDE_ASYNC_TIMEOUT (-1827)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** One of the structure magics was wrong. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_STRUCTURE_MAGIC (-1828)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The data in the saved state doesn't confirm to expectations. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_SSM_UNEXPECTED_DATA (-1829)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @} */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** @name Virtual Machine (VM) Status Codes
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * @{
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The specified at reset handler wasn't found. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_ATRESET_NOT_FOUND (-1900)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Invalid VM request type.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * For the VMR3ReqAlloc() case, the caller just specified an illegal enmType. For
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * all the other occurences it means indicates corruption, broken logic, or stupid
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * interface user. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_REQUEST_INVALID_TYPE (-1901)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Invalid VM request state.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * The state of the request packet was not the expected and accepted one(s). Either
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * the interface user screwed up, or we've got corruption/broken logic. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_REQUEST_STATE (-1902)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** Invalid VM request packet.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * One or more of the the VM controlled packet members didn't contain the correct
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * values. Some thing's broken. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_REQUEST_INVALID_PACKAGE (-1903)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The status field has not been updated yet as the request is still
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * pending completion. Someone queried the iStatus field before the request
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * has been fully processed. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_REQUEST_STATUS_STILL_PENDING (-1904)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The request has been freed, don't read the status now.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * Someone is reading the iStatus field of a freed request packet. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_REQUEST_STATUS_FREED (-1905)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** A VM api requiring EMT was called from another thread.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * Use the VMR3ReqCall() apis to call it! */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_THREAD_NOT_EMT (-1906)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The VM state was invalid for the requested operation.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * Go check the 'VM Statechart Diagram.gif'. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_INVALID_VM_STATE (-1907)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The support driver is not installed.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * On linux, open returned ENOENT. */
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync#define VERR_VM_DRIVER_NOT_INSTALLED (-1908)
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync/** The support driver is not accessible.
66b58af085e22ee26be57f98127fb49ee2e91790vboxsync * On linux, open returned EPERM. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VM_DRIVER_NOT_ACCESSIBLE (-1909)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Was not able to load the support driver.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * On linux, open returned ENODEV. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VM_DRIVER_LOAD_ERROR (-1910)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Was not able to open the support driver.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Generic open error used when none of the other ones fit. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VM_DRIVER_OPEN_ERROR (-1911)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The installed support driver doesn't match the version of the user. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VM_DRIVER_VERSION_MISMATCH (-1912)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Saving the VM state is temporarily not allowed. Try again later. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VM_SAVE_STATE_NOT_ALLOWED (-1913)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name VBox Remote Desktop Protocol (VRDP) Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Successful completion of operation (mapped to generic iprt status code). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_SUCCESS VINF_SUCCESS
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP transport operation timed out (mapped to generic iprt status code). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_TIMEOUT VERR_TIMEOUT
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unsupported ISO protocol feature */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_ISO_UNSUPPORTED (-2000)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Security (en/decryption) engine error */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_SEC_ENGINE_FAIL (-2001)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP protocol violation */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_PROTOCOL_ERROR (-2002)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unsupported VRDP protocol feature */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_NOT_SUPPORTED (-2003)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP protocol violation, client sends less data than expected */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_INSUFFICIENT_DATA (-2004)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Internal error, VRDP packet is in wrong operation mode */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_INVALID_MODE (-2005)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Memory allocation failed */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_NO_MEMORY (-2006)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Client has been rejected */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_VRDP_ACCESS_DENIED (-2007)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRPD receives a packet that is not supported */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VWRN_VRDP_PDU_NOT_SUPPORTED 2008
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP script allowed the packet to be processed further */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_PROCESS_PDU 2009
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP script has completed its task */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_OPERATION_COMPLETED 2010
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** VRDP thread has started OK and will run */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_THREAD_STARTED 2011
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Framebuffer is resized, terminate send bitmap procedure */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_RESIZE_REQUESTED 2012
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Output can be enabled for the client. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VRDP_OUTPUT_ENABLE 2013
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name Configuration Manager (CFGM) Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The integer value was too big for the requested representation. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_INTEGER_TOO_BIG (-2100)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Child node was not found. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_CHILD_NOT_FOUND (-2101)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Path to child node was invalid (i.e. empty). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_INVALID_CHILD_PATH (-2102)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Value not found. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_VALUE_NOT_FOUND (-2103)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** No parent node specified. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NO_PARENT (-2104)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** No node was specified. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NO_NODE (-2105)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The value is not an integer. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NOT_INTEGER (-2106)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The value is not a zero terminated character string. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NOT_STRING (-2107)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The value is not a byte string. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NOT_BYTES (-2108)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified string / bytes buffer was to small. Specify a larger one and retry. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NOT_ENOUGH_SPACE (-2109)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The path of a new node contained slashs or was empty. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_INVALID_NODE_PATH (-2160)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** A new node couldn't be inserted because one with the same name exists. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_NODE_EXISTS (-2161)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** A new leaf couldn't be inserted because one with the same name exists. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_CFGM_LEAF_EXISTS (-2162)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name Time Manager (TM) Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The loaded timer state was incorrect. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_TM_LOAD_STATE (-2200)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The timer was not in the correct state for the request operation. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_TM_INVALID_STATE (-2201)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The timer was in a unknown state. Corruption or stupid coding error. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_TM_UNKNOWN_STATE (-2202)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The timer was stuck in an unstable state until we grew impatient and returned. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_TM_UNSTABLE_STATE (-2203)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name Recompiled Execution Manager (REM) Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Fatal error in virtual hardware. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_VIRTUAL_HARDWARE_ERROR (-2300)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Fatal error in the recompiler cpu. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_VIRTUAL_CPU_ERROR (-2301)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Recompiler execution was interrupted by forced action. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VINF_REM_INTERRUPED_FF 2302
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Reason for leaving GC: Must flush pending invlpg operations to REM.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * Tell REM to flush page invalidations. Will temporary go to REM context
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * from REM and perform the flushes. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_FLUSHED_PAGES_OVERFLOW (-2303)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Too many similar traps. This is a very useful debug only
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * check (we don't do double/tripple faults in REM). */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_TOO_MANY_TRAPS (-2304)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The REM is out of breakpoint slots. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_NO_MORE_BP_SLOTS (-2305)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The REM could not find any breakpoint on the specified address. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_REM_BP_NOT_FOUND (-2306)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name Trap Manager / Monitor (TRPM) Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** No active trap. Cannot query or reset a non-existing trap. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_TRPM_NO_ACTIVE_TRAP (-2400)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Active trap. Cannot assert a new trap when when one is already active. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_TRPM_ACTIVE_TRAP (-2401)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Reason for leaving GC: Guest tried to write to our IDT - fatal.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * The VM will be terminated assuming the worst, i.e. that the
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * guest has read the idtr register. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_TRPM_SHADOW_IDT_WRITE (-2402)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Fatal trap in hypervisor. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_TRPM_DONT_PANIC (-2403)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Double Fault. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_TRPM_PANIC (-2404)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The exception was dispatched for raw-mode execution. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_TRPM_XCPT_DISPATCHED 2405
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name Selector Manager / Monitor (SELM) Status Code
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Guest tried to write to our GDT - fatal.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The VM will be terminated assuming the worst, i.e. that the
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * guest has read the gdtr register. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_SELM_SHADOW_GDT_WRITE (-2500)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Reason for leaving GC: Guest tried to write to our LDT - fatal.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The VM will be terminated assuming the worst, i.e. that the
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * guest has read the ldtr register. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_SELM_SHADOW_LDT_WRITE (-2501)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Guest tried to write to our TSS - fatal.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * The VM will be terminated assuming the worst, i.e. that the
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * guest has read the ltr register. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_SELM_SHADOW_TSS_WRITE (-2502)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Sync the GDT table to solve a conflict. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_SELM_SYNC_GDT 2503
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** No valid TSS present. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_SELM_NO_TSS (-2504)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** @} */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** @name I/O Manager / Monitor (IOM) Status Code
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * @{
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The specified I/O port range was invalid.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * It was either empty or it was out of bounds. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_IOM_INVALID_IOPORT_RANGE (-2600)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The specified GC I/O port range didn't have a corresponding HC range.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * IOMIOPortRegisterHC() must be called before IOMIOPortRegisterGC(). */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_IOM_NO_HC_IOPORT_RANGE (-2601)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The specified I/O port range intruded on an existing range. There is
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * a I/O port conflict between two device, or a device tried to register
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * the same range twice. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_IOM_IOPORT_RANGE_CONFLICT (-2602)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The I/O port range specified for removal wasn't found or it wasn't contiguous. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_IOPORT_RANGE_NOT_FOUND (-2603)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified I/O port range was owned by some other device(s). Both registration
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * and deregistration, but in the first case only GC ranges. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_NOT_IOPORT_RANGE_OWNER (-2604)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified MMIO range was invalid.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * It was either empty or it was out of bounds. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_INVALID_MMIO_RANGE (-2605)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified GC MMIO range didn't have a corresponding HC range.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * IOMMMIORegisterHC() must be called before IOMMMIORegisterGC(). */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_NO_HC_MMIO_RANGE (-2606)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified MMIO range was owned by some other device(s). Both registration
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * and deregistration, but in the first case only GC ranges. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_NOT_MMIO_RANGE_OWNER (-2607)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The specified MMIO range intruded on an existing range. There is
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * a MMIO conflict between two device, or a device tried to register
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * the same range twice. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_MMIO_RANGE_CONFLICT (-2608)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The MMIO range specified for removal was not found. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_MMIO_RANGE_NOT_FOUND (-2609)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The MMIO range specified for removal was invalid. The range didn't match
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * quite match a set of existing ranges. It's not possible to remove parts of
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * a MMIO range, only one or more full ranges. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_INCOMPLETE_MMIO_RANGE (-2610)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** An invalid I/O port size was specified for a read or write operation. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_INVALID_IOPORT_SIZE (-2611)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The MMIO handler was called for a bogus address! Internal error! */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_MMIO_HANDLER_BOGUS_CALL (-2612)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The MMIO handler experienced a problem with the disassembler. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_MMIO_HANDLER_DISASM_ERROR (-2613)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The port being read was not present(/unused) and IOM shall return ~0 according to size. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_IOM_IOPORT_UNUSED (-2614)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unused MMIO register read, fill with 00. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_MMIO_UNUSED_00 2615
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Unused MMIO register read, fill with FF. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_MMIO_UNUSED_FF 2616
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: I/O port read. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_HC_IOPORT_READ 2620
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: I/O port write. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_HC_IOPORT_WRITE 2621
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: MMIO write. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_HC_MMIO_READ 2623
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: MMIO read. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_HC_MMIO_WRITE 2624
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: MMIO read/write. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_IOM_HC_MMIO_READ_WRITE 2625
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name Virtual Machine Monitor (VMM) Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** Reason for leaving GC: Calling host function. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VINF_VMM_CALL_HOST 2700
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @name Pluggable Device and Driver Manager (PDM) Status Codes
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @{
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** An invalid LUN specification was given. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PDM_NO_SUCH_LUN (-2800)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** A device encountered an unknown configuration value.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * This means that the device is potentially misconfigured and the device
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * construction or unit attachment failed because of this. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES (-2801)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** The above driver doesn't export a interface required by a driver being
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * attached to it. Typical misconfiguration problem. */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VERR_PDM_MISSING_INTERFACE_ABOVE (-2802)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The below driver doesn't export a interface required by the drive
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * having attached it. Typical misconfiguration problem. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_MISSING_INTERFACE_BELOW (-2803)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** A device didn't find a required interface with an attached driver.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * Typical misconfiguration problem. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_MISSING_INTERFACE (-2804)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** A driver encountered an unknown configuration value.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * This means that the driver is potentially misconfigured and the driver
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * construction. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES (-2805)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The PCI bus assigned to a device didn't have room for it.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * Either too many devices are configured on the same PCI bus, or there are
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * some internal problem where PDM/PCI doesn't free up slots when unplugging devices. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_TOO_PCI_MANY_DEVICES (-2806)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** A queue is out of free items, the queueing operation failed. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_NO_QUEUE_ITEMS (-2807)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** Not possible to attach further drivers to the driver.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * A driver which doesn't support attachments (below of course) will
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * return this status code if it found that further drivers were configured
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * to be attached to it. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_DRVINS_NO_ATTACH (-2808)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** Not possible to attach drivers to the device.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * A device which doesn't support attachments (below of course) will
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * return this status code if it found that drivers were configured
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * to be attached to it. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_DEVINS_NO_ATTACH (-2809)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** No attached driver.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * The PDMDRVHLP::pfnAttach and PDMDEVHLP::pfnDriverAttach will return
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * this error when no driver was configured to be attached. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_NO_ATTACHED_DRIVER (-2810)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The media geometry hasn't been set yet, so it cannot be obtained.
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * The caller should then calculate the geometry from the media size. */
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync#define VERR_PDM_GEOMETRY_NOT_SET (-2811)
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync/** The media translation hasn't been set yet, so it cannot be obtained.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The caller should then guess the translation. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_TRANSLATION_NOT_SET (-2812)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The media is not mounted, operation requires a mounted media. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_MEDIA_NOT_MOUNTED (-2813)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Mount failed because a media was already mounted. Unmount the media
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * and retry the mount. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_MEDIA_MOUNTED (-2814)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The media is locked and cannot be unmounted. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_MEDIA_LOCKED (-2815)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No 'Type' attribute in the DrvBlock configuration.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Misconfiguration. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_BLOCK_NO_TYPE (-2816)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The 'Type' attribute in the DrvBlock configuration had an unknown value.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Misconfiguration. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_BLOCK_UNKNOWN_TYPE (-2817)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The 'Translation' attribute in the DrvBlock configuration had an unknown value.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Misconfiguration. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_BLOCK_UNKNOWN_TRANSLATION (-2818)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The block driver type wasn't supported.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Misconfiguration of the kind you get when attaching a floppy to an IDE controller. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_UNSUPPORTED_BLOCK_TYPE (-2819)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** A attach or prepare mount call failed because the driver already
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * had a driver attached. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DRIVER_ALREADY_ATTACHED (-2820)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** An attempt on deattaching a driver without anyone actually being attached, or
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * performing any other operation on an attached driver. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_DRIVER_ATTACHED (-2821)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The attached driver configuration is missing the 'Driver' attribute. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_CFG_MISSING_DRIVER_NAME (-2822)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The configured driver wasn't found.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Either the necessary driver modules wasn't loaded, the name was
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * misspelled, or it was a misconfiguration. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DRIVER_NOT_FOUND (-2823)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Ring-3 module was already loaded. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_PDM_ALREADY_LOADED (2824)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The name of the module clashed with an existing module. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_MODULE_NAME_CLASH (-2825)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Couldn't find any export for registration of drivers/devices. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_REGISTRATION_EXPORT (-2826)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** A module name is too long. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_MODULE_NAME_TOO_LONG (-2827)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Driver name clash. Another driver with the same name as the
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * one begin registred exists. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_DRIVER_NAME_CLASH (-2828)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The version of the driver registration structure is unknown
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * to this VBox version. Either mixing incompatible versions or
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * the structure isn't correctly initialized. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_UNKNOWN_DRVREG_VERSION (-2829)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Invalid entry in the driver registration structure. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_INVALID_DRIVER_REGISTRATION (-2830)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Invalid host bit mask. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_INVALID_DRIVER_HOST_BITS (-2831)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Not possible to detach a driver because the above driver/device
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * doesn't support it. The above entity doesn't implement the pfnDetach call. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_PDM_DRIVER_DETACH_NOT_POSSIBLE (-2832)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No PCI Bus is available to register the device with. This is usually a
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * misconfiguration or in rare cases a buggy pci device. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_PCI_BUS (-2833)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device is not a registered PCI device and thus cannot
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * perform any PCI operations. The device forgot to register it self. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NOT_PCI_DEVICE (-2834)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The version of the device registration structure is unknown
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * to this VBox version. Either mixing incompatible versions or
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the structure isn't correctly initialized. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_UNKNOWN_DEVREG_VERSION (-2835)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid entry in the device registration structure. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_INVALID_DEVICE_REGISTRATION (-2836)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid host bit mask. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_INVALID_DEVICE_GUEST_BITS (-2837)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The guest bit mask didn't match the guest being loaded. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_INVALID_DEVICE_HOST_BITS (-2838)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Device name clash. Another device with the same name as the
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * one begin registred exists. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_NAME_CLASH (-2839)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device wasn't found. There was no registered device
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * by that name. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_NOT_FOUND (-2840)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device instance was not found. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_INSTANCE_NOT_FOUND (-2841)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device instance have no base interface. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_INSTANCE_NO_IBASE (-2842)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device instance have no such logical unit. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_INSTANCE_LUN_NOT_FOUND (-2843)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The driver instance could not be found. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DRIVER_INSTANCE_NOT_FOUND (-2844)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Logical Unit was not found. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_LUN_NOT_FOUND (-2845)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Logical Unit was found, but it had no driver attached to it. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_DRIVER_ATTACHED_TO_LUN (-2846)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Logical Unit was found, but it had no driver attached to it. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_PDM_NO_DRIVER_ATTACHED_TO_LUN 2846
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No PIC device instance is registered with the current VM and thus
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the PIC operation cannot be performed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_PIC_INSTANCE (-2847)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No APIC device instance is registered with the current VM and thus
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the APIC operation cannot be performed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_APIC_INSTANCE (-2848)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No DMAC device instance is registered with the current VM and thus
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the DMA operation cannot be performed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_DMAC_INSTANCE (-2849)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No RTC device instance is registered with the current VM and thus
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the RTC or CMOS operation cannot be performed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_RTC_INSTANCE (-2850)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Unable to open the host interface due to a sharing violation . */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_HIF_SHARING_VIOLATION (-2851)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Unable to open the host interface. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_HIF_OPEN_FAILED (-2852)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device doesn't support runtime driver attaching.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The PDMDEVREG::pfnAttach callback function is NULL. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_NO_RT_ATTACH (-2853)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The device doesn't support runtime driver detaching.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The PDMDEVREG::pfnDetach callback function is NULL. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_DEVICE_NO_RT_DETACH (-2854)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid host interface version. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_HIF_INVALID_VERSION (-2855)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The version of the USB device registration structure is unknown
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * to this VBox version. Either mixing incompatible versions or
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * the structure isn't correctly initialized. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_UNKNOWN_USBREG_VERSION (-2856)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid entry in the device registration structure. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_INVALID_USB_REGISTRATION (-2857)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Driver name clash. Another driver with the same name as the
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * one begin registred exists. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_USB_NAME_CLASH (-2858)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The USB hub is already registered. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_USB_HUB_EXISTS (-2859)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Couldn't find any USB hubs to attach the device to. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_USB_HUBS (-2860)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Couldn't find any free USB ports to attach the device to. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_USB_PORTS (-2861)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Couldn't find the USB Proxy device. Using OSE? */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_PDM_NO_USBPROXY (-2862)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name Host-Guest Communication Manager (HGCM) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Requested service does not exist. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HGCM_SERVICE_NOT_FOUND (-2900)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Service rejected client connection */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_HGCM_CLIENT_REJECTED 2901
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Command address is invalid. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HGCM_INVALID_CMD_ADDRESS (-2902)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Service will execute the command in background. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_HGCM_ASYNC_EXECUTE 2903
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** HGCM could not perform requested operation because of an internal error. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HGCM_INTERNAL (-2904)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid HGCM client id. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HGCM_INVALID_CLIENT_ID (-2905)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The HGCM is saving state. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_HGCM_SAVE_STATE (2906)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Requested service already exists. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HGCM_SERVICE_EXISTS (-2907)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name Network Address Translation Driver (DrvNAT) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Failed to find the DNS configured for this machine. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_NAT_DNS 3000
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Failed to convert the specified Guest IP to a binary IP address.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * Malformed input. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_NAT_REDIR_GUEST_IP (-3001)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Failed while setting up a redirector rule.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * There probably is a conflict between the rule and some existing
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * service on the computer. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_NAT_REDIR_SETUP (-3002)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name HostIF Driver (DrvTUN) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Host Interface Networking init program failed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HOSTIF_INIT_FAILED (-3100)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Host Interface Networking device name is too long. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HOSTIF_DEVICE_NAME_TOO_LONG (-3101)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The Host Interface Networking name config IOCTL call failed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HOSTIF_IOCTL (-3102)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Failed to make the Host Interface Networking handle non-blocking. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HOSTIF_BLOCKING (-3103)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** If a Host Interface Networking filehandle was specified it's not allowed to
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * have any init or term programs. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HOSTIF_FD_AND_INIT_TERM (-3104)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox HDD Container (VDI) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid image file header. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_INVALID_HEADER (-3200)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid image file header: invalid signature. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_INVALID_SIGNATURE (-3201)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid image file header: invalid version. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_UNSUPPORTED_VERSION (-3202)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid image type. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_INVALID_TYPE (-3203)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid image flags. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_INVALID_FLAGS (-3204)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Operation can't be done in current HDD container state. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_INVALID_STATE (-3205)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Differencing image can't be used with current base image. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_WRONG_DIFF_IMAGE (-3206)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Two or more images of one HDD has different versions. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_IMAGES_VERSION_MISMATCH (-3207)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Differencing and parent images can't be used together due to UUID. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_IMAGES_UUID_MISMATCH (-3208)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No differencing images to commit. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_NO_DIFF_IMAGES (-3209)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Virtual HDD is not opened. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_NOT_OPENED (-3210)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Requested image is not opened. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_IMAGE_NOT_FOUND (-3211)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Image is read-only. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_IMAGE_READ_ONLY (-3212)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Comment string is too long. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_COMMENT_TOO_LONG (-3213)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Geometry hasn't been set. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_GEOMETRY_NOT_SET (-3214)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No data for this block in image. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VINF_VDI_BLOCK_FREE 3215
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Configuration value not found. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VDI_VALUE_NOT_FOUND (-3216)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox Guest Library (VBGL) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Library was not initialized. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VBGL_NOT_INITIALIZED (-3300)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Virtual address was not allocated by the library. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VBGL_INVALID_ADDR (-3301)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** IOCtl to VBoxGuest driver failed. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VBGL_IOCTL_FAILED (-3302)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox USB (VUSB) Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** No available ports on the hub.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * This error is returned when a device is attempted created and/or attached
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * to a hub which is out of ports. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VUSB_NO_PORTS (-3400)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The requested operation cannot be performed on a detached USB device. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VUSB_DEVICE_NOT_ATTACHED (-3401)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Failed to allocate memory for a URB. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VUSB_NO_URB_MEMORY (-3402)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** General failure during URB queuing.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * This will go away when the queueing gets proper status code handling. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VUSB_FAILED_TO_QUEUE_URB (-3403)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Device creation failed because the USB device name was not found. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VUSB_DEVICE_NAME_NOT_FOUND (-3404)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Not permitted to open the USB device.
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * The user doesn't have access to the device in the usbfs, check the mount options. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VUSB_USBFS_PERMISSION (-3405)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The requested operation cannot be performed because the device
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * is currently being reset. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VUSB_DEVICE_IS_RESETTING (-3406)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name VBox VGA Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** One of the custom modes was incorrect.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * The format or bit count of the custom mode value is invalid. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VGA_INVALID_CUSTOM_MODE (-3500)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The display connector is resizing. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VINF_VGA_RESIZE_IN_PROGRESS (3501)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name VBox VMX Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Invalid VMCS index or write to read-only element. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_INVALID_VMCS_FIELD (-4000)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Invalid VMCS pointer. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_INVALID_VMCS_PTR (-4001)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid VMXON pointer. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_INVALID_VMXON_PTR (-4002)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Generic VMX failure. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_GENERIC (-4003)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Invalid CPU mode for VMX execution. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VMX_UNSUPPORTED_MODE (-4004)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Unable to start VM execution. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_UNABLE_TO_START_VM (-4005)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Unable to resume VM execution. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_UNABLE_TO_RESUME_VM (-4006)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Unable to switch due to invalid host state. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_INVALID_HOST_STATE (-4007)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** IA32_FEATURE_CONTROL MSR not setup correcty (turn on VMX in the host system BIOS) */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR (-4008)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** VMX CPU extension not available */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VMX_NO_VMX (-4009)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** VMXON failed; possibly because it was already run before */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VMX_VMXON_FAILED (-4010)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** CPU was incorrectly left in VMX root mode; incompatible with VirtualBox */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_VMX_IN_VMX_ROOT_MODE (-4011)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox SVM Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Unable to start VM execution. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_SVM_UNABLE_TO_START_VM (-4050)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** SVM bit not set in K6_EFER MSR */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_SVM_ILLEGAL_EFER_MSR (-4051)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** SVM CPU extension not available. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_SVM_NO_SVM (-4052)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** SVM CPU extension disabled (by BIOS). */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_SVM_DISABLED (-4053)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name VBox HWACCM Status Codes
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Unable to start VM execution. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_HWACCM_UNKNOWN_CPU (-4100)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** No CPUID support. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_HWACCM_NO_CPUID (-4101)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox GMM Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The GMM is out of pages and needs to be give another chunk of user memory that
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * it can lock down and borrow pages from. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GMM_SEED_ME (-4150)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Unable to allocate more pages from the host system. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GMM_OUT_OF_MEMORY (-4151)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Hit the global allocation limit.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * If you know there is still sufficient memory available, try raise the limit. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GMM_HIT_GLOBAL_LIMIT (-4152)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** Hit the a VM account limit. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GMM_HIT_VM_ACCOUNT_LIMIT (-4153)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The page to be freed or updated was not found. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GMM_PAGE_NOT_FOUND (-4154)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The specified shared page was not actually shared. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_GMM_PAGE_NOT_SHARED (-4155)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** The reservation or reservation update was declined - too many VMs, too
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * little memory, and/or too low GMM configuration. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_GMM_MEMORY_RESERVATION_DECLINED (-4156)
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** @name VBox GVM Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync/** The GVM is out of VM handle space. */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync#define VERR_GVM_TOO_MANY_VMS (-4200)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @name VBox Disassembler Status Codes
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync * @{
5c4d7e2aae42bbf39793dfa686925f076a56b4d5vboxsync */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Invalid opcode byte(s) */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_DIS_INVALID_OPCODE (-5000)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** Generic failure during disassembly. */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync#define VERR_DIS_GEN_FAILURE (-5001)
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @} */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/* SED-END */
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync/** @def VBOX_SUCCESS
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Check for success.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync *
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @returns true if rc indicates success.
88e56f700a3b8dfdf1646f96320f335e22339caavboxsync * @returns false if rc indicates failure.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync *
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @param rc The iprt status code to test.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VBOX_SUCCESS(rc) RT_SUCCESS(rc)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @def VBOX_FAILURE
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * Check for failure.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync *
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @returns true if rc indicates failure.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync * @returns false if rc indicates success.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync *
49a6b09abb20015b0af3e618a1f92b7e26785e90vboxsync * @param rc The iprt status code to test.
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#define VBOX_FAILURE(rc) RT_FAILURE(rc)
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync/** @} */
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync#endif
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync
0c69348b58bb8eabb1bea8867ee932b667bd0d34vboxsync