HWACCMAll.cpp revision 9d3a67e18530df6b3b88973dea3b32c08a07da1f
8c856c56f1af112768c672456af69561265f1fddvboxsync * HWACCM - All contexts.
8c856c56f1af112768c672456af69561265f1fddvboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8c856c56f1af112768c672456af69561265f1fddvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
8c856c56f1af112768c672456af69561265f1fddvboxsync * available from http://www.virtualbox.org. This file is free software;
8c856c56f1af112768c672456af69561265f1fddvboxsync * you can redistribute it and/or modify it under the terms of the GNU
8c856c56f1af112768c672456af69561265f1fddvboxsync * General Public License (GPL) as published by the Free Software
8c856c56f1af112768c672456af69561265f1fddvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
8c856c56f1af112768c672456af69561265f1fddvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
8c856c56f1af112768c672456af69561265f1fddvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
8c856c56f1af112768c672456af69561265f1fddvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
8c856c56f1af112768c672456af69561265f1fddvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
8c856c56f1af112768c672456af69561265f1fddvboxsync * additional information or have any questions.
8c856c56f1af112768c672456af69561265f1fddvboxsync/*******************************************************************************
8c856c56f1af112768c672456af69561265f1fddvboxsync* Header Files *
8c856c56f1af112768c672456af69561265f1fddvboxsync*******************************************************************************/
8c856c56f1af112768c672456af69561265f1fddvboxsync * Queues a page for invalidation
8c856c56f1af112768c672456af69561265f1fddvboxsync * @returns VBox status code.
8c856c56f1af112768c672456af69561265f1fddvboxsync * @param pVCpu The VMCPU to operate on.
8c856c56f1af112768c672456af69561265f1fddvboxsync * @param GCVirt Page to invalidate
8c856c56f1af112768c672456af69561265f1fddvboxsyncvoid hwaccmQueueInvlPage(PVMCPU pVCpu, RTGCPTR GCVirt)
8c856c56f1af112768c672456af69561265f1fddvboxsync /* Nothing to do if a TLB flush is already pending */
8c856c56f1af112768c672456af69561265f1fddvboxsync if (iPage == RT_ELEMENTS(pVCpu->hwaccm.s.TlbShootdown.aPages))
#ifdef IN_RING0
return VINF_SUCCESS;
return VINF_SUCCESS;
#ifndef IN_RC
#ifdef IN_RING0
return VINF_SUCCESS;
#ifdef IN_RING0
return VINF_SUCCESS;
return PGMMODE_NESTED;
return PGMMODE_EPT;
return VINF_SUCCESS;
#ifdef IN_RING0
#ifdef IN_RING0
return VINF_SUCCESS;
/* AMD-V doesn't support invalidation with guest physical addresses; see comment in SVMR0InvalidatePhysPage. */
return VINF_SUCCESS;