127 Hook->Disabled =
TRUE;
137 ERROR(
"[ERROR] IntHookDtrDeleteHook failed: 0x%08x\n", status);
158 ERROR(
"[ERROR] IntHookDtrRemoveHook failed: 0x%08x\n", status);
193 ERROR(
"[ERROR] IntHookDtrDeleteHook failed: 0x%08x\n", status);
INTSTATUS IntHookDtrSetHook(DWORD Flags, PFUNC_DtrReadWriteHookCallback Callback, void **Hook)
Places a descriptor table register hook.
INT64 HooksCount
The total number of DTR hooks.
#define INT_STATUS_SUCCESS
LIST_ENTRY Link
List entry element.
DWORD Flags
Hook flags, a combination of IG_DESC_ACCESS.
#define INT_SUCCESS(Status)
PFUNC_DtrReadWriteHookCallback Callback
The callback.
#define HpAllocWithTag(Len, Tag)
int INTSTATUS
The status data type.
static void IntHookDtrRemoveAllHooks(void)
Remove all descriptor register hooks.
INTSTATUS IntHookDtrInit(void)
Initialize the descriptor registers hook state.
#define INT_STATUS_NOT_INITIALIZED
static BOOLEAN RemoveEntryList(LIST_ENTRY *Entry)
CPU_STATE State
The state of this VCPU. Describes what action is the VCPU currently doing.
#define HpFreeAndNullWithTag(Add, Tag)
INTSTATUS IntHookDtrUninit(void)
Uninit the descriptor registers hooks state.
INTSTATUS IntHookDtrRemoveHook(HOOK_DTR *Hook)
Remove a descriptor register hook.
static void InsertTailList(LIST_ENTRY *ListHead, LIST_ENTRY *Entry)
DTR_HOOK_STATE * DtrHooks
DTR hook state.
static void InitializeListHead(LIST_ENTRY *ListHead)
INTSTATUS IntHookDtrCommit(void)
Commit the descriptor registers hooks.
static INTSTATUS IntDisableDtrNotifications(void)
INTSTATUS(* PFUNC_DtrReadWriteHookCallback)(DTR *OldDtr, DTR *NewDtr, DWORD Flags, INTRO_ACTION *Action)
Called when a descriptor table register is accessed.
GUEST_STATE gGuest
The current guest state.
static INTSTATUS IntHookDtrDeleteHook(HOOK_DTR *Hook)
Permanently delete a descriptor register hook.
#define INT_STATUS_NOT_INITIALIZED_HINT
#define INT_STATUS_INVALID_PARAMETER_1
VCPU_STATE * gVcpu
The state of the current VCPU.
static INTSTATUS IntEnableDtrNotifications(void)
#define list_for_each(_head, _struct_type, _var)
LIST_HEAD DtrHooksList
The list of DTR hooks.
#define INT_STATUS_INSUFFICIENT_RESOURCES
#define INT_STATUS_INVALID_PARAMETER_3