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 <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-06-07 16:10:18 +02:00
parent a1b996ac37
commit 8eaefa6e8e

View File

@ -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