vmm: device_manager: Remove 'restoring' attribute

Given 'restoring' isn't needed anymore from the DeviceManager structure,
let's simplify it.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2022-11-28 15:15:03 +01:00
parent cc3706afe1
commit 90b5014a50
2 changed files with 0 additions and 10 deletions

View File

@ -931,9 +931,6 @@ pub struct DeviceManager {
// Flag to force setting the iommu on virtio devices
force_iommu: bool,
// Helps identify if the VM is currently being restored
restoring: bool,
// io_uring availability if detected
io_uring_supported: Option<bool>,
@ -968,7 +965,6 @@ impl DeviceManager {
numa_nodes: NumaNodes,
activate_evt: &EventFd,
force_iommu: bool,
restoring: bool,
boot_id_list: BTreeSet<String>,
timestamp: Instant,
snapshot: Option<Snapshot>,
@ -1115,7 +1111,6 @@ impl DeviceManager {
#[cfg(target_arch = "aarch64")]
gpio_device: None,
force_iommu,
restoring,
io_uring_supported: None,
boot_id_list,
timestamp,
@ -4151,10 +4146,6 @@ impl DeviceManager {
}
}
// The devices have been fully restored, we can now update the
// restoring state of the DeviceManager.
self.restoring = false;
Ok(())
}

View File

@ -564,7 +564,6 @@ impl Vm {
numa_nodes.clone(),
&activate_evt,
force_iommu,
restoring,
boot_id_list,
timestamp,
snapshot_from_id(snapshot, DEVICE_MANAGER_SNAPSHOT_ID),