Unverified Commit 2d6cc432 authored by milesial's avatar milesial Committed by GitHub
Browse files

feat: make NIXL descriptor serializable (#4222)


Signed-off-by: default avatarmilesial <milesial@users.noreply.github.com>
parent efec27f9
...@@ -14,6 +14,7 @@ pub use agent::NixlAgent; ...@@ -14,6 +14,7 @@ pub use agent::NixlAgent;
pub use config::NixlBackendConfig; pub use config::NixlBackendConfig;
pub use nixl_sys::{MemType, OptArgs, RegistrationHandle}; pub use nixl_sys::{MemType, OptArgs, RegistrationHandle};
pub use serde::{Deserialize, Serialize};
/// Trait for storage types that can be registered with NIXL. /// Trait for storage types that can be registered with NIXL.
pub trait NixlCompatible { pub trait NixlCompatible {
...@@ -24,7 +25,7 @@ pub trait NixlCompatible { ...@@ -24,7 +25,7 @@ pub trait NixlCompatible {
} }
/// NIXL descriptor containing registration information. /// NIXL descriptor containing registration information.
#[derive(Debug, Clone)] #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NixlDescriptor { pub struct NixlDescriptor {
pub addr: u64, pub addr: u64,
pub size: usize, pub size: usize,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment