Documentation ¶
Index ¶
- Constants
- func HvVCPUInterrupt(vcpus []HvVCPU) error
- func HvVmCreate() error
- func HvVmDestroy() error
- func HvVmMap(uva uintptr, gpa uintptr, size uint64, flags int) error
- func HvVmProtect(gpa uintptr, size uint64, flags int) error
- func HvVmSyncTSC(tsc uint64) error
- func HvVmUnmap(gpa uintptr, size uint64) error
- func HvVmxReadCapability(field int) (uint64, error)
- type HvVCPU
- func (vcpu *HvVCPU) Destroy() error
- func (vcpu *HvVCPU) EnableNativeMSR(msr uint32, enable bool) error
- func (vcpu *HvVCPU) Flush() error
- func (vcpu *HvVCPU) GetExecTime() (uint64, error)
- func (vcpu *HvVCPU) InvalidateTLB() error
- func (vcpu *HvVCPU) ReadFPState(buffer []byte) error
- func (vcpu *HvVCPU) ReadMSR(msr uint32) (uint64, error)
- func (vcpu *HvVCPU) ReadRegister(reg int) (uint64, error)
- func (vcpu *HvVCPU) Run() error
- func (vcpu *HvVCPU) VmxReadVMCS(field uint32) (uint64, error)
- func (vcpu *HvVCPU) VmxSetAPICAddress(gpa uintptr) error
- func (vcpu *HvVCPU) VmxWriteVMCS(field uint32, value uint64) error
- func (vcpu *HvVCPU) WriteFPState(buffer []byte) error
- func (vcpu *HvVCPU) WriteMSR(msr uint32, value uint64) error
- func (vcpu *HvVCPU) WriteRegister(reg int, value uint64) error
Constants ¶
View Source
const ( HV_MEMORY_READ = C.HV_MEMORY_READ HV_MEMORY_WRITE = C.HV_MEMORY_WRITE HV_MEMORY_EXEC = C.HV_MEMORY_EXEC )
View Source
const ( HV_X86_RAX = C.HV_X86_RAX HV_X86_RCX = C.HV_X86_RCX HV_X86_RDX = C.HV_X86_RDX HV_X86_RBX = C.HV_X86_RBX HV_X86_RSP = C.HV_X86_RSP HV_X86_RBP = C.HV_X86_RBP HV_X86_RSI = C.HV_X86_RSI HV_X86_RDI = C.HV_X86_RDI HV_X86_R8 = C.HV_X86_R8 HV_X86_R9 = C.HV_X86_R9 HV_X86_R10 = C.HV_X86_R10 HV_X86_R11 = C.HV_X86_R11 HV_X86_R12 = C.HV_X86_R12 HV_X86_R13 = C.HV_X86_R13 HV_X86_R14 = C.HV_X86_R14 HV_X86_R15 = C.HV_X86_R15 HV_X86_CS = C.HV_X86_CS HV_X86_SS = C.HV_X86_SS HV_X86_DS = C.HV_X86_DS HV_X86_ES = C.HV_X86_ES HV_X86_FS = C.HV_X86_FS HV_X86_GS = C.HV_X86_GS HV_X86_RIP = C.HV_X86_RIP HV_X86_RFLAGS = C.HV_X86_RFLAGS HV_X86_GDT_BASE = C.HV_X86_GDT_BASE HV_X86_GDT_LIMIT = C.HV_X86_GDT_LIMIT HV_X86_IDT_BASE = C.HV_X86_IDT_BASE HV_X86_IDT_LIMIT = C.HV_X86_IDT_LIMIT HV_X86_LDTR = C.HV_X86_LDTR HV_X86_LDT_BASE = C.HV_X86_LDT_BASE HV_X86_LDT_LIMIT = C.HV_X86_LDT_LIMIT HV_X86_LDT_AR = C.HV_X86_LDT_AR HV_X86_TR = C.HV_X86_TR HV_X86_TSS_BASE = C.HV_X86_TSS_BASE HV_X86_TSS_LIMIT = C.HV_X86_TSS_LIMIT HV_X86_TSS_AR = C.HV_X86_TSS_AR HV_X86_CR0 = C.HV_X86_CR0 HV_X86_CR1 = C.HV_X86_CR1 HV_X86_CR2 = C.HV_X86_CR2 HV_X86_CR3 = C.HV_X86_CR3 HV_X86_CR4 = C.HV_X86_CR4 HV_X86_DR0 = C.HV_X86_DR0 HV_X86_DR1 = C.HV_X86_DR1 HV_X86_DR2 = C.HV_X86_DR2 HV_X86_DR3 = C.HV_X86_DR3 HV_X86_DR4 = C.HV_X86_DR4 HV_X86_DR5 = C.HV_X86_DR5 HV_X86_DR6 = C.HV_X86_DR6 HV_X86_DR7 = C.HV_X86_DR7 HV_X86_TPR = C.HV_X86_TPR HV_X86_XCR0 = C.HV_X86_XCR0 )
View Source
const ( HV_VMX_CAP_PINBASED = C.HV_VMX_CAP_PINBASED HV_VMX_CAP_PROCBASED = C.HV_VMX_CAP_PROCBASED HV_VMX_CAP_PROCBASED2 = C.HV_VMX_CAP_PROCBASED2 HV_VMX_CAP_ENTRY = C.HV_VMX_CAP_ENTRY )
Variables ¶
This section is empty.
Functions ¶
func HvVCPUInterrupt ¶
func HvVmCreate ¶
func HvVmCreate() error
func HvVmDestroy ¶
func HvVmDestroy() error
func HvVmSyncTSC ¶
func HvVmxReadCapability ¶
Types ¶
type HvVCPU ¶
type HvVCPU struct {
// contains filtered or unexported fields
}
func HvVCPUCreate ¶
func (*HvVCPU) GetExecTime ¶
func (*HvVCPU) InvalidateTLB ¶
func (*HvVCPU) ReadFPState ¶
func (*HvVCPU) VmxSetAPICAddress ¶
func (*HvVCPU) WriteFPState ¶
Click to show internal directories.
Click to hide internal directories.