|
|
357786 |
From 156eb2b86b1383e639106650be32ca7d1a004f09 Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
357786 |
Date: Fri, 22 Jun 2018 18:59:59 +0200
|
|
|
357786 |
Subject: [PATCH 20/57] migration: fix saving normal page even if it's been
|
|
|
357786 |
compressed
|
|
|
357786 |
|
|
|
357786 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
357786 |
Message-id: <20180622190005.21297-13-dgilbert@redhat.com>
|
|
|
357786 |
Patchwork-id: 80997
|
|
|
357786 |
O-Subject: [RHEL7.6 qemu-kvm-rhev PATCH 12/18] migration: fix saving normal page even if it's been compressed
|
|
|
357786 |
Bugzilla: 1584139
|
|
|
357786 |
RH-Acked-by: Juan Quintela <quintela@redhat.com>
|
|
|
357786 |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
357786 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
From: Xiao Guangrong <xiaoguangrong@tencent.com>
|
|
|
357786 |
|
|
|
357786 |
Fix the bug introduced by da3f56cb2e767016 (migration: remove
|
|
|
357786 |
ram_save_compressed_page()), It should be 'return' rather than
|
|
|
357786 |
'res'
|
|
|
357786 |
|
|
|
357786 |
Sorry for this stupid mistake :(
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
|
|
|
357786 |
Message-Id: <20180428081045.8878-1-xiaoguangrong@tencent.com>
|
|
|
357786 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
|
|
|
357786 |
(cherry picked from commit 701b1876c0fc0c583e4aff300ace5d33a1b97ed6)
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
migration/ram.c | 2 +-
|
|
|
357786 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
357786 |
|
|
|
357786 |
diff --git a/migration/ram.c b/migration/ram.c
|
|
|
357786 |
index 466609f..c982201 100644
|
|
|
357786 |
--- a/migration/ram.c
|
|
|
357786 |
+++ b/migration/ram.c
|
|
|
357786 |
@@ -1491,7 +1491,7 @@ static int ram_save_target_page(RAMState *rs, PageSearchStatus *pss,
|
|
|
357786 |
* CPU resource.
|
|
|
357786 |
*/
|
|
|
357786 |
if (block == rs->last_sent_block && save_page_use_compression(rs)) {
|
|
|
357786 |
- res = compress_page_with_multi_thread(rs, block, offset);
|
|
|
357786 |
+ return compress_page_with_multi_thread(rs, block, offset);
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
return ram_save_page(rs, pss, last_stage);
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|