From 8eaefa6e8eb5dcfd14e49c104c5c38bf64fa1ee0 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 7 Jun 2022 16:10:18 +0200 Subject: [PATCH] pci: msix: Derive Versionize for MsixCap So that we can save and restore the whole structure through snapshot and restore operations. Signed-off-by: Sebastien Boeuf --- pci/src/msix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pci/src/msix.rs b/pci/src/msix.rs index c9d72c95e..b44acdeae 100644 --- a/pci/src/msix.rs +++ b/pci/src/msix.rs @@ -441,7 +441,7 @@ impl Snapshottable for MsixConfig { #[allow(dead_code)] #[repr(packed)] -#[derive(Clone, Copy, Default)] +#[derive(Clone, Copy, Default, Versionize)] pub struct MsixCap { // Message Control Register // 10-0: MSI-X Table size