qemu is the QEMU virtual machine driver.
| 342 | |
| 343 | // qemu is the QEMU virtual machine driver. |
| 344 | type 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. |
| 372 | func (d *qemu) qmpConnect() (*qmp.Monitor, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected