diff --git a/alioth-cli/src/vu.rs b/alioth-cli/src/vu.rs index 79b7f555..72226e0a 100644 --- a/alioth-cli/src/vu.rs +++ b/alioth-cli/src/vu.rs @@ -16,7 +16,6 @@ use std::marker::PhantomData; use std::os::unix::net::UnixListener; use std::path::Path; use std::sync::Arc; -use std::thread::spawn; use alioth::errors::{DebugTrace, trace_error}; use alioth::mem::mapped::RamBus; @@ -142,7 +141,7 @@ pub fn start(args: VuArgs) -> Result<(), Error> { }?; let (conn, _) = listener.accept().context(error::Accept)?; let backend = VuBackend::new(conn, dev, memory).context(error::CreateVu)?; - spawn(move || run_backend(backend)); + run_backend(backend); index = index.wrapping_add(1); } } diff --git a/alioth/src/virtio/vu/backend.rs b/alioth/src/virtio/vu/backend.rs index 7f916b2a..0a5c744f 100644 --- a/alioth/src/virtio/vu/backend.rs +++ b/alioth/src/virtio/vu/backend.rs @@ -283,7 +283,7 @@ impl VuBackend { } (VuFrontMsg::GET_FEATURES, 0) => { let feature = self.dev.device_feature | VirtioFeature::VHOST_PROTOCOL.bits(); - self.session.reply(req, &feature, &[])?; + self.session.reply(req, &(feature as u64), &[])?; msg.flag.set_need_reply(false); log::debug!("{name}: get device feature: {feature:#x}"); }