Skip to content

Commit

Permalink
fix(acpi): Implement Sync+Send for Vmm
Browse files Browse the repository at this point in the history
Signed-off-by: Babis Chalios <[email protected]>
  • Loading branch information
bchalios committed Feb 12, 2024
1 parent a420c7d commit 7bf45b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vmm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ pub struct Vmm {
pio_device_manager: PortIODeviceManager,
}

/// SAFETY: safe to implement Sync
unsafe impl Sync for Vmm {}
/// SAFETY: safe to implement Send
unsafe impl Send for Vmm {}

impl Vmm {
/// Gets Vmm version.
pub fn version(&self) -> String {
Expand Down

0 comments on commit 7bf45b1

Please sign in to comment.