Skip to content

Commit

Permalink
Fixes for Virtio RREF
Browse files Browse the repository at this point in the history
  • Loading branch information
czoop committed May 14, 2021
1 parent 80d6b35 commit 412829d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DEBUG ?= false
LARGE_MEM ?= true
IXGBE ?= true
VIRTIO_NET ?= true
VIRTIO_NET ?= false

ifndef NO_DEFAULT_FLAGS
CARGO_FLAGS ?=
Expand Down
1 change: 0 additions & 1 deletion domains/sys/driver/virtio_net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ libsyscalls = { path = "../../../../lib/core/libsyscalls" }
libtime = { path = "../../../../lib/core/libtime" }
console = { path = "../../../../lib/core/console" }
malloc = { path = "../../../../lib/core/malloc" }
rref = { path = "../../../../lib/core/rref" }
spin = { path = "../../../../lib/core/spin-rs" }

smolnet = { path = "../../../../domains/lib/smolnet" }
Expand Down
4 changes: 2 additions & 2 deletions domains/sys/driver/virtio_net/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub use interface::error::{ErrorKind, Result};
use virtio_network_device::pci::PciFactory;
use virtio_network_device::VirtioNetInner;

use rref::{RRef, RRefDeque};
use interface::rref::{RRef, RRefDeque};

use smolnet::{self, SmolPhy};

Expand Down Expand Up @@ -103,7 +103,7 @@ pub fn trusted_entry(
pci: Box<dyn interface::pci::PCI>,
) -> Box<dyn interface::net::Net> {
libsyscalls::syscalls::init(s);
rref::init(heap, libsyscalls::syscalls::sys_get_current_domain_id());
interface::rref::init(heap, libsyscalls::syscalls::sys_get_current_domain_id());

let net = {
let mut pci_factory = PciFactory::new();
Expand Down
1 change: 0 additions & 1 deletion lib/devices/virtio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ libsyscalls = { path = "../../../lib/core/libsyscalls" }
libtime = { path = "../../../lib/core/libtime" }
console = { path = "../../../lib/core/console" }
malloc = { path = "../../../lib/core/malloc" }
rref = { path = "../../../lib/core/rref" }
volatile_accessor = { path = "../../../lib/external/volatile_accessor" }
1 change: 0 additions & 1 deletion lib/devices/virtio_net/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ libsyscalls = { path = "../../../lib/core/libsyscalls" }
libtime = { path = "../../../lib/core/libtime" }
console = { path = "../../../lib/core/console" }
malloc = { path = "../../../lib/core/malloc" }
rref = { path = "../../../lib/core/rref" }
spin = { path = "../../../lib/core/spin-rs" }
volatile_accessor = { path = "../../../lib/external/volatile_accessor" }

Expand Down
2 changes: 1 addition & 1 deletion lib/devices/virtio_net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern crate alloc;
use alloc::sync::Arc;
use console::println;
use hashbrown::HashMap;
use rref::{RRef, RRefDeque};
use interface::rref::{RRef, RRefDeque};
use spin::Mutex;
use virtio_device::defs::{
VirtQueue, VirtqAvailable, VirtqDescriptor, VirtqUsed, VirtqUsedElement, VirtualQueues,
Expand Down

0 comments on commit 412829d

Please sign in to comment.