machine

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

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

func New

func New(nCpus int, tapIfName string, diskPath string) (*Machine, error)

func (*Machine) GetInputChan

func (m *Machine) GetInputChan() chan<- byte

func (*Machine) InjectSerialIRQ

func (m *Machine) InjectSerialIRQ() error

func (*Machine) InjectVirtioBlkIRQ added in v0.0.7

func (m *Machine) InjectVirtioBlkIRQ() error

func (*Machine) InjectVirtioNetIRQ added in v0.0.6

func (m *Machine) InjectVirtioNetIRQ() error

func (*Machine) LoadLinux

func (m *Machine) LoadLinux(bzImagePath, initPath, params string) error

func (*Machine) RunData

func (m *Machine) RunData() []*kvm.RunData

RunData returns the kvm.RunData for the VM.

func (*Machine) RunInfiniteLoop

func (m *Machine) RunInfiniteLoop(i int) error

func (*Machine) RunOnce

func (m *Machine) RunOnce(i int) (bool, error)

Jump to

Keyboard shortcuts

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