#legacy #devices #dragonball #secure-sandbox

dbs-legacy-devices

dbs-legacy-devices provides emulation for legacy devices

2 releases

0.1.1 Nov 10, 2022
0.1.0 Oct 25, 2022

#8 in #secure-sandbox

Download history 9/week @ 2023-12-28 18/week @ 2024-01-04 8/week @ 2024-01-11 4/week @ 2024-01-18 11/week @ 2024-01-25 14/week @ 2024-02-01 9/week @ 2024-02-08 36/week @ 2024-02-15 62/week @ 2024-02-22 47/week @ 2024-02-29 33/week @ 2024-03-07 36/week @ 2024-03-14 15/week @ 2024-03-21 20/week @ 2024-03-28 17/week @ 2024-04-04

56 downloads per month

Apache-2.0 AND BSD-3-Clause

325KB
8K SLoC

dbs-legacy-devices

dbs-legacy-devices provides emulation for legacy devices.

Serial Devices

Defined a wrapper over the Serial of vm-superio. This wrapper is needed because Orphan rules, which is one crate can not implement a trait for a struct defined in another crate. This wrapper also contains the input field that is missing from upstream implementation.

i8042 Devices

Defined a wrapper over the i8042 PS/2 Controller of vm-superio. The i8042 PS/2 controller emulates, at this point, only the CPU reset command which is needed for announcing the VMM about the guest's shutdown.

Acknowledgement

Part of the code is derived from the Firecracker project. And modified to use DeviceIoMut to support serial port to Bus.

License

This project is licensed under Apache License, Version 2.0.

Dependencies

~3–13MB
~142K SLoC