Skip to content

Map the other devices automatically#98

Merged
Alignof merged 12 commits into
feature/milkv-megrezfrom
feature/map_other_device
Aug 4, 2025
Merged

Map the other devices automatically#98
Alignof merged 12 commits into
feature/milkv-megrezfrom
feature/map_other_device

Conversation

@Alignof

@Alignof Alignof commented Aug 4, 2025

Copy link
Copy Markdown
Owner

Map the memory mapped devices which aren't managed by hypervisor.

@Alignof Alignof self-assigned this Aug 4, 2025
Comment thread hikami_core/src/device.rs
}

// skip if it isn't memory mapped device.
if !node.reg().is_some() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] clippy::nonminimal_bool reported by reviewdog 🐶
this boolean expression can be simplified

@@ -13,6 +12,8 @@ use fdt::{Fdt, standard_nodes::MemoryRegion};
/// Local interrupt controller
#[derive(Debug)]
pub struct Clint {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] <dead_code> reported by reviewdog 🐶
field register_map_regions is never read


/// MTIMER: Machine level TIMER device
#[derive(Debug)]
pub struct Mtimer {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] <dead_code> reported by reviewdog 🐶
field register_map_regions is never read

@@ -256,6 +257,8 @@ impl PciAddressSpace {
#[derive(Debug)]
#[allow(clippy::struct_field_names)]
pub struct Pci {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] <dead_code> reported by reviewdog 🐶
field register_map_regions is never read

@@ -36,6 +37,8 @@ impl VirtIoList {
/// Virtualization standard for IO device.
#[derive(Debug)]
pub struct VirtIo {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] <dead_code> reported by reviewdog 🐶
field register_map_regions is never read

@Alignof Alignof merged commit 394e7ed into feature/milkv-megrez Aug 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant