vmm: Notify Migratable objects about migration being complete

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-08-09 10:46:41 +02:00
committed by Bo Chen
parent f65538b08f
commit 5a83ebce64
3 changed files with 17 additions and 0 deletions

View File

@@ -1135,6 +1135,9 @@ impl Vmm {
} {
// Stop logging dirty pages and keep the source VM paused unpon successful migration
Ok(()) => {
// Let every Migratable object know about the migration being complete
vm.complete_migration()?;
// Stop logging dirty pages
vm.stop_dirty_log()?;