|
|
357786 |
From 91c5845da64dbe85892770609c1b04dee3718506 Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
357786 |
Date: Fri, 22 Jun 2018 19:00:05 +0200
|
|
|
357786 |
Subject: [PATCH 26/57] migration/block-dirty-bitmap: fix dirty_bitmap_load
|
|
|
357786 |
|
|
|
357786 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
357786 |
Message-id: <20180622190005.21297-19-dgilbert@redhat.com>
|
|
|
357786 |
Patchwork-id: 81012
|
|
|
357786 |
O-Subject: [RHEL7.6 qemu-kvm-rhev PATCH 18/18] migration/block-dirty-bitmap: fix dirty_bitmap_load
|
|
|
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: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
357786 |
|
|
|
357786 |
dirty_bitmap_load_header return code is obtained but not handled. Fix
|
|
|
357786 |
this.
|
|
|
357786 |
|
|
|
357786 |
Bug was introduced in b35ebdf076d697bc
|
|
|
357786 |
"migration: add postcopy migration of dirty bitmaps" with the whole
|
|
|
357786 |
function.
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
|
|
|
357786 |
Message-Id: <20180530112424.204835-1-vsementsov@virtuozzo.com>
|
|
|
357786 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
357786 |
Reviewed-by: John Snow <jsnow@redhat.com>
|
|
|
357786 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
357786 |
(cherry picked from commit a36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b)
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
migration/block-dirty-bitmap.c | 3 +++
|
|
|
357786 |
1 file changed, 3 insertions(+)
|
|
|
357786 |
|
|
|
357786 |
diff --git a/migration/block-dirty-bitmap.c b/migration/block-dirty-bitmap.c
|
|
|
357786 |
index 8819aab..2c541c9 100644
|
|
|
357786 |
--- a/migration/block-dirty-bitmap.c
|
|
|
357786 |
+++ b/migration/block-dirty-bitmap.c
|
|
|
357786 |
@@ -672,6 +672,9 @@ static int dirty_bitmap_load(QEMUFile *f, void *opaque, int version_id)
|
|
|
357786 |
|
|
|
357786 |
do {
|
|
|
357786 |
ret = dirty_bitmap_load_header(f, &s);
|
|
|
357786 |
+ if (ret < 0) {
|
|
|
357786 |
+ return ret;
|
|
|
357786 |
+ }
|
|
|
357786 |
|
|
|
357786 |
if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) {
|
|
|
357786 |
ret = dirty_bitmap_load_start(f, &s);
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|