devices: Add support for i8042 reset device

Introduce emulation of i8042 device to allow the guest to stop the
VM by issuing a reset event.

The device has been copied over from the Crosvm code base, relying on
the commit 0268e26e1ac9e09aa51d733482c5df139cd8d588.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-04-15 11:57:30 -07:00
committed by Samuel Ortiz
parent 29b90a8aee
commit 342bdc3619
3 changed files with 58 additions and 0 deletions
+2
View File
@@ -6,5 +6,7 @@
// found in the THIRD-PARTY file.
mod serial;
mod i8042;
pub use self::serial::Serial;
pub use self::i8042::I8042Device;