26 lines
386 B
C
26 lines
386 B
C
#pragma once
|
|
|
|
#include "vtdef.h"
|
|
#include "VTUtils.h"
|
|
#include <intrin.h>
|
|
#include "vmxs.h"
|
|
|
|
#pragma pack(push,1)
|
|
typedef struct _GdtTable
|
|
{
|
|
USHORT limit;
|
|
ULONG64 Base;
|
|
}GdtTable, * PGdtTable;
|
|
#pragma pack(pop)
|
|
|
|
|
|
BOOLEAN VmxInit(ULONG64 hostRip);
|
|
|
|
extern volatile ULONG64 VmxExitRip;
|
|
extern volatile ULONG64 VmxExitRsp;
|
|
|
|
|
|
|
|
|
|
VOID VmxDisableOff(BOOLEAN is_vt);
|