vm-migration: Rename add_data_section() into add_data()

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-12-02 15:46:56 +01:00
parent 748018ace3
commit 4ae6b595d7
5 changed files with 7 additions and 7 deletions

View File

@@ -400,7 +400,7 @@ impl Snapshottable for Vcpu {
.map_err(|e| MigratableError::Pause(anyhow!("Could not get vCPU state {:?}", e)))?;
let mut vcpu_snapshot = Snapshot::default();
vcpu_snapshot.add_data_section(SnapshotData::new_from_state(&saved_state)?);
vcpu_snapshot.add_data(SnapshotData::new_from_state(&saved_state)?);
self.saved_state = Some(saved_state);