Skip to content

Commit

Permalink
Merge pull request #1348 from hermit-os/virtio-spec-release
Browse files Browse the repository at this point in the history
refactor: migrate to virtio-spec release
  • Loading branch information
mkroening authored Aug 2, 2024
2 parents 1e93e98 + b7e1f48 commit b2d8af5
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 3,652 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mmap = []

[dependencies]
hermit-macro = { path = "hermit-macro" }
virtio = { package = "virtio-spec", path = "virtio-spec", features = ["alloc", "mmio", "nightly", "zerocopy"] }
virtio = { package = "virtio-spec", version = "0.1", features = ["alloc", "mmio", "nightly", "zerocopy"] }
ahash = { version = "0.8", default-features = false }
align-address = "0.3"
anstyle = { version = "1", default-features = false }
Expand Down Expand Up @@ -165,7 +165,6 @@ llvm-tools = "0.1"
[workspace]
members = [
"hermit-macro",
"virtio-spec",
"xtask",
]
exclude = [
Expand Down
2 changes: 1 addition & 1 deletion src/arch/riscv64/kernel/devicetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use core::ptr::NonNull;

use fdt::Fdt;
#[cfg(all(feature = "tcp", not(feature = "pci")))]
use virtio::mmio::{DeviceRegisterVolatileFieldAccess, DeviceRegisters};
use virtio::mmio::{DeviceRegisters, DeviceRegistersVolatileFieldAccess};
#[cfg(all(feature = "tcp", not(feature = "pci")))]
use volatile::VolatileRef;

Expand Down
2 changes: 1 addition & 1 deletion src/arch/x86_64/kernel/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use core::{ptr, str};

use align_address::Align;
use hermit_sync::{without_interrupts, InterruptTicketMutex};
use virtio::mmio::{DeviceRegisterVolatileFieldAccess, DeviceRegisters};
use virtio::mmio::{DeviceRegisters, DeviceRegistersVolatileFieldAccess};
use volatile::VolatileRef;

use crate::arch::x86_64::mm::paging::{
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/net/virtio/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use alloc::vec::Vec;
use core::str::FromStr;

use smoltcp::phy::ChecksumCapabilities;
use virtio::mmio::{DeviceRegisterVolatileFieldAccess, DeviceRegisters};
use virtio::mmio::{DeviceRegisters, DeviceRegistersVolatileFieldAccess};
use volatile::VolatileRef;

use crate::drivers::net::virtio::{CtrlQueue, NetDevCfg, RxQueues, TxQueues, VirtioNetDriver};
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/virtio/transport/mmio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use core::mem;

use virtio::mmio::{
DeviceRegisterVolatileFieldAccess, DeviceRegisterVolatileWideFieldAccess, DeviceRegisters,
DeviceRegisters, DeviceRegistersVolatileFieldAccess, DeviceRegistersVolatileWideFieldAccess,
InterruptStatus, NotificationData,
};
use virtio::{le32, DeviceStatus};
Expand Down
28 changes: 0 additions & 28 deletions virtio-spec/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions virtio-spec/rustfmt.toml

This file was deleted.

Loading

0 comments on commit b2d8af5

Please sign in to comment.