Documentation ¶
Overview ¶
Package qguest describes non-device properties of a QEMU guest.
Index ¶
Constants ¶
const ( ClockBaseUTC = ClockBase("utc") ClockBaseLocal = ClockBase("localtime") )
Possible clock base values.
const ( ClockIsolationHost = ClockIsolation("host") ClockIsolationRealtime = ClockIsolation("rt") ClockIsolationVM = ClockIsolation("vm") )
Possible clock isolation values.
const ( ClockDriftFixNone = ClockDriftFix("none") ClockDriftFixSlew = ClockDriftFix("slew") )
Possible ClockBase values.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct { Base ClockBase Isolation ClockIsolation DriftFix ClockDriftFix }
Clock configures the real time clock for a virtual machine.
func (Clock) Options ¶
Options returns a set of QEMU virtual machine options for the real time clock.
func (Clock) Parameters ¶
func (c Clock) Parameters() qemu.Parameters
Parameters returns the parameters used for configuring the real time clock.
type ClockBase ¶
type ClockBase string
ClockBase describes whether a VM's real time close follows UTC or not.
type ClockDriftFix ¶
type ClockDriftFix string
ClockDriftFix specifies what to do when a VM fails to process its clock interrupts.
When set to slew, the host will try to resync the guest clock by playing clock ticks at a faster rate until the VM has caught up.
type ClockIsolation ¶
type ClockIsolation string
ClockIsolation specifies how closely a VM's real time clock follows the host.
type Firmware ¶
Firmware holds firmware configuration for a QEMU virtual machine.
func (Firmware) MachineParameters ¶
func (f Firmware) MachineParameters() qemu.Parameters
MachineParameters returns a set of machine parameters for the firmware.
type Memory ¶
type Memory struct {
Allocation Allocation
}
Memory describes the memory allocation for a QEMU guest.
type Processor ¶
Processor describes the processor configuration of a QEMU guest.
func (Processor) CPU ¶
func (p Processor) CPU() qemu.Parameters
CPU returns the parameters of the CPU configuration. It includes any processor enlightenments.
func (Processor) Options ¶
Options returns a set of QEMU virtual machine options for specifying its processor configuration.
func (Processor) SMP ¶
func (p Processor) SMP() qemu.Parameters
SMP returns the parameters for the desired level of simultaneous multithreading.
type QMP ¶
QMP holds QEMU Machine Protocol configuration for a QEMU virtual machine.
func (QMP) Options ¶
Options returns a set of QEMU virtual machine options for specifying its QMP configuration.
func (QMP) Parameters ¶
func (q QMP) Parameters(device chardev.ID) qemu.Parameters
Parameters returns the parameters used for configuring QMP.
type Settings ¶
type Settings struct { Identity Identity Firmware Firmware Clock Clock Processor Processor Memory Memory QMP QMP Spice Spice Globals qemu.Globals }
Settings describes all of the non-device properties of a QEMU guest.
type Spice ¶
type Spice struct { Enabled bool Port int Addr string DisableTicketing bool DisableCopyPaste bool DisableFileTransfer bool }
Spice configures the spice protocol for external access to the virtual machine.
func (Spice) MachineParameters ¶
func (s Spice) MachineParameters() qemu.Parameters
MachineParameters returns a set of machine parameters for spice.
func (Spice) Parameters ¶
func (s Spice) Parameters() qemu.Parameters
Parameters returns the parameters used for configuring spice.