Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

patm.h File Reference


Detailed Description

PATM - Dynamic Guest OS Patching Manager

Definition in file patm.h.

#include <VBox/cdefs.h>
#include <VBox/types.h>
#include <VBox/cpum.h>
#include <VBox/dis.h>

Go to the source code of this file.

Classes

struct  PATMGCSTATE
struct  PATMTRAPREC

Defines

#define MAX_PATCHES   512
#define MAX_VGA_WRITE_CACHE   64
#define PATMIsEnabled(pVM)   (pVM->fPATMEnabled)
#define PATMFL_CODE32   RT_BIT_64(0)
#define PATMFL_DUPLICATE_FUNCTION   RT_BIT_64(7)
#define PATMFL_GUEST_SPECIFIC   RT_BIT_64(3)
#define PATMFL_IDTHANDLER   RT_BIT_64(5)
#define PATMFL_INTHANDLER   RT_BIT_64(1)
#define PATMFL_INTHANDLER_WITH_ERRORCODE   (PATMFL_TRAPHANDLER_WITH_ERRORCODE)
#define PATMFL_MMIO_ACCESS   RT_BIT_64(10)
#define PATMFL_REPLACE_FUNCTION_CALL   RT_BIT_64(8)
#define PATMFL_SYSENTER   RT_BIT_64(2)
#define PATMFL_TRAPHANDLER   RT_BIT_64(6)
#define PATMFL_TRAPHANDLER_WITH_ERRORCODE   RT_BIT_64(9)
#define PATMFL_USER_MODE   RT_BIT_64(4)

Typedefs

typedef struct PATMGCSTATE * PPATMGCSTATE
typedef struct PATMTRAPREC * PPATMTRAPREC

Enumerations

enum  PATMTRANSSTATE {
  PATMTRANS_FAILED, PATMTRANS_SAFE, PATMTRANS_PATCHSTART, PATMTRANS_OVERWRITTEN,
  PATMTRANS_INHIBITIRQ
}

Functions

 PATMDECL (int) PATMSetMMIOPatchInfo(PVM pVM
 PATMDECL (bool) PATMIsPatchGCAddr(PVM pVM
 PATMDECL (GCPTRTYPE(PPATMGCSTATE)) PATMQueryGCState(PVM pVM)
 PATMDECL (uint32_t) PATMRawGetEFlags(PVM pVM
 PATMDECL (void) PATMRawEnter(PVM pVM

Variables

PCPUMCTXCORE uint32_t efl
RTGCPHYS GCPhys
RTGCPTR pAddr
RTGCPTR pAddrGC
RTGCPTR RTGCPTR pBranchTarget
RTGCPHYS RTGCPTR pCachedData
PCPUMCTXCORE pCtxCore
RTGCPTR pInstrGC
RTGCPTR pJumpTableGC
RTGCPTR uint32_t * pOpcode
PCPUMCTXCORE pRegFrame
RTGCPTR RTGCPTR RTGCUINTPTR pRelBranchPatch
RTGCPTR uint32_t uint32_t * pSize
PCPUMCTXCORE int rawRC


Generated by  Doxygen 1.6.0   Back to index