MCPcopy
hub / github.com/lxc/incus / qemu

Struct qemu

internal/server/instance/drivers/driver_qemu.go:344–369  ·  view source on GitHub ↗

qemu is the QEMU virtual machine driver.

Source from the content-addressed store, hash-verified

342
343// qemu is the QEMU virtual machine driver.
344type qemu struct {
345 common
346
347 // Cached handles.
348 // Do not use these variables directly, instead use their associated get functions so they
349 // will be initialized on demand.
350 architectureName string
351
352 // Stateful migration streams.
353 migrationReceiveStateful map[string]io.ReadWriteCloser
354
355 // Indicate whether the root disk will be live-migrated.
356 migrationRootDisk bool
357 disksToMigrate []localMigration.DependentVolumeArgs
358
359 // Indicates whether this is an inner-cluster or cross-cluster move.
360 migrationClusterMove bool
361
362 // Keep a reference to the console socket when switching backends, so we can properly cleanup when switching back to a ring buffer.
363 consoleSocket *net.UnixListener
364 consoleSocketFile *os.File
365
366 // Keep a record of QEMU configuration.
367 cmdArgs []string
368 conf []cfg.Section
369}
370
371// qmpConnect connects to the QMP monitor.
372func (d *qemu) qmpConnect() (*qmp.Monitor, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected