feature: virtio console support (#1113)

feat(virtio): add virtio console driver support

- Implement virtio console driver with TTY interface
- Add HVC device support for console output
- Update devfs to handle HVC devices
- Fix virtio driver registration and initialization
- Improve virtio net driver interrupt handling
- Clean up block device naming implementation
- Add clippy lint checks to multiple crates
- Fix slab allocator alignment issues
- Update QEMU run script for virtio consoleagonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
LoGin
2025-03-27 20:48:40 +08:00
committed by GitHub
parent 3d663af8a2
commit b6db20c072
31 changed files with 974 additions and 141 deletions

View File

@ -7,6 +7,12 @@ pub struct BitMapCore<T: BitOps> {
phantom: PhantomData<T>,
}
impl<T: BitOps> Default for BitMapCore<T> {
fn default() -> Self {
Self::new()
}
}
impl<T: BitOps> BitMapCore<T> {
pub const fn new() -> Self {
Self {

View File

@ -2,6 +2,7 @@
#![feature(core_intrinsics)]
#![allow(incomplete_features)] // for const generics
#![feature(generic_const_exprs)]
#![deny(clippy::all)]
#![allow(internal_features)]
#![allow(clippy::needless_return)]