Kernel/PCI: Disable ECAM method by default

Until I figure out what's going wrong with it on bare-metal, disable it
unless explicitly enabled by the user.
This commit is contained in:
Liav A 2021-04-06 19:14:27 +03:00 committed by Andreas Kling
commit fc92a4b228
Notes: sideshowbarker 2024-07-18 20:40:27 +09:00

View file

@ -110,7 +110,7 @@ UNMAP_AFTER_INIT bool CommandLine::is_vmmouse_enabled() const
UNMAP_AFTER_INIT PCIAccessLevel CommandLine::pci_access_level() const
{
auto value = lookup("pci_ecam").value_or("on");
auto value = lookup("pci_ecam").value_or("off");
if (value == "on")
return PCIAccessLevel::MappingPerBus;
if (value == "per-device")