HWVMXR0.h revision 54116db77ffdcfb11f0e468b44aac762d83f3660
/* $Id$ */
/** @file
* HWACCM VT-x - Internal header file.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___HWVMXR0_h
#define ___HWVMXR0_h
#include <VBox/hwacc_vmx.h>
/** @defgroup grp_vmx Internal
* @ingroup grp_vmx
* @internal
* @{
*/
#ifdef IN_RING0
/**
* Enters the VT-x session
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Leaves the VT-x session
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Sets up and activates VT-x on the current CPU
*
* @returns VBox status code.
* @param idCpu The identifier for the CPU the function is called on.
* @param pVM The VM to operate on.
* @param pvPageCpu Pointer to the global cpu page
* @param pPageCpuPhys Physical address of the global cpu page
*/
/**
* Deactivates VT-x on the current CPU
*
* @returns VBox status code.
* @param idCpu The identifier for the CPU the function is called on.
* @param pvPageCpu Pointer to the global cpu page
* @param pPageCpuPhys Physical address of the global cpu page
*/
/**
* Does Ring-0 per VM VT-x init.
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Does Ring-0 per VM VT-x termination.
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Sets up VT-x for the specified VM
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Save the host state
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
/**
* Loads the guest state
*
* @returns VBox status code.
* @param pVM The VM to operate on.
* @param pCtx Guest context
*/
/**
* Runs guest code in a VT-x VM.
*
* @note NEVER EVER turn on interrupts here. Due to our illegal entry into the kernel, it might mess things up. (XP kernel traps have been frequently observed)
*
* @returns VBox status code.
* @param pVM The VM to operate on.
* @param pCtx Guest context
*/
else \
else \
\
#endif /* IN_RING0 */
/** @} */
#endif