Kernel: Simplify VMWareBackdoor somewhat

- If there is no VMWare backdoor, don't allocate memory for it.
- Remove the "unsupported" state, instead just don't instantiate.
- Move the command-line parsing from init to the driver.
- Move mouse packet reception from PS2MouseDevice to VMWareBackdoor.
This commit is contained in:
Andreas Kling 2020-04-08 16:35:00 +02:00
commit 5cc09b0245
Notes: sideshowbarker 2024-07-19 07:48:19 +09:00
7 changed files with 113 additions and 144 deletions

View file

@ -61,6 +61,11 @@ CommandLine::CommandLine(const String& string)
}
}
Optional<String> CommandLine::lookup(const String& key) const
{
return m_params.get(key);
}
String CommandLine::get(const String& key) const
{
return m_params.get(key).value_or({});