Skip to content

Commit

Permalink
Add whpx acceleration qemu flag (requires only hyper-v) also update year
Browse files Browse the repository at this point in the history
in installer
  • Loading branch information
KM198912 committed Mar 22, 2022
1 parent 5d72775 commit f19c7ba
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Setup/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Copyright © 2007-2019, The Cosmos Project
Copyright © 2007-2022, The Cosmos Project
9 changes: 9 additions & 0 deletions source/Cosmos.Debug.Hosts/Qemu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@ public Qemu(Dictionary<string, string> aParams, bool aUseGDB, string aHarddisk =
_debugACPIEnable = String.Empty;
}
}
if(aParams.ContainsKey("QemuHWAccelWHPX"))
{
bool WHPX;
Boolean.TryParse(aParams["QemuHWAccelWHPX"],out WHPX);
if(WHPX)
{
_hardwareAccel = "-accel whpx";
}
}
if (aParams.ContainsKey("QemuLocationParameters"))
{
bool UseCustomExe;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,16 @@
</NameValuePair>
</BoolProperty.Metadata>
</BoolProperty>
<BoolProperty Name="QemuHWAccelWHPX"
DisplayName="Qemu Hardware Acceleration"
Description="Use WHPX for Qemu. (Requires Hyper-V to be installed, do not use together with haxm)"
Category="Qemu">
<BoolProperty.Metadata>
<NameValuePair Name="VisibilityCondition">
<NameValuePair.Value>(has-evaluated-value "CosmosPropertyPage" "Launch" "Qemu")</NameValuePair.Value>
</NameValuePair>
</BoolProperty.Metadata>
</BoolProperty>
<BoolProperty Name="QemuHWAccel"
DisplayName="Qemu Hardware Acceleration"
Description="Use HAXM for Qemu. (needs to be installed)"
Expand Down

0 comments on commit f19c7ba

Please sign in to comment.