Kernel: Add kernel command line flag to disable VirtIO support

This command line flag can be used to disable VirtIO support on
certain configurations (native windows) where interfacing with
virtio devices can cause qemu to freeze.
This commit is contained in:
Idan Horowitz 2021-04-18 16:06:35 +03:00 committed by Andreas Kling
commit aaf3d26dae
Notes: sideshowbarker 2024-07-18 19:25:51 +09:00
4 changed files with 12 additions and 0 deletions

View file

@ -170,6 +170,11 @@ UNMAP_AFTER_INIT bool CommandLine::disable_uhci_controller() const
return contains("disable_uhci_controller");
}
UNMAP_AFTER_INIT bool CommandLine::disable_virtio() const
{
return contains("disable_virtio");
}
UNMAP_AFTER_INIT AHCIResetMode CommandLine::ahci_reset_mode() const
{
const auto ahci_reset_mode = lookup("ahci_reset_mode").value_or("controller");