mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
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:
parent
a1b996ac37
commit
8eaefa6e8e
@ -441,7 +441,7 @@ impl Snapshottable for MsixConfig {
|
|||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[repr(packed)]
|
#[repr(packed)]
|
||||||
#[derive(Clone, Copy, Default)]
|
#[derive(Clone, Copy, Default, Versionize)]
|
||||||
pub struct MsixCap {
|
pub struct MsixCap {
|
||||||
// Message Control Register
|
// Message Control Register
|
||||||
// 10-0: MSI-X Table size
|
// 10-0: MSI-X Table size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user