Crates.io | dbs-legacy-devices |
lib.rs | dbs-legacy-devices |
version | 0.1.1 |
source | src |
created_at | 2022-10-25 08:13:29.341813 |
updated_at | 2022-11-10 08:56:18.746748 |
description | dbs-legacy-devices provides emulation for legacy devices. |
homepage | https://github.com/openanolis/dragonball-sandbox |
repository | https://github.com/openanolis/dragonball-sandbox |
max_upload_size | |
id | 696664 |
size | 36,690 |
dbs-legacy-devices
provides emulation for legacy 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.
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.
Part of the code is derived from the Firecracker project. And modified to use DeviceIoMut to support serial port to Bus.
This project is licensed under Apache License, Version 2.0.