HWACCMAll.cpp revision e17bd6c32a8dd64f2d42838f9028216465e2caf0
/* $Id$ */
/** @file
* HWACCM - All contexts.
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_HWACCM
#include "HWACCMInternal.h"
#include <VBox/hwacc_vmx.h>
#include <VBox/hwacc_svm.h>
/**
* Invalidates a guest page
*
* @returns VBox status code.
* @param pVM The VM to operate on.
* @param GCVirt Page to invalidate
*/
{
/* @todo Intel for nested paging */
#ifdef IN_RING0
#endif
return VINF_SUCCESS;
}
/**
* Flushes the guest TLB
*
* @returns VBox status code.
* @param pVM The VM to operate on.
*/
{
/* @todo Intel for nested paging */
{
Log(("HWACCMFlushTLB\n"));
}
return VINF_SUCCESS;
}
/**
* Checks if nested paging is enabled
*
* @returns boolean
* @param pVM The VM to operate on.
*/
{
}
/**
*
* @returns shadow paging mode
* @param pVM The VM to operate on.
*/
{
return PGMMODE_NESTED;
return PGMMODE_EPT;
}
/**
* Invalidates a guest page by physical address
*
* NOTE: Assumes the current instruction references this physical page though a virtual address!!
*
* @returns VBox status code.
* @param pVM The VM to operate on.
* @param GCPhys Page to invalidate
*/
{
if (!HWACCMIsNestedPagingActive(pVM))
return VINF_SUCCESS;
#ifdef IN_RING0
/* @todo Intel for nested paging */
{
}
#else
#endif
return VINF_SUCCESS;
}
/**
* Checks if an interrupt event is currently pending.
*
* @returns Interrupt event pending state.
* @param pVM The VM to operate on.
*/
{
}