Browse Source

config(qemu): always disable hypervisor on iOS

osy 3 years ago
parent
commit
73557fbde8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Configuration/UTMQemuConfigurationQEMU.swift

+ 3 - 0
Configuration/UTMQemuConfigurationQEMU.swift

@@ -92,6 +92,9 @@ struct UTMQemuConfigurationQEMU: Codable {
             debugLogURL = dataURL.appendingPathComponent(QEMUPackageFileName.debugLog.rawValue)
             efiVarsURL = dataURL.appendingPathComponent(QEMUPackageFileName.efiVariables.rawValue)
         }
+        #if os(iOS)
+        hasHypervisor = false // no hypervisor on iOS
+        #endif
     }
     
     func encode(to encoder: Encoder) throws {