VMInternal.h revision d6882c5bec1c3d6d6a43d88a9fc8c2e2ee39f12d
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * VM - Internal header file.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * available from http://www.virtualbox.org. This file is free software;
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * you can redistribute it and/or modify it under the terms of the GNU
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * General Public License (GPL) as published by the Free Software
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * additional information or have any questions.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync/** @defgroup grp_vm_int Internals
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * @ingroup grp_vm
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * @internal
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * At-reset callback type.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** Device callback. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** Internal callback . */
d85b0881fbf23d90ba93e32becf11d87dbc3f9dbvboxsync /** External callback. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync/** Pointer to at-reset callback. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync * At reset callback.
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsynctypedef struct VMATRESET
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** Pointer to the next one in the list. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** Callback type. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** User argument for the callback. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync /** Description. */
9fc464631dc4a68fbb5eb6419d61fbe91b6b16bdvboxsync const char *pszDesc;
62b8247e4970b835e263b4c18a2748bf651fabd0vboxsync /** Type specific data. */
} Dev;
} Internal;
} External;
} VMATRESET;
typedef struct VMATSTATE
void *pvUser;
} VMATSTATE;
typedef struct VMATERROR
void *pvUser;
} VMATERROR;
typedef struct VMERROR
typedef struct VMATRUNTIMEERROR
void *pvUser;
typedef struct VMRUNTIMEERROR
bool fFatal;
VMHALTMETHOD_INVALID = 0,
} VMHALTMETHOD;
typedef struct VMINT
bool fPreventSaveState;
} VMINT;
typedef struct VMINTUSERPERVM
#ifdef VBOX_WITH_STATISTICS
bool volatile fWait;
bool volatile fTerminateEMT;
bool fEMTDoesTheCleanup;
* Can be selected by CFGM option 'VM/HaltMethod'. */
} Method12;
} Method34;
} Halt;
void *pvDBGC;
DECLCALLBACK(void) vmR3SetErrorUV(PUVM pUVM, int rc, RT_SRC_POS_DECL, const char *pszFormat, va_list *args);
DECLCALLBACK(void) vmR3SetRuntimeErrorV(PVM pVM, bool fFatal, const char *pszErrorID, const char *pszFormat, va_list *args);
void vmSetRuntimeErrorCopy(PVM pVM, bool fFatal, const char *pszErrorID, const char *pszFormat, va_list args);