thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-migration-fix-saving-normal-page-even-if-it-s-been-c.patch

ae23c9
From c3f7e63561bbede9c3b6278a5fd5e262ce960f4c Mon Sep 17 00:00:00 2001
ae23c9
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ae23c9
Date: Wed, 1 Aug 2018 13:55:16 +0100
ae23c9
Subject: [PATCH 12/21] migration: fix saving normal page even if it's been
ae23c9
 compressed
ae23c9
ae23c9
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ae23c9
Message-id: <20180801135522.11658-13-dgilbert@redhat.com>
ae23c9
Patchwork-id: 81568
ae23c9
O-Subject: [qemu-kvm RHEL8/virt212 PATCH 12/18] migration: fix saving normal page even if it's been compressed
ae23c9
Bugzilla: 1594384
ae23c9
RH-Acked-by: Peter Xu <peterx@redhat.com>
ae23c9
RH-Acked-by: John Snow <jsnow@redhat.com>
ae23c9
RH-Acked-by: Juan Quintela <quintela@redhat.com>
ae23c9
ae23c9
From: Xiao Guangrong <xiaoguangrong@tencent.com>
ae23c9
ae23c9
Fix the bug introduced by da3f56cb2e767016 (migration: remove
ae23c9
ram_save_compressed_page()), It should be 'return' rather than
ae23c9
'res'
ae23c9
ae23c9
Sorry for this stupid mistake :(
ae23c9
ae23c9
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
ae23c9
Message-Id: <20180428081045.8878-1-xiaoguangrong@tencent.com>
ae23c9
Signed-off-by: Juan Quintela <quintela@redhat.com>
ae23c9
(cherry picked from commit 701b1876c0fc0c583e4aff300ace5d33a1b97ed6)
ae23c9
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ae23c9
---
ae23c9
 migration/ram.c | 2 +-
ae23c9
 1 file changed, 1 insertion(+), 1 deletion(-)
ae23c9
ae23c9
diff --git a/migration/ram.c b/migration/ram.c
ae23c9
index 466609f..c982201 100644
ae23c9
--- a/migration/ram.c
ae23c9
+++ b/migration/ram.c
ae23c9
@@ -1491,7 +1491,7 @@ static int ram_save_target_page(RAMState *rs, PageSearchStatus *pss,
ae23c9
      * CPU resource.
ae23c9
      */
ae23c9
     if (block == rs->last_sent_block && save_page_use_compression(rs)) {
ae23c9
-        res = compress_page_with_multi_thread(rs, block, offset);
ae23c9
+        return compress_page_with_multi_thread(rs, block, offset);
ae23c9
     }
ae23c9
 
ae23c9
     return ram_save_page(rs, pss, last_stage);
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9