pci: Implement Snapshottable trait for MsixConfig

In order to restore devices relying on MSI-X, the MsixConfig structure
must be restored with the correct values. Additionally, the KVM routes
must be restored so that interrupts can be delivered through KVM the way
they were configured before the snapshot was taken.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-05-06 17:50:56 +02:00
committed by Rob Bradford
parent 52ac3779df
commit 376db31107
4 changed files with 123 additions and 4 deletions

5
Cargo.lock generated
View File

@@ -667,13 +667,18 @@ dependencies = [
name = "pci"
version = "0.1.0"
dependencies = [
"anyhow",
"byteorder",
"devices",
"libc",
"log 0.4.8",
"serde",
"serde_derive",
"serde_json",
"vm-allocator",
"vm-device",
"vm-memory",
"vm-migration",
]
[[package]]