CSAMAll.cpp revision db6deed75647a7da717a424ca0b9cd9f3829c418
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync * CSAM - Guest OS Code Scanning and Analysis Manager - Any Context
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * available from http://www.virtualbox.org. This file is free software;
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * you can redistribute it and/or modify it under the terms of the GNU
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * General Public License (GPL) as published by the Free Software
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * additional information or have any questions.
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync/*******************************************************************************
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync* Header Files *
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync*******************************************************************************/
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * Check if this page needs to be analysed by CSAM
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * @returns VBox status code
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * @param pVM The VM to operate on.
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsync * @param pvFault Fault address
f212e1f2b6bb160f9b7539562599a4604ca44cd2vboxsyncVMMDECL(int) CSAMExecFault(PVM pVM, RTRCPTR pvFault)
return VINF_SUCCESS;
return VINF_SUCCESS;
return VINF_CSAM_PENDING_ACTION;
return pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir] && ASMBitTest((void *)pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir], bit);
#ifdef LOG_ENABLED
return VINF_SUCCESS;
int rc = MMHyperAlloc(pVM, CSAM_PAGE_BITMAP_SIZE, 0, MM_TAG_CSAM, (void **)&pVM->csam.s.CTXSUFF(pPDBitmap)[pgdir]);
return rc;
#ifdef IN_GC
pVM->csam.s.pPDHCBitmapGC[pgdir] = MMHyperRCToR3(pVM, (RCPTRTYPE(void*))pVM->csam.s.pPDBitmapGC[pgdir]);
return rc;
return rc;
if(fScanned)
return VINF_SUCCESS;
return VINF_SUCCESS;
return VINF_SUCCESS;