From: Tobin Feldman-Fitzthum <[email protected]>
Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
Signed-off-by: Dov Murik <[email protected]>
---
migration/ram.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index 82a1d13f5f..ce551c1d2f 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3054,6 +3054,10 @@ static int ram_save_complete(QEMUFile *f, void *opaque)
ram_control_after_iterate(f, RAM_CONTROL_FINISH);
}
+ if (confidential_guest()) {
+ cgs_mh_cleanup();
+ }
+
if (ret >= 0) {
multifd_send_sync_main(rs->f);
qemu_put_be64(f, RAM_SAVE_FLAG_EOS);
@@ -3549,6 +3553,10 @@ static int ram_load_cleanup(void *opaque)
rb->receivedmap = NULL;
}
+ if (confidential_guest()) {
+ cgs_mh_cleanup();
+ }
+
return 0;
}
--
2.20.1