runtime

package
v0.0.0-...-b957d1f Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PTE_PAGE_FLAGS       = xenPageTablePresent | xenPageTableWritable | xenPageTableUserspaceAccessible | xenPageTableAccessed
	PTE_PAGE_TABLE_FLAGS = xenPageTablePresent | xenPageTableUserspaceAccessible | xenPageTableAccessed | xenPageTableDirty
	PTE_TEMP             = xenPageTableGuest1
)
View Source
const DOMID_SELF = 0x7FF0

Variables

This section is empty.

Functions

func BindEventHandler

func BindEventHandler(port uint32)

BindEventHandler registers intent to receive events on port by later calling WaitEvent.

func HYPERVISOR_console_io

func HYPERVISOR_console_io(op uint64, size uint64, data uintptr) uintptr

func HYPERVISOR_event_channel_op

func HYPERVISOR_event_channel_op(cmd uintptr, op unsafe.Pointer) uintptr

func HYPERVISOR_mmu_update

func HYPERVISOR_mmu_update(updates []mmuUpdate, domid uint16) uintptr

func HYPERVISOR_mmuext_op

func HYPERVISOR_mmuext_op(ops []mmuExtOp, domid uint16) uintptr

func HYPERVISOR_sched_op

func HYPERVISOR_sched_op(op uintptr, arg unsafe.Pointer) uintptr

func HYPERVISOR_set_callbacks

func HYPERVISOR_set_callbacks(eventCallbackAddr, failsafeCallbackAddr uintptr) uintptr

func HYPERVISOR_set_timer_op

func HYPERVISOR_set_timer_op(timeout int64) uintptr

func HYPERVISOR_update_va_mapping

func HYPERVISOR_update_va_mapping(vaddr uintptr, val uintptr, flags uint64) uintptr

func LoadXenStore

func LoadXenStore() (ring unsafe.Pointer, port uint32)

LoadXenStore returns a pointer to the shared-memory XenStore ring interface and event channel port.

func NotifyEventChannel

func NotifyEventChannel(port uint32)

NotifyEventChannel sends an event signal to the listener on port.

func WaitEvent

func WaitEvent(port uint32)

WaitEvent waits for an event to fire on port.

Only one goroutine should call WaitEvent.

Types

type Context

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

Context describes the state of a task for saving or restoring a task's execution context.

type Task

type Task struct {
	ID int

	Context Context

	WakeAt int64

	Next, Prev *Task
	// contains filtered or unexported fields
}

type TaskList

type TaskList struct {
	Head, Tail *Task
}

func (*TaskList) Add

func (l *TaskList) Add(t *Task)

func (*TaskList) AddByWakeAt

func (l *TaskList) AddByWakeAt(t *Task)

func (*TaskList) Remove

func (l *TaskList) Remove(t *Task)

Directories

Path Synopsis
internal
sys

Jump to

Keyboard shortcuts

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