From 1cbc1e2cda34b5468c4c81a15a0c0cb7db375dac Mon Sep 17 00:00:00 2001 From: fedor Date: Wed, 28 May 2025 17:09:54 -0400 Subject: [PATCH] Suspendable VMs now support consoles --- Sources/tart/VM.swift | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Sources/tart/VM.swift b/Sources/tart/VM.swift index fafad8a..c8ea492 100644 --- a/Sources/tart/VM.swift +++ b/Sources/tart/VM.swift @@ -412,15 +412,13 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject { // // A dummy console device useful for implementing // host feature checks in the guest agent software. - if !suspendable { - let consolePort = VZVirtioConsolePortConfiguration() - consolePort.name = "tart-version-\(CI.version)" + let consolePort = VZVirtioConsolePortConfiguration() + consolePort.name = "tart-version-\(CI.version)" - let consoleDevice = VZVirtioConsoleDeviceConfiguration() - consoleDevice.ports[0] = consolePort + let consoleDevice = VZVirtioConsoleDeviceConfiguration() + consoleDevice.ports[0] = consolePort - configuration.consoleDevices.append(consoleDevice) - } + configuration.consoleDevices.append(consoleDevice) // Socket device configuration.socketDevices = [VZVirtioSocketDeviceConfiguration()]