Skip to content

Commit

Permalink
system: virtualization=on for TCG virt arm64 for Windows to boot
Browse files Browse the repository at this point in the history
Resolves #3703
  • Loading branch information
osy committed Mar 1, 2022
1 parent ce7993d commit 522ac72
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Managers/UTMQemuSystem.m
Original file line number Diff line number Diff line change
Expand Up @@ -585,16 +585,23 @@ - (NSURL *)efiVariablesURL {
}

- (NSString *)machineProperties {
NSString *target = self.configuration.systemTarget;
NSString *properties = @"";
if (self.configuration.systemMachineProperties.length > 0) {
properties = self.configuration.systemMachineProperties; // use specified properties
}
if ([self.configuration.systemTarget hasPrefix:@"pc"] || [self.configuration.systemTarget hasPrefix:@"q35"]) {
if ([target hasPrefix:@"pc"] || [target hasPrefix:@"q35"]) {
// disable PS/2 emulation if we are not legacy input
if (!self.configuration.inputLegacy && ![properties containsString:@"i8042="]) {
properties = [NSString stringWithFormat:@"%@%@%@", properties, properties.length > 0 ? @"," : @"", @"i8042=off"];
}
}
// required to boot Windows ARM on TCG
if ([target hasPrefix:@"virt"] && [self.configuration.systemArchitecture isEqualToString:@"aarch64"] && !self.configuration.useHypervisor) {
if (!self.configuration.inputLegacy && ![properties containsString:@"virtualization="]) {
properties = [NSString stringWithFormat:@"%@%@%@", properties, properties.length > 0 ? @"," : @"", @"virtualization=on"];
}
}
return properties;
}

Expand Down

0 comments on commit 522ac72

Please sign in to comment.