VirtioQueueState (src/persist.rs)

kata-containers · src/dragonball/crates/dbs_virtio_devices/src/persist.rs · rust · Apache-2.0
infra, tag:knn-classified

Copyright (C) 2026 Ant Group. All rights reserved. SPDX-License-Identifier: Apache-2.0 ! Snapshot state definitions shared by all virtio devices. ! ! These are plain-old-data mirrors of the runtime structures, serializable ! with serde. Compatibility policy: only append new field

// Source: https://github.com/kata-containers/kata-containers | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (C) 2026 Ant Group. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! Snapshot state definitions shared by all virtio devices.
//!
//! These are plain-old-data mirrors of the runtime structures, serializable
//! with serde. Compatibility policy: only append new fields (with
//! `#[serde(default)]`); never remove or repurpose existing ones.

use serde::{Deserialize, Serialize};
use virtio_queue::QueueT;

use crate::{Error, Result, VirtioDeviceInfo, VirtioQueueConfig};

/// The snapshot contract as implemented by virtio devices.
///
/// An alias f

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key