hv

package module
v0.0.0-...-0f90522 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2015 License: BSD-2-Clause Imports: 3 Imported by: 0

README

go-osxhv

Go programming language bindings for the OS X Hypervisor.framework API.

References

Documentation

Index

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 HvVCPUInterrupt(vcpus []HvVCPU) error

func HvVmCreate

func HvVmCreate() error

func HvVmDestroy

func HvVmDestroy() error

func HvVmMap

func HvVmMap(uva uintptr, gpa uintptr, size uint64, flags int) error

func HvVmProtect

func HvVmProtect(gpa uintptr, size uint64, flags int) error

func HvVmSyncTSC

func HvVmSyncTSC(tsc uint64) error

func HvVmUnmap

func HvVmUnmap(gpa uintptr, size uint64) error

func HvVmxReadCapability

func HvVmxReadCapability(field int) (uint64, error)

Types

type HvVCPU

type HvVCPU struct {
	// contains filtered or unexported fields
}

func HvVCPUCreate

func HvVCPUCreate() (*HvVCPU, error)

func (*HvVCPU) Destroy

func (vcpu *HvVCPU) Destroy() error

func (*HvVCPU) EnableNativeMSR

func (vcpu *HvVCPU) EnableNativeMSR(msr uint32, enable bool) error

func (*HvVCPU) Flush

func (vcpu *HvVCPU) Flush() error

func (*HvVCPU) GetExecTime

func (vcpu *HvVCPU) GetExecTime() (uint64, error)

func (*HvVCPU) InvalidateTLB

func (vcpu *HvVCPU) InvalidateTLB() error

func (*HvVCPU) ReadFPState

func (vcpu *HvVCPU) ReadFPState(buffer []byte) error

func (*HvVCPU) ReadMSR

func (vcpu *HvVCPU) ReadMSR(msr uint32) (uint64, error)

func (*HvVCPU) ReadRegister

func (vcpu *HvVCPU) ReadRegister(reg int) (uint64, error)

func (*HvVCPU) Run

func (vcpu *HvVCPU) Run() error

func (*HvVCPU) VmxReadVMCS

func (vcpu *HvVCPU) VmxReadVMCS(field uint32) (uint64, error)

func (*HvVCPU) VmxSetAPICAddress

func (vcpu *HvVCPU) VmxSetAPICAddress(gpa uintptr) error

func (*HvVCPU) VmxWriteVMCS

func (vcpu *HvVCPU) VmxWriteVMCS(field uint32, value uint64) error

func (*HvVCPU) WriteFPState

func (vcpu *HvVCPU) WriteFPState(buffer []byte) error

func (*HvVCPU) WriteMSR

func (vcpu *HvVCPU) WriteMSR(msr uint32, value uint64) error

func (*HvVCPU) WriteRegister

func (vcpu *HvVCPU) WriteRegister(reg int, value uint64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL