Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fixes for after memfd PR #76

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//! This crate is a library both used by the partition and the hypervisor side
//! of the Linux based ARINC 653 hypervisor.
//!
//! The pivot for interaction between the hypervisor and the partitions is
//! formed by a Unix Domain Socket, which is exposed under a well-known path
//! ([syscall::SYSCALL_SOCKET_PATH]) by the hypervisor
//! prior to invocation of a partition.

#[macro_use]
extern crate log;
#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion core/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::{anyhow, Result};
use byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
use enum_primitive::FromPrimitive;

pub static SYSCALL_SOCKET_PATH: &str = "/syscall-a653";
pub const SYSCALL_SOCKET_PATH: &str = "/syscall-a653";

enum_from_primitive! {
#[derive(Debug, Copy, Clone, PartialEq)]
Expand Down
6 changes: 0 additions & 6 deletions hypervisor/src/hypervisor/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@ impl Run {

bind(syscall_socket, &UnixAddr::new(SYSCALL_SOCKET_PATH).unwrap()).unwrap();

// Now that the socket is up and running, we will create a satellite thread
// listening on it.
std::thread::spawn(move || {
syscall::handle(syscall_socket, None).unwrap();
});

let constants: RawFd = PartitionConstants {
name: base.name.clone(),
identifier: base.id,
Expand Down
2 changes: 2 additions & 0 deletions hypervisor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Hypervisor side of the Linux based ARINC 653 hypervisor

#[macro_use]
extern crate log;

Expand Down
7 changes: 7 additions & 0 deletions partition/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//! Partition side of the ARINC 653 Linux hypervisor
//!
//! This crate is a library, implementing and providing the ARINC 653 API meant
//! to be used from within a partition running on the Linux hypervisor.

#[deny(dead_code)]
#[deny(missing_docs)]
#[macro_use]
extern crate log;

Expand Down