From 5310e546f8007c37128d091901a56e7c238155d1 Mon Sep 17 00:00:00 2001 From: LoGin Date: Thu, 4 Jun 2026 15:53:03 +0000 Subject: [PATCH] feat(transport): add Pmem device type (ID 27) Add VirtIO Pmem (Persistent Memory) device type to the DeviceType enum with its standard device ID 27. Signed-off-by: LoGin --- src/transport/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transport/mod.rs b/src/transport/mod.rs index b080e4e..7873e46 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -161,6 +161,7 @@ pub enum DeviceType { IOMMU = 23, Memory = 24, FileSystem = 26, + Pmem = 27, } impl From for DeviceType { @@ -189,6 +190,7 @@ impl From for DeviceType { 23 => DeviceType::IOMMU, 24 => DeviceType::Memory, 26 => DeviceType::FileSystem, + 27 => DeviceType::Pmem, _ => DeviceType::Invalid, } }