diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-04-18 16:06:35 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 22:06:42 +0200 |
commit | aaf3d26dae90318e4d530ccc164574914223feeb (patch) | |
tree | 6c6151687dbd6a54b4dff12d584ff48ff450334c /Kernel/CommandLine.cpp | |
parent | 7dc95721ee0087846d818fdc46b380ed888c1d0e (diff) | |
download | serenity-aaf3d26dae90318e4d530ccc164574914223feeb.zip |
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.
Diffstat (limited to 'Kernel/CommandLine.cpp')
-rw-r--r-- | Kernel/CommandLine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/CommandLine.cpp b/Kernel/CommandLine.cpp index c81003447f..27dc9e9bc0 100644 --- a/Kernel/CommandLine.cpp +++ b/Kernel/CommandLine.cpp @@ -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"); |