From 6f5b251f1dea2754d7c1eca2190652f8ae97e7ec Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 14 Oct 2024 03:34:55 +0700 Subject: [PATCH] Enable DevirtualiseMmio quirk if MmioWhitelist exists --- Scripts/config_prodigy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index 2bc25b7..4eb082e 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -464,6 +464,7 @@ class ConfigProdigy: config["Booter"]["Quirks"]["DevirtualiseMmio"] = self.check_mats_support(hardware_report.get("CPU").get("Manufacturer"), hardware_report.get("Motherboard").get("Chipset")) if "AMD" in hardware_report.get("CPU").get("Manufacturer") and not "TRX40" in hardware_report.get("Motherboard").get("Chipset"): config["Booter"]["Quirks"]["DevirtualiseMmio"] = False + config["Booter"]["Quirks"]["DevirtualiseMmio"] = len(config["Booter"]["MmioWhitelist"]) != 0 or config["Booter"]["Quirks"]["DevirtualiseMmio"] config["Booter"]["Quirks"]["EnableWriteUnprotector"] = False if "AMD" in hardware_report.get("CPU").get("Manufacturer") else not config["Booter"]["Quirks"]["DevirtualiseMmio"] config["Booter"]["Quirks"]["ProtectUefiServices"] = "Z390" in hardware_report.get("Motherboard").get("Chipset") or \ not self.utils.contains_any(cpu_data.IntelCPUGenerations, hardware_report.get("CPU").get("Codename"), end=14) is None