repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/acpi/mod.rs
src/vmm/src/acpi/mod.rs
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use acpi_tables::fadt::{FADT_F_HW_REDUCED_ACPI, FADT_F_PWR_BUTTON, FADT_F_SLP_BUTTON}; use acpi_tables::{Aml, Dsdt, Fadt, Madt, Mcfg, Rsdp, Sdt, Xsdt, aml}; use log::{debug, error}; use vm_allocator::Alloc...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/sm.rs
src/vmm/src/utils/sm.rs
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fmt::Debug; /// Simple abstraction of a state machine. /// /// `StateMachine<T>` is a wrapper over `T` that also encodes state information for `T`. /// /// Each state for `T` is represented by a ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/signal.rs
src/vmm/src/utils/signal.rs
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use libc::c_int; pub use vmm_sys_util::signal::*; // SAFETY: these are valid libc functions unsafe extern "C" { // SAFETY: Function has no invariants that can be broken. safe fn __libc_current_sig...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/mod.rs
src/vmm/src/utils/mod.rs
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /// Module with helpers to read/write bytes into slices pub mod byte_order; /// Module with network related helpers pub mod net; /// Module with external libc functions pub mod signal; /// Module with stat...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/byte_order.rs
src/vmm/src/utils/byte_order.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 macro_rules! generate_read_fn { ($fn_name: ident, $data_type: ty, $byte_type: ty, $type_size: expr, $endian_type: ident) => { /// Read bytes from the slice pub fn $fn_name(input: &[$byt...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/net/mod.rs
src/vmm/src/utils/net/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. #![warn(missing_docs)...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/net/mac.rs
src/vmm/src/utils/net/mac.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! Contains support ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/utils/net/ipv4addr.rs
src/vmm/src/utils/net/ipv4addr.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::net::Ipv4Addr; /// Checks if an IPv4 address is RFC 3927 compliant. pub fn is_link_local_valid(ipv4_addr: Ipv4Addr) -> bool { match ipv4_addr.octets() { [169, 254, 0, _] => false, ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/persist.rs
src/vmm/src/mmds/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring MmdsNetworkStack. use std::net::Ipv4Addr; use std::sync::{Arc, Mutex}; use serde::{Deserialize, Serialize}; use super::ns::MmdsNetworkStack; use cr...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/ns.rs
src/vmm/src/mmds/ns.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // TODO: get rid of this when splitting dumbo into public and internal parts. #![allow(missing_docs)] use std::convert::From; use std::net::Ipv4Addr; use std::num::NonZeroUsize; use std::str::FromStr; use...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/mod.rs
src/vmm/src/mmds/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /// MMDS data store pub mod data_store; /// MMDS network stack pub mod ns; /// Defines the structures needed for saving/restoring MmdsNetworkStack. pub mod persist; mod token; /// MMDS token headers pub mo...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/data_store.rs
src/vmm/src/mmds/data_store.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fmt; use std::fmt::{Display, Formatter}; use serde::{Deserialize, Serialize}; use serde_json::{Value, to_vec}; use crate::mmds::token::{MmdsTokenError as TokenError, TokenAuthority}; /// The Mm...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/token_headers.rs
src/vmm/src/mmds/token_headers.rs
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::collections::HashMap; // `X-Forwarded-For` pub(crate) const X_FORWARDED_FOR_HEADER: &str = "x-forwarded-for"; // `X-metadata-token` pub(crate) const X_METADATA_TOKEN_HEADER: &str = "x-metadata-to...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/mmds/token.rs
src/vmm/src/mmds/token.rs
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::convert::TryInto; use std::fmt; use std::ops::Add; use aws_lc_rs::aead::{AES_256_GCM, Aad, Nonce, RandomizedNonceKey}; use base64::Engine; use bincode::config; use bincode::config::{Configuration...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/mod.rs
src/vmm/src/devices/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! Emulates virtual ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/acpi/vmgenid.rs
src/vmm/src/devices/acpi/vmgenid.rs
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::convert::Infallible; use acpi_tables::{Aml, aml}; use aws_lc_rs::error::Unspecified as RandError; use aws_lc_rs::rand; use log::{debug, error}; use serde::{Deserialize, Serialize}; use vm_memory:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/acpi/mod.rs
src/vmm/src/devices/acpi/mod.rs
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 mod generated; pub mod vmclock; pub mod vmgenid;
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/acpi/vmclock.rs
src/vmm/src/devices/acpi/vmclock.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::convert::Infallible; use std::mem::offset_of; use std::sync::atomic::{Ordering, fence}; use acpi_tables::{Aml, aml}; use log::error; use serde::{Deserialize, Serialize}; use vm_allocator::AllocPo...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/acpi/generated/mod.rs
src/vmm/src/devices/acpi/generated/mod.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![allow(clippy::all)] #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] pub mod vmclock_abi;
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/acpi/generated/vmclock_abi.rs
src/vmm/src/devices/acpi/generated/vmclock_abi.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/persist.rs
src/vmm/src/devices/virtio/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring Virtio primitives. use std::num::Wrapping; use std::sync::atomic::Ordering; use std::sync::{Arc, Mutex}; use serde::{Deserialize, Serialize}; use s...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/device.rs
src/vmm/src/devices/virtio/device.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::fmt; use std...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/test_utils.rs
src/vmm/src/devices/virtio/test_utils.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![doc(hidden)] use std::fmt::Debug; use std::marker::PhantomData; use std::mem; use std::sync::Arc; use std::sync::atomic::{AtomicUsize, Ordering}; use crate::devices::virtio::queue::Queue; use crate::d...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vhost_user_metrics.rs
src/vmm/src/devices/virtio/vhost_user_metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for vhost-user devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with met...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/mod.rs
src/vmm/src/devices/virtio/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! Implements virtio...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/iovec.rs
src/vmm/src/devices/virtio/iovec.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::io::ErrorKind; use libc::{c_void, iovec, size_t}; use serde::{Deserialize, Serialize}; use vm_memory::bitmap::Bitmap; use vm_memory::{ GuestMemory, GuestMemoryError, ReadVolatile, VolatileMem...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vhost_user.rs
src/vmm/src/devices/virtio/vhost_user.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Portions Copyright 2019 Intel Corporation. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::os::fd::AsRawFd; use std::os::unix::net::UnixStream; use std::sync::Arc; use vhost::vhos...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/queue.rs
src/vmm/src/devices/virtio/queue.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::num::Wrappin...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/iov_deque.rs
src/vmm/src/devices/virtio/iov_deque.rs
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::os::fd::AsRawFd; use libc::{c_int, c_void, iovec, off_t, size_t}; use memfd; use crate::arch::host_page_size; #[derive(Debug, thiserror::Error, displaydoc::Display)] pub enum IovDequeError { ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/pmem/persist.rs
src/vmm/src/devices/virtio/pmem/persist.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; use vm_memory::GuestAddress; use super::device::{ConfigSpace, Pmem, PmemError}; use crate::Vm; use crate::devices::virtio::device::DeviceState; use crate::devices::vir...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/pmem/device.rs
src/vmm/src/devices/virtio/pmem/device.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fs::{File, OpenOptions}; use std::ops::{Deref, DerefMut}; use std::os::fd::AsRawFd; use std::sync::{Arc, Mutex}; use kvm_bindings::{KVM_MEM_READONLY, kvm_userspace_memory_region}; use kvm_ioctls:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/pmem/mod.rs
src/vmm/src/devices/virtio/pmem/mod.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod device; pub mod event_handler; pub mod metrics; pub mod persist; pub const PMEM_NUM_QUEUES: usize = 1; pub const PMEM_QUEUE_SIZE: u16 = 256;
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/pmem/event_handler.rs
src/vmm/src/devices/virtio/pmem/event_handler.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, EventSet, Events, MutEventSubscriber}; use log::{error, warn}; use super::device::Pmem; use crate::devices::virtio::device::VirtioDevice; impl Pmem { const PROCESS_ACTIV...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/pmem/metrics.rs
src/vmm/src/devices/virtio/pmem/metrics.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for pmem devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metrics: ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/rng/persist.rs
src/vmm/src/devices/virtio/rng/persist.rs
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring entropy devices. use std::sync::Arc; use serde::{Deserialize, Serialize}; use crate::devices::virtio::generated::virtio_ids::VIRTIO_ID_RNG; use cra...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/rng/device.rs
src/vmm/src/devices/virtio/rng/device.rs
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::io; use std::ops::Deref; use std::sync::Arc; use aws_lc_rs::rand; use log::info; use vm_memory::GuestMemoryError; use vmm_sys_util::eventfd::EventFd; use super::metrics::METRICS; use super::{RNG...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/rng/mod.rs
src/vmm/src/devices/virtio/rng/mod.rs
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod device; mod event_handler; pub mod metrics; pub mod persist; pub use self::device::{Entropy, EntropyError}; pub(crate) const RNG_NUM_QUEUES: usize = 1; pub(crate) const RNG_QUEUE: usize = 0;
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/rng/event_handler.rs
src/vmm/src/devices/virtio/rng/event_handler.rs
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, Events, MutEventSubscriber}; use vmm_sys_util::epoll::EventSet; use super::{Entropy, RNG_QUEUE}; use crate::devices::virtio::device::VirtioDevice; use crate::logger::{error, ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/rng/metrics.rs
src/vmm/src/devices/virtio/rng/metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for entropy devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metric...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/persist.rs
src/vmm/src/devices/virtio/balloon/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring balloon devices. use std::sync::Arc; use std::time::Duration; use serde::{Deserialize, Serialize}; use super::*; use crate::devices::virtio::balloo...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/device.rs
src/vmm/src/devices/virtio/balloon/device.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::ops::Deref; use std::sync::Arc; use std::time::Duration; use log::{debug, error, info, warn}; use serde::{Deserialize, Serialize}; use utils::time::TimerFd; use vmm_sys_util::eventfd::EventFd; u...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/test_utils.rs
src/vmm/src/devices/virtio/balloon/test_utils.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![doc(hidden)] #[cfg(test)] use crate::devices::virtio::balloon::Balloon; #[cfg(test)] use crate::devices::virtio::device::VirtioDevice; use crate::devices::virtio::test_utils::VirtQueue; #[cfg(test)] /...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/util.rs
src/vmm/src/devices/virtio/balloon/util.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::io; use super::{MAX_PAGE_COMPACT_BUFFER, RemoveRegionError}; use crate::logger::error; use crate::utils::u64_to_usize; use crate::vstate::memory::{GuestAddress, GuestMemory, GuestMemoryMmap, Gues...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/mod.rs
src/vmm/src/devices/virtio/balloon/mod.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Implements a virtio balloon device. pub mod device; mod event_handler; pub mod metrics; pub mod persist; pub mod test_utils; mod util; use log::error; pub use self::device::{Balloon, BalloonConfig, ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/event_handler.rs
src/vmm/src/devices/virtio/balloon/event_handler.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, Events, MutEventSubscriber}; use vmm_sys_util::epoll::EventSet; use super::{DEFLATE_INDEX, INFLATE_INDEX, STATS_INDEX, report_balloon_event_fail}; use crate::devices::virtio:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/balloon/metrics.rs
src/vmm/src/devices/virtio/balloon/metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for balloon devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metric...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/persist.rs
src/vmm/src/devices/virtio/block/persist.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::sync::Arc; use serde::{Deserialize, Serialize}; use super::vhost_user::persist::VhostUserBlockState; use super::virtio::persist::VirtioBlockState; use crate::devices::virtio::transport::VirtioIn...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/device.rs
src/vmm/src/devices/virtio/block/device.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::sync::Arc; use event_manager::{EventOps, Events, MutEventSubscriber}; use log::info; use vmm_sys_util::eventfd::EventFd; use super::BlockError; use super::persist::{BlockConstructorArgs, BlockSt...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/mod.rs
src/vmm/src/devices/virtio/block/mod.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; use self::vhost_user::VhostUserBlockError; use self::virtio::VirtioBlockError; pub mod device; pub mod persist; pub mod vhost_user; pub mod virtio; /// Configuration ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/persist.rs
src/vmm/src/devices/virtio/block/virtio/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring block devices. use device::ConfigSpace; use serde::{Deserialize, Serialize}; use vmm_sys_util::eventfd::EventFd; use super::device::DiskProperties; ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/device.rs
src/vmm/src/devices/virtio/block/virtio/device.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::cmp; use std...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/test_utils.rs
src/vmm/src/devices/virtio/block/virtio/test_utils.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![doc(hidden)] #[cfg(test)] use std::thread; #[cfg(test)] use std::time::Duration; use vmm_sys_util::tempfile::TempFile; use super::RequestHeader; use super::device::VirtioBlockConfig; use crate::devic...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/mod.rs
src/vmm/src/devices/virtio/block/virtio/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Implements a virtio block device. pub mod device; mod event_handler; mod io; pub mod metrics; pub mod persist; pub mod request; pub mod test_utils; use vm_memory::GuestMemoryError; pub use self::dev...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/event_handler.rs
src/vmm/src/devices/virtio/block/virtio/event_handler.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, Events, MutEventSubscriber}; use vmm_sys_util::epoll::EventSet; use super::io::FileEngine; use crate::devices::virtio::block::virtio::device::VirtioBlock; use crate::devices::...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/metrics.rs
src/vmm/src/devices/virtio/block/virtio/metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for block devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metrics:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/request.rs
src/vmm/src/devices/virtio/block/virtio/request.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::convert::Fro...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/io/sync_io.rs
src/vmm/src/devices/virtio/block/virtio/io/sync_io.rs
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fs::File; use std::io::{Seek, SeekFrom, Write}; use vm_memory::{GuestMemoryError, ReadVolatile, WriteVolatile}; use crate::vstate::memory::{GuestAddress, GuestMemory, GuestMemoryMmap}; #[derive...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/io/mod.rs
src/vmm/src/devices/virtio/block/virtio/io/mod.rs
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod async_io; pub mod sync_io; use std::fmt::Debug; use std::fs::File; pub use self::async_io::{AsyncFileEngine, AsyncIoError}; pub use self::sync_io::{SyncFileEngine, SyncIoError}; use crate::device...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/virtio/io/async_io.rs
src/vmm/src/devices/virtio/block/virtio/io/async_io.rs
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fmt::Debug; use std::fs::File; use std::os::fd::RawFd; use std::os::unix::io::AsRawFd; use vm_memory::GuestMemoryError; use vmm_sys_util::eventfd::EventFd; use crate::devices::virtio::block::vir...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/vhost_user/persist.rs
src/vmm/src/devices/virtio/block/vhost_user/persist.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring block devices. use serde::{Deserialize, Serialize}; use super::VhostUserBlockError; use super::device::VhostUserBlock; use crate::devices::virtio::b...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/vhost_user/device.rs
src/vmm/src/devices/virtio/block/vhost_user/device.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Portions Copyright 2019 Intel Corporation. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::ops::Deref; use std::sync::Arc; use log::error; use utils::time::{ClockType, get_time_us...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/vhost_user/mod.rs
src/vmm/src/devices/virtio/block/vhost_user/mod.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod device; pub mod event_handler; pub mod persist; use self::device::VhostUserBlock; use crate::devices::virtio::vhost_user::VhostUserError; use crate::vstate::interrupts::InterruptError; /// Number...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/block/vhost_user/event_handler.rs
src/vmm/src/devices/virtio/block/vhost_user/event_handler.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, Events, MutEventSubscriber}; use vmm_sys_util::epoll::EventSet; use super::VhostUserBlock; use crate::devices::virtio::device::VirtioDevice; use crate::logger::{error, warn}; ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/tap.rs
src/vmm/src/devices/virtio/net/tap.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::fmt::{self, ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/persist.rs
src/vmm/src/devices/virtio/net/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the structures needed for saving/restoring net devices. use std::io; use std::sync::{Arc, Mutex}; use serde::{Deserialize, Serialize}; use super::device::{Net, RxBuffers}; use super::{NET_NU...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/device.rs
src/vmm/src/devices/virtio/net/device.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::collections:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/test_utils.rs
src/vmm/src/devices/virtio/net/test_utils.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![doc(hidden)] use std::fs::File; use std::mem; use std::os::raw::c_ulong; use std::os::unix::io::{AsRawFd, FromRawFd}; use std::process::Command; use std::str::FromStr; use std::sync::atomic::{AtomicUsi...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/mod.rs
src/vmm/src/devices/virtio/net/mod.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Implements a virtio network device. use std::io; /// Maximum size of the queue for network device. pub const NET_QUEUE_MAX_SIZE: u16 = 256; /// Maximum size of the frame buffers handled by this devic...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/event_handler.rs
src/vmm/src/devices/virtio/net/event_handler.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use event_manager::{EventOps, Events, MutEventSubscriber}; use vmm_sys_util::epoll::EventSet; use crate::devices::virtio::device::VirtioDevice; use crate::devices::virtio::net::device::Net; use crate::dev...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/metrics.rs
src/vmm/src/devices/virtio/net/metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for Network devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metric...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/generated/if_tun.rs
src/vmm/src/devices/virtio/net/generated/if_tun.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/generated/sockios.rs
src/vmm/src/devices/virtio/net/generated/sockios.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/generated/mod.rs
src/vmm/src/devices/virtio/net/generated/mod.rs
// Copyright TUNTAP, 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. #![allow(clippy::all)] #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] // generated with bindg...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/net/generated/iff.rs
src/vmm/src/devices/virtio/net/generated/iff.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_ring.rs
src/vmm/src/devices/virtio/generated/virtio_ring.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_net.rs
src/vmm/src/devices/virtio/generated/virtio_net.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_blk.rs
src/vmm/src/devices/virtio/generated/virtio_blk.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/mod.rs
src/vmm/src/devices/virtio/generated/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. #![allow(clippy::all)...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_config.rs
src/vmm/src/devices/virtio/generated/virtio_config.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_mem.rs
src/vmm/src/devices/virtio/generated/virtio_mem.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/generated/virtio_ids.rs
src/vmm/src/devices/virtio/generated/virtio_ids.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // automatically generated by tools/bindgen.sh #![allow( non_camel_case_types, non_upper_case_globals, dead_code, non_snake_case, clippy::ptr_as_ptr, clippy::undocumented_unsafe_bl...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/transport/mod.rs
src/vmm/src/devices/virtio/transport/mod.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::sync::Arc; use std::sync::atomic::AtomicU32; use vmm_sys_util::eventfd::EventFd; use crate::vstate::interrupts::InterruptError; /// MMIO transport for VirtIO devices pub mod mmio; /// PCI trans...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/transport/mmio.rs
src/vmm/src/devices/virtio/transport/mmio.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::fmt::Debug; ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/transport/pci/device.rs
src/vmm/src/devices/virtio/transport/pci/device.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-BSD-3-Clause file. // // Copyright © 2019 Intel Corporation // // SPDX-License-Iden...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/transport/pci/common_config.rs
src/vmm/src/devices/virtio/transport/pci/common_config.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-BSD-3-Clause file. // // Copyright © 2019 Intel Corporation // // SPDX-License-Iden...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/transport/pci/mod.rs
src/vmm/src/devices/virtio/transport/pci/mod.rs
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod common_config; pub mod device;
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/packet.rs
src/vmm/src/devices/virtio/vsock/packet.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // //! `VsockPacket` provides a thin wrapper over the buffers exchanged via virtio queues. //! There are two components to a vsock packet, each using its own descriptor in a //! virtio queue: //! - the pac...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/persist.rs
src/vmm/src/devices/virtio/vsock/persist.rs
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines state and support structures for persisting Vsock devices and backends. use std::fmt::Debug; use std::sync::Arc; use serde::{Deserialize, Serialize}; use super::*; use crate::devices::virtio...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/device.rs
src/vmm/src/devices/virtio/vsock/device.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! This is the `Virt...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/test_utils.rs
src/vmm/src/devices/virtio/vsock/test_utils.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #![cfg(test)] #![doc(hidden)] use std::os::unix::io::{AsRawFd, RawFd}; use std::sync::Arc; use vmm_sys_util::epoll::EventSet; use vmm_sys_util::eventfd::EventFd; use super::packet::{VsockPacketRx, Vsock...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/mod.rs
src/vmm/src/devices/virtio/vsock/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! The Firecracker v...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/event_handler.rs
src/vmm/src/devices/virtio/vsock/event_handler.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. use std::fmt::Debug; ...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/metrics.rs
src/vmm/src/devices/virtio/vsock/metrics.rs
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for vsock devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metrics:...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/unix/muxer_rxq.rs
src/vmm/src/devices/virtio/vsock/unix/muxer_rxq.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// `MuxerRxQ` implements a helper object that `VsockMuxer` can use for queuing RX (host -> /// guest) packets (or rather instructions on how to build said packets). /// /// Under ideal operation, every...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/unix/mod.rs
src/vmm/src/devices/virtio/vsock/unix/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// This module implements the Unix Domain Sockets backend for vsock - a mediator between /// guest-side AF_VSOCK sockets and host-side AF_UNIX sockets. The heavy lifting is performed by /// `muxer::Vso...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/unix/muxer.rs
src/vmm/src/devices/virtio/vsock/unix/muxer.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// `VsockMuxer` is the device-facing component of the Unix domain sockets vsock backend. I.e. /// by implementing the `VsockBackend` trait, it abstracts away the gory details of translating /// between...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/unix/muxer_killq.rs
src/vmm/src/devices/virtio/vsock/unix/muxer_killq.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// `MuxerKillQ` implements a helper object that `VsockMuxer` can use for scheduling forced /// connection termination. I.e. after one peer issues a clean shutdown request /// (VSOCK_OP_SHUTDOWN), the c...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/csm/connection.rs
src/vmm/src/devices/virtio/vsock/csm/connection.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // use std::fmt::Debug; /// The main job of `VsockConnection` is to forward data traffic, back and forth, between a /// guest-side AF_VSOCK socket and a host-side generic `Read + Write + AsRawFd` stream, wh...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
true
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/csm/txbuf.rs
src/vmm/src/devices/virtio/vsock/csm/txbuf.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // use std::fmt::Debug; use std::io::Write; use std::num::Wrapping; use vm_memory::{VolatileMemoryError, VolatileSlice, WriteVolatile}; use super::{VsockCsmError, defs}; use crate::utils::wrap_usize_to_u...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false
firecracker-microvm/firecracker
https://github.com/firecracker-microvm/firecracker/blob/f0691f8253d4bde225b9f70ecabf39b7ad796935/src/vmm/src/devices/virtio/vsock/csm/mod.rs
src/vmm/src/devices/virtio/vsock/csm/mod.rs
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// This module implements our vsock connection state machine. The heavy lifting is done by /// `connection::VsockConnection`, while this file only defines some constants and helper structs. mod connecti...
rust
Apache-2.0
f0691f8253d4bde225b9f70ecabf39b7ad796935
2026-01-04T15:33:15.697747Z
false