mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +00:00
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:
parent
cc3706afe1
commit
90b5014a50
@ -931,9 +931,6 @@ pub struct DeviceManager {
|
|||||||
// Flag to force setting the iommu on virtio devices
|
// Flag to force setting the iommu on virtio devices
|
||||||
force_iommu: bool,
|
force_iommu: bool,
|
||||||
|
|
||||||
// Helps identify if the VM is currently being restored
|
|
||||||
restoring: bool,
|
|
||||||
|
|
||||||
// io_uring availability if detected
|
// io_uring availability if detected
|
||||||
io_uring_supported: Option<bool>,
|
io_uring_supported: Option<bool>,
|
||||||
|
|
||||||
@ -968,7 +965,6 @@ impl DeviceManager {
|
|||||||
numa_nodes: NumaNodes,
|
numa_nodes: NumaNodes,
|
||||||
activate_evt: &EventFd,
|
activate_evt: &EventFd,
|
||||||
force_iommu: bool,
|
force_iommu: bool,
|
||||||
restoring: bool,
|
|
||||||
boot_id_list: BTreeSet<String>,
|
boot_id_list: BTreeSet<String>,
|
||||||
timestamp: Instant,
|
timestamp: Instant,
|
||||||
snapshot: Option<Snapshot>,
|
snapshot: Option<Snapshot>,
|
||||||
@ -1115,7 +1111,6 @@ impl DeviceManager {
|
|||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
gpio_device: None,
|
gpio_device: None,
|
||||||
force_iommu,
|
force_iommu,
|
||||||
restoring,
|
|
||||||
io_uring_supported: None,
|
io_uring_supported: None,
|
||||||
boot_id_list,
|
boot_id_list,
|
||||||
timestamp,
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -564,7 +564,6 @@ impl Vm {
|
|||||||
numa_nodes.clone(),
|
numa_nodes.clone(),
|
||||||
&activate_evt,
|
&activate_evt,
|
||||||
force_iommu,
|
force_iommu,
|
||||||
restoring,
|
|
||||||
boot_id_list,
|
boot_id_list,
|
||||||
timestamp,
|
timestamp,
|
||||||
snapshot_from_id(snapshot, DEVICE_MANAGER_SNAPSHOT_ID),
|
snapshot_from_id(snapshot, DEVICE_MANAGER_SNAPSHOT_ID),
|
||||||
|
Loading…
Reference in New Issue
Block a user