Skip to content
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
11 changes: 11 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
resolver = "2"
members = [
"litebox",
"litebox_common",
"litebox_broker_local",
"litebox_broker_local_userland",
"litebox_broker_core",
Expand Down Expand Up @@ -60,6 +61,7 @@ members = [
]
default-members = [
"litebox",
"litebox_common",
"litebox_broker_local",
"litebox_broker_local_userland",
"litebox_broker_core",
Expand Down
5 changes: 3 additions & 2 deletions dev_tests/src/ratchet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ fn ratchet_globals() -> Result<()> {
("litebox_broker_core/", 1),
("litebox_broker_transport_linux_userland/", 1),
("litebox_broker_userland/", 1),
("litebox_common/", 1),
("litebox_hal/", 1),
("litebox_platform/", 2),
("litebox_platform_linux_kernel/", 5),
("litebox_platform_linux_userland/", 6),
("litebox_platform_linux_userland/", 7),
("litebox_platform_macos_userland/", 7),
("litebox_platform_lvbs/", 23),
("litebox_platform_vm_kernel/", 4),
("litebox_platform_vm_userland/", 1),
("litebox_platform_windows_userland/", 11),
("litebox_platform_windows_userland/", 10),
("litebox_runner_lvbs/", 8),
("litebox_runner_optee_on_qemu/", 1),
("litebox_runner_optee_on_vm_userland/", 1),
Expand Down
2 changes: 1 addition & 1 deletion litebox/src/platform/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub trait GuestVectorStateProvider {

// TODO: replace this blanket with architecture-specific providers before
// implementing guest vector-state preservation outside AArch64.
#[cfg(not(target_arch = "aarch64"))]
#[cfg(not(any(target_arch = "aarch64", target_arch = "x86_64")))]
impl<T> GuestVectorStateProvider for T {
type GuestVectorState = ();

Expand Down
13 changes: 13 additions & 0 deletions litebox_common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "litebox_common"
version = "0.1.0"
edition = "2024"
license = "MIT"
repository = "https://github.com/microsoft/litebox"
description = "Common definitions shared across LiteBox shims and platforms"

[dependencies]
spin = { version = "0.9.8", default-features = false, features = ["once"] }

[lints]
workspace = true
7 changes: 7 additions & 0 deletions litebox_common/src/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

//! Architecture-specific helpers independent of host operating systems and guest ABIs.

#[cfg(target_arch = "x86_64")]
pub mod x86_64;
6 changes: 6 additions & 0 deletions litebox_common/src/arch/x86_64/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

//! Shared x86-64 CPU-state helpers.

pub mod xstate;
Loading
Loading