Dirty bitmaps postcopy migration
v8 cover Dirty bitmaps postcopy migration
Hi all!
There is a new version of dirty bitmap postcopy migration series.
v8
clone: tag postcopy-v8 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v8
- rebased on master
- patches 01-03 from v7 are already merged to master
- patch order is changed to make it possible to merge block/dirty-bitmap patches in separate if is needed
01: new patch
03: fixed to use _locked version of bdrv_release_dirty_bitmap
06: qapi-schema.json -> qapi/migration.json
2.9 -> 2.11
10: protocol changed a bit:
instead of 1 byte "bitmap enabled flag" this byte becomes just "flags" and have "enabled", "persistent" and "autoloading" flags inside. also, make all migrated bitmaps to be not persistent (to prevent their storing on source vm)
14: new patch
patches status:
01-04 - are only about block/dirty-bitmap and have no r-b. Fam, John, Paolo (about bitmap lock),
please look at. These patches are ok to be merged in separate (but before 05-14)
other patches are about migration
05-09 has Juan's r-b (and some of them has John's and Eric's r-bs)
10 - the main patch (dirty bitmaps migration), has no r-b.
11 - preparation for tests, not related to migration directly, has Max's r-b, ok to be merged
separately (but before 12-14)
12-14 - tests, 12 and 13 have Max's r-b, 14 is new
v7
clone: tag postcopy-v7 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v7
- rebased on dirty-bitmap byte-based interfaces
(based on git://repo.or.cz/qemu/ericb.git branch nbd-byte-dirty-v4)
- migration of persistent bitmaps should fail for shared storage migration for now, as persistent dirty bitmaps are stored/load on inactivate/invalidate-cache. also, even for non-shared storage migration there would be useless saving of dirty bitmaps on source. This all will be optimized later.
01: staff from include/migration/vmstate.h moved to include/migration/register.h (rebase) 03: some structural changes due to rebase - drop r-b
04: staff from include/migration/vmstate.h moved to include/migration/register.h (rebase)
staff from include/sysemu/sysemu.h moved to migration/savevm.h (rebase)
05: fix patch header: block -> block/dirty-bitmap
add locking, drop r-b
06: staff from include/migration/migration.h moved to migration/migration.h (rebase) 07: add locking, drop r-b
09: staff from include/migration/qemu-file.h moved to migration/qemu-file.h (rebase) 10: staff from include/migration/vmstate.h moved to include/migration/register.h (rebase) 11: new patch
12: a lot of changes/fixes (mostly by Fam's comments) + rebase
header-definition movement
remove include <assert.h>
add some includes
fix/refactor bitmap flags send
byte-based interface for dirty bitmaps (rebase)
froze bitmaps on source
init_dirty_bitmap_migration can return error, if some of bitmaps are already
frozen
bdrv_ref drives with bitmaps
fprintf -> error_report
check version_id in _load function
v6:
clone: tag postcopy-v6 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v6
rebase on master.
03 - tiny contextual change
12 - little change, but it should be reviewed. Call of init_dirty_bitmap_incoming_migration()
(which only initialize mutex) moved from start of process_incoming_migration_co (it was immediately after "mis = migration_incoming_state_new(f)") to migration_incoming_get_current() to stay with initialization code.
I remove r-b's, but hope that this will not be a problem. The only change in this patch - is moved call of init_dirty_bitmap_incoming_migration.
I do so because of recent
commit b4b076daf324894dd288cbdb67ff1e3c7434df7b
Author: Juan Quintela <[email protected]> Date: Mon Jan 23 22:32:06 2017 +0100
migration: create Migration Incoming State at init time
15 - add Max's r-b
v5:
clone: tag postcopy-v5 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v5
- move 'signed-off' over 'reviewed-by' in patches.
03,04 - add comments. Hope they will be ok for you, so add Juan's r-b.
If not ok - let me know and I'll resend.
06,08,12 - add Max's r-b
07,09,10,11,12 - add Juan's r-b
14 - used last version of this patch from qcow2-bitmap series with
Max's r-b. It has contextual changes due to different base.
15 - fix 041 iotest, add default node-name only if path is specified and
node-name is not specified
16 - handle whitespaces
s/"exec: cat " + fifo/"exec: cat '" + fifo + "'"/
fix indentation
add Max's r-b
17 - fix typos, wrong size in comment, s/md5/sha256/
add Max's r-b
v4:
clone: tag postcopy-v4 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v4
reroll, to fix "failed automatic build test"
rebase on master!
07: since 2.8 -> since 2.9
14: fix build of test-hbitmap
since 2.8 -> since 2.9 and small rewording of comment (this change was not done for same patch in may parallels series about qcow2 bitmap extension)
v3:
rebased on Max's block branch: https://github.com/XanClic/qemu/commits/block
clone: tag postcopy-v3 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v3
01 - r-b by Juan 02 - r-b by Juan and David 04 - fix indent 07 - s/since 2.6/since 2.8/ 10 - change variable name s/buf/str/ 12 - improve copyright message and move it up
fix memory loss (thanks to Juan)
switch from DPRINTF to trace events
14* - switch to sha256 and qcrypto_hash_*
separate qmp command x-debug-block-dirty-bitmap-sha256
16 - use path_suffix for multi-vm test
fix indent
fix copyright
use x-debug-block-dirty-bitmap-sha256 instead of md5
17 - use x-debug-block-dirty-bitmap-sha256 instead of md5
remove not existing 170 test from qemu-iotests/group
*Note: patch 14 is also used in my second series 'qcow2 persistent dirty bitmaps'
v2:
some bugs fixed, iotests a bit changed and merged into one test.
based on block-next (https://github.com/XanClic/qemu/commits/block-next)
clone: tag postcopy-v2 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=refs%2Ftags%2Fpostcopy-v2
v1:
These series are derived from my 'Dirty bitmaps migration' series. The core idea is switch to postcopy migration and drop usage of meta bitmaps.
These patches provide dirty bitmap postcopy migration feature. Only named dirty bitmaps are to be migrated. Migration may be enabled using migration capabilities.
The overall method (thanks to John Snow):
1. migrate bitmaps meta data in .save_live_setup
- create/find related bitmaps on target
- disable them
- create successors (anonimous children) only for enabled migrated bitmaps
2. do nothing in precopy stage
3. just before target vm start: enable successors, created in (1)
4. migrate bitmap data
5. reclaime bitmaps (merge successors to their parents)
6. enable bitmaps (only bitmaps, which was enabled in source)
Some patches are unchnaged from (v7) of 'Dirty bitmaps migration' (DBMv7). I've left Reviewed-by's for them, if you don't like it, say me and I'll drop them in the following version.
So, relatively to last DBMv7:
01-04: new patches, splitting common postcopy migration out of ram
postcopy migration
05: equal to DBMv7.05
06: new
07: equal to DBMv7.06
08: new
09: equal to DBMv7.07
10: new
11: derived from DBMv7.08, see below
12-15: equal to DBMv7.09-12
16: derived from DBMv7.13
- switch from fifo to socket, as postcopy don't work with fifo for now
- change parameters: size, granularity, regions
- add time.sleep, to wait for postcopy migration phase (bad temporary solution.
- drop Reviewed-by
17: new
11: the core patch of the series, it is derived from
[DBMv7.08: migration: add migration_block-dirty-bitmap.c] There are a lot of changes related to switching from precopy to postcopy, but functions related to migration stream itself (structs, send/load sequences) are mostly unchnaged.
So, changes, to switch from precopy to postcopy:
- removed all staff related to meta bitmaps and dirty phase!!!
- add dirty_bitmap_mig_enable_successors, and call it before target vm start in loadvm_postcopy_handle_run
- add enabled_bitmaps list of bitmaps for dirty_bitmap_mig_enable_successors
- enabled flag is send with start bitmap chunk instead of completion chunk
- sectors_per_chunk is calculated directly from CHUNK_SIZE, not using meta bitmap granularity
- dirty_bitmap_save_iterate: remove dirty_phase, move bulk_phase to postcopy stage
- dirty_bitmap_save_pending: remove dirty phase related pending, switch pending to non-postcopyable
- dirty_bitmap_load_start: get enabled flag and prepare successors for enabled bitmaps, also add them to enabled_bitmaps list
- dirty_bitmap_load_complete: for enabled bitmaps: merge them with successors and enable
- savevm handlers:
* remove separate savevm_dirty_bitmap_live_iterate_handlers state (it was bad idea, any way), and move its save_live_iterate to savevm_dirty_bitmap_handlers
* add is_active_iterate savevm handler, which allows iterations only in postcopy stage (after stopping source vm)
* add has_postcopy savevm handler. (ofcourse, just returning true)
* use save_live_complete_postcopy instead of save_live_complete_precopy
Other changes:
- some debug output changed
- remove MIN_LIVE_SIZE, is_live_iterative and related staff (it was needed to omit iterations if bitmap data is small, possibly this should be reimplemented)
Vladimir Sementsov-Ogievskiy (14):
block/dirty-bitmap: add bdrv_dirty_bitmap_enable_successor() block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap block/dirty-bitmap: add bdrv_dirty_bitmap_release_successor block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
migration: introduce postcopy-only pending
qapi: add dirty-bitmaps migration capability
migration: include migrate_dirty_bitmaps in migrate_postcopy migration/qemu-file: add qemu_put_counted_string()
migration: add is_active_iterate handler
migration: add postcopy migration of dirty bitmaps
iotests: add default node-name
iotests: add dirty bitmap migration test
iotests: add dirty bitmap postcopy test
iotests: add persistent bitmap migration test
qapi/migration.json | 6 +- include/block/dirty-bitmap.h | 4 + include/migration/misc.h | 3 + include/migration/register.h | 18 +- migration/migration.h | 4 + migration/qemu-file.h | 2 + migration/savevm.h | 5 +- block/dirty-bitmap.c | 69 +++- migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++ migration/block.c | 7 +- migration/migration.c | 29 +- migration/qemu-file.c | 13 + migration/ram.c | 9 +- migration/savevm.c | 20 +- vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 16 +- tests/qemu-iotests/169 | 155 +++++++++ tests/qemu-iotests/169.out | 5 + tests/qemu-iotests/group | 1 + tests/qemu-iotests/iotests.py | 9 +- 21 files changed, 1077 insertions(+), 34 deletions(-) create mode 100644 migration/block-dirty-bitmap.c create mode 100755 tests/qemu-iotests/169 create mode 100644 tests/qemu-iotests/169.out
Signature · 1 line
2.11.1
PATCH v8 1/14 block/dirty-bitmap: add bdrv_dirty_bitmap_enable_successor()
Enabling bitmap successor is necessary to enable successors of bitmaps being migrated before target vm start.
--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 8 ++++++++ 2 files changed, 9 insertions(+)
include/block/dirty-bitmap.h +1 -0
@@ -20,6 +20,7 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs,BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,Error **errp); +void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap);BdrvDirtyBitmap *bdrv_find_dirty_bitmap (BlockDriverState *bs,const char *name);void bdrv_dirty_bitmap_make_anon (BdrvDirtyBitmap *bitmap);
block/dirty-bitmap.c +8 -0
@@ -237,6 +237,14 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,return 0 ; } +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap) +{ +qemu_mutex_lock (bitmap->mutex); +bdrv_enable_dirty_bitmap (bitmap->successor); +qemu_mutex_unlock (bitmap->mutex); +} +/** * For a bitmap with a successor, yield our name to the successor, * delete the old bitmap, and return a handle to the new bitmap.
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 01/14] block/dirty-bitmap: add bdrv_dirty_bitmap_enable_successor()
Quoted 31 lines · Vladimir Sementsov-Ogievskiy
Enabling bitmap successor is necessary to enable successors of bitmaps being migrated before target vm start.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 8 ++++++++ 2 files changed, 9 insertions(+)include/block/dirty-bitmap.h +1
-0@@ -20,6 +20,7 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs,BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,Error **errp); +void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap);BdrvDirtyBitmap *bdrv_find_dirty_bitmap (BlockDriverState *bs,const char *name);void bdrv_dirty_bitmap_make_anon (BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +1
-0@@ -237,6 +237,14 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,return 0 ; } +/* Called with BQL taken. */
block/dirty-bitmap.c int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs, · line 250
Quoted 10 lines
block/dirty-bitmap.c +7
-0+void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap) +{ +qemu_mutex_lock (bitmap->mutex); +bdrv_enable_dirty_bitmap (bitmap->successor); +qemu_mutex_unlock (bitmap->mutex); +} +/** * For a bitmap with a successor, yield our name to the successor, * delete the old bitmap, and return a handle to the new bitmap.
Mechanically correct; though I haven't looked forward to how it's used yet.
PATCH v8 2/14 block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
In reply to Vladimir Sementsov-OgievskiyIt is needed to realize bdrv_dirty_bitmap_release_successor in the following patch.
--- block/dirty-bitmap.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)
block/dirty-bitmap.c +20 -5
@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap)return !!bdrv_dirty_bitmap_name (bitmap); } -/* Called with BQL taken. */ -static void bdrv_do_release_matching_dirty_bitmap ( +/* Called within bdrv_dirty_bitmap_lock..unlock */ +static void bdrv_do_release_matching_dirty_bitmap_locked (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,bool (*cond)(BdrvDirtyBitmap *bitmap)) {BdrvDirtyBitmap *bm, *next; -bdrv_dirty_bitmaps_lock (bs); + QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next) {if ((!bitmap || bm == bitmap) && (!cond ||cond (bm))) {assert (!bm->active_iterators);
@@ -344,18 +344,33 @@ static void bdrv_do_release_matching_dirty_bitmap(g_free (bm);if (bitmap) { - goto out; +return ; } } } +if (bitmap) {abort (); } +} -out: +/* Called with BQL taken. */ +static void bdrv_do_release_matching_dirty_bitmap ( +BlockDriverState *bs,BdrvDirtyBitmap *bitmap, +bool (*cond)(BdrvDirtyBitmap *bitmap)) +{ +bdrv_dirty_bitmaps_lock (bs); +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap, cond);bdrv_dirty_bitmaps_unlock (bs); } +/* Called within bdrv_dirty_bitmap_lock..unlock */ +static void bdrv_release_dirty_bitmap_locked (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap) +{ +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap,NULL ); +} +/* Called with BQL taken. */ void bdrv_release_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap) {
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.
OK, but...
Quoted 10 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- block/dirty-bitmap.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)block/dirty-bitmap.c +0
-0
block/dirty-bitmap.c static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) · line 329
Quoted 6 lines
block/dirty-bitmap.c +1
-2@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap)return !!bdrv_dirty_bitmap_name (bitmap); } -/* Called with BQL taken. */ -static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */
...Add this so it will compile:
__attribute__((__unused__))
Quoted 13 lines
block/dirty-bitmap.c +2
-1+static void bdrv_do_release_matching_dirty_bitmap_locked (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,bool (*cond)(BdrvDirtyBitmap *bitmap)) {BdrvDirtyBitmap *bm, *next; -bdrv_dirty_bitmaps_lock (bs); + QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next) {if ((!bitmap || bm == bitmap) && (!cond ||cond (bm))) {assert (!bm->active_iterators);@@ -344,18 +344,33 @@ static void bdrv_do_release_matching_dirty_bitmap(g_free (bm);
block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 354
Quoted 10 lines
block/dirty-bitmap.c +2
-1if (bitmap) { - goto out; +return ; } } } +if (bitmap) {abort (); }
Do we have any style guide rules on using abort() instead of assert()? The rest of this function uses assert, and it'd be less lines to simply write:
assert(!bitmap);
which I think might also carry better semantic information for coverity beyond an actual runtime conditional branch.
(I think. Please correct me if I am wrong, I'm a little hazy on this.)
Quoted 14 lines
block/dirty-bitmap.c +8
-1+} -out: +/* Called with BQL taken. */ +static void bdrv_do_release_matching_dirty_bitmap ( +BlockDriverState *bs,BdrvDirtyBitmap *bitmap, +bool (*cond)(BdrvDirtyBitmap *bitmap)) +{ +bdrv_dirty_bitmaps_lock (bs); +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap, cond);bdrv_dirty_bitmaps_unlock (bs); }
block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 376
Quoted 10 lines
block/dirty-bitmap.c +7
-0+/* Called within bdrv_dirty_bitmap_lock..unlock */ +static void bdrv_release_dirty_bitmap_locked (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap) +{ +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap,NULL ); +} +/* Called with BQL taken. */ void bdrv_release_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap) {
If you agree with those two changes, you may add:
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
Quoted 20 lines · John Snow
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.OK, but...
Quoted 13 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- block/dirty-bitmap.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)block/dirty-bitmap.c +0
-0@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap)return !!bdrv_dirty_bitmap_name (bitmap); }
Quoted 6 lines
block/dirty-bitmap.c static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) · line 329
Quoted 3 lines
block/dirty-bitmap.c +1
-2-/* Called with BQL taken. */ -static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */ ...Add this so it will compile:
__attribute__((__unused__))
ok
Quoted 27 lines
Quoted 13 lines
block/dirty-bitmap.c +2
-1+static void bdrv_do_release_matching_dirty_bitmap_locked (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,bool (*cond)(BdrvDirtyBitmap *bitmap)) {BdrvDirtyBitmap *bm, *next; -bdrv_dirty_bitmaps_lock (bs); + QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next) {if ((!bitmap || bm == bitmap) && (!cond ||cond (bm))) {assert (!bm->active_iterators);@@ -344,18 +344,33 @@ static void bdrv_do_release_matching_dirty_bitmap(g_free (bm);block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 354
Quoted 10 lines
block/dirty-bitmap.c +2
-1if (bitmap) { - goto out; +return ; } } } +if (bitmap) {abort (); }Do we have any style guide rules on using
abort()instead ofassert()? The rest of this function uses assert, and it'd be less lines to simply write:
Quoted 6 lines
assert(!bitmap);
which I think might also carry better semantic information for coverity beyond an actual runtime conditional branch.
(I think. Please correct me if I am wrong, I'm a little hazy on this.)
agree, but it is a preexisting code, so I'll fix it with an additional patch.
Quoted 14 lines
Quoted 14 lines
block/dirty-bitmap.c +8
-1+} -out: +/* Called with BQL taken. */ +static void bdrv_do_release_matching_dirty_bitmap ( +BlockDriverState *bs,BdrvDirtyBitmap *bitmap, +bool (*cond)(BdrvDirtyBitmap *bitmap)) +{ +bdrv_dirty_bitmaps_lock (bs); +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap, cond);bdrv_dirty_bitmaps_unlock (bs); }
Quoted 12 lines
block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 376
Quoted 11 lines
block/dirty-bitmap.c +7
-0+/* Called within bdrv_dirty_bitmap_lock..unlock */ +static void bdrv_release_dirty_bitmap_locked (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap) +{ +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap,NULL ); +} +/* Called with BQL taken. */ void bdrv_release_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap) {If you agree with those two changes, you may add:
ok
Quoted 2 lines
Reviewed-by John Snow <[email protected]>
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
Quoted 58 lines · Vladimir Sementsov-Ogievskiy
Quoted 25 lines · John Snow
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.OK, but...
Quoted 14 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
block/dirty-bitmap.c| 25 ++++++++++++++++++++-----1 file changed, 20 insertions(+), 5 deletions(-)block/dirty-bitmap.c +0
-0@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) return !!bdrv_dirty_bitmap_name(bitmap); }-/* Called with BQL taken. */
block/dirty-bitmap.c static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) · line 329
Quoted 2 lines
block/dirty-bitmap.c +1
-1-static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */ ...Add this so it will compile:
Quoted 1 line
__attribute__((__unused__))
ok
Quoted 28 lines
Quoted 12 lines
+static void
bdrv_do_release_matching_dirty_bitmap_locked( BlockDriverState *bs, BdrvDirtyBitmap *bitmap, bool (*cond)(BdrvDirtyBitmap *bitmap))
{
BdrvDirtyBitmap *bm, *next;
-bdrv_dirty_bitmaps_lock(bs);
+
QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next){ if ((!bitmap || bm == bitmap) && (!cond || cond(bm))) {assert(!bm->active_iterators);block/dirty-bitmap.c +0
-0@@ -344,18 +344,33 @@ static void bdrv_do_release_matching_dirty_bitmap( g_free(bm);block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 353
Quoted 10 lines
block/dirty-bitmap.c +2
-1if (bitmap) { - goto out; + return; } } } + if (bitmap) { abort(); }Do we have any style guide rules on using
abort()instead ofassert()? The rest of this function uses assert, and it'd be less lines to simply write:assert(!bitmap);
Quoted 8 lines
Quoted 4 lines
which I think might also carry better semantic information for coverity beyond an actual runtime conditional branch.
(I think. Please correct me if I am wrong, I'm a little hazy on this.)
agree, but it is a preexisting code, so I'll fix it with an additional patch.
You're right. I didn't notice it was pre-existing where I was looking at it. I'll send my own little fixup. My mistake.
Quoted 26 lines
Quoted 17 lines
Quoted 17 lines
block/dirty-bitmap.c +1
-0+}-out:
block/dirty-bitmap.c +7
-0+/* Called with BQL taken. */ +static void bdrv_do_release_matching_dirty_bitmap ( + BlockDriverState *bs, BdrvDirtyBitmap *bitmap, + bool (*cond)(BdrvDirtyBitmap *bitmap)) +{ + bdrv_dirty_bitmaps_lock(bs); + bdrv_do_release_matching_dirty_bitmap_locked(bs, bitmap, cond);
bdrv_dirty_bitmaps_unlock(bs);
}
+/* Called within bdrv_dirty_bitmap_lock..unlock */block/dirty-bitmap.c +4
-0+static void bdrv_release_dirty_bitmap_locked (BlockDriverState *bs, + BdrvDirtyBitmap *bitmap) +{ + bdrv_do_release_matching_dirty_bitmap_locked(bs, bitmap, NULL);Quoted 8 lines
Quoted 7 lines
block/dirty-bitmap.c +2
-0+} +/* Called with BQL taken. */
voidbdrv_release_dirty_bitmap(BlockDriverState *bs, BdrvDirtyBitmap *bitmap)
{If you agree with those two changes, you may add:
Quoted 6 lines
ok
Quoted 2 lines
Reviewed-by John Snow <[email protected]>
Just make sure it compiles standalone by using the unused attribute and you can add the RB.
--js
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
In reply to John SnowQuoted 20 lines · John Snow
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.OK, but...
Quoted 13 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- block/dirty-bitmap.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)block/dirty-bitmap.c +0
-0@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap)return !!bdrv_dirty_bitmap_name (bitmap); }
Quoted 4 lines
block/dirty-bitmap.c static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) · line 329
Quoted 3 lines
block/dirty-bitmap.c +1
-2-/* Called with BQL taken. */ -static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */ ...Add this so it will compile:
how do you compile to get an error? and what is unused?
Quoted 63 lines
__attribute__((__unused__))
Quoted 13 lines
block/dirty-bitmap.c +2
-1+static void bdrv_do_release_matching_dirty_bitmap_locked (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,bool (*cond)(BdrvDirtyBitmap *bitmap)) {BdrvDirtyBitmap *bm, *next; -bdrv_dirty_bitmaps_lock (bs); + QLIST_FOREACH_SAFE(bm, &bs->dirty_bitmaps, list, next) {if ((!bitmap || bm == bitmap) && (!cond ||cond (bm))) {assert (!bm->active_iterators);@@ -344,18 +344,33 @@ static void bdrv_do_release_matching_dirty_bitmap(g_free (bm);block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 354
Quoted 10 lines
block/dirty-bitmap.c +2
-1if (bitmap) { - goto out; +return ; } } } +if (bitmap) {abort (); }Do we have any style guide rules on using
abort()instead ofassert()? The rest of this function uses assert, and it'd be less lines to simply write:assert(!bitmap);
which I think might also carry better semantic information for coverity beyond an actual runtime conditional branch.
(I think. Please correct me if I am wrong, I'm a little hazy on this.)
Quoted 14 lines
block/dirty-bitmap.c +8
-1+} -out: +/* Called with BQL taken. */ +static void bdrv_do_release_matching_dirty_bitmap ( +BlockDriverState *bs,BdrvDirtyBitmap *bitmap, +bool (*cond)(BdrvDirtyBitmap *bitmap)) +{ +bdrv_dirty_bitmaps_lock (bs); +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap, cond);bdrv_dirty_bitmaps_unlock (bs); }block/dirty-bitmap.c static void bdrv_do_release_matching_dirty_bitmap( · line 376
Quoted 10 lines
block/dirty-bitmap.c +7
-0+/* Called within bdrv_dirty_bitmap_lock..unlock */ +static void bdrv_release_dirty_bitmap_locked (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap) +{ +bdrv_do_release_matching_dirty_bitmap_locked (bs, bitmap,NULL ); +} +/* Called with BQL taken. */ void bdrv_release_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap) {If you agree with those two changes, you may add:
Reviewed-by John Snow <[email protected]>
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
Quoted 26 lines · Vladimir Sementsov-Ogievskiy
Quoted 12 lines · John Snow
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.OK, but...
Quoted 5 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
block/dirty-bitmap.c| 25 ++++++++++++++++++++-----1 file changed, 20 insertions(+), 5 deletions(-)Quoted 12 lines
block/dirty-bitmap.c static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) · line 329
Quoted 11 lines
block/dirty-bitmap.c +0
-0@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) return !!bdrv_dirty_bitmap_name(bitmap); }-/* Called with BQL taken. */
block/dirty-bitmap.c +1
-1-static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */ ...Add this so it will compile:
Quoted 2 lines
how do you compile to get an error? and what is unused?
.../src/qemu/block/dirty-bitmap.c:368:13: error:
‘bdrv_release_dirty_bitmap_locked’ defined but not used [-Werror=unused-function]
static void bdrv_release_dirty_bitmap_locked(BlockDriverState *bs,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I commented on the wrong prototype. The ((__unused__)) attribute just quiets this warning so it can compile without you having to refactor.
--js
Re: [Qemu-devel] [PATCH v8 02/14] block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap
Quoted 32 lines · John Snow
Quoted 24 lines · Vladimir Sementsov-Ogievskiy
Quoted 11 lines · John Snow
Quoted 3 lines · Vladimir Sementsov-Ogievskiy
It is needed to realize
bdrv_dirty_bitmap_release_successorin the following patch.OK, but...
Quoted 5 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- block/dirty-bitmap.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)Quoted 12 lines
block/dirty-bitmap.c static bool · line 330
Quoted 11 lines
block/dirty-bitmap.c +1
-1@@ -326,13 +326,13 @@ static bool bdrv_dirty_bitmap_has_name(BdrvDirtyBitmap *bitmap) return !!bdrv_dirty_bitmap_name(bitmap); } -/* Called with BQL taken. */ -static void bdrv_do_release_matching_dirty_bitmap( +/* Called within bdrv_dirty_bitmap_lock..unlock */ ...Add this so it will compile:
Quoted 2 lines
how do you compile to get an error? and what is unused?
.../src/qemu/block/dirty-bitmap.c:368:13: error:
‘bdrv_release_dirty_bitmap_locked’ defined but not used [-Werror=unused-function]
static void bdrv_release_dirty_bitmap_locked(BlockDriverState *bs,
Quoted 6 lines
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~cc1: all warnings being treated as errors
I commented on the wrong prototype. The ((
__unused__)) attribute just quiets this warning so it can compile without you having to refactor.
aha ok, you are right
Quoted 2 lines
--js
Signature · 2 lines
Best regards, Vladimir
PATCH v8 3/14 block/dirty-bitmap: add bdrv_dirty_bitmap_release_successor
In reply to Vladimir Sementsov-OgievskiyTo just release successor and unfreeze bitmap without any additional work.
--- include/block/dirty-bitmap.h | 2 ++ block/dirty-bitmap.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+)
include/block/dirty-bitmap.h +2 -0
@@ -20,6 +20,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs,BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,Error **errp); +void bdrv_dirty_bitmap_release_successor (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap);void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap);BdrvDirtyBitmap *bdrv_find_dirty_bitmap (BlockDriverState *bs,const char *name);
block/dirty-bitmap.c +14 -0
@@ -431,6 +431,20 @@ void bdrv_enable_dirty_bitmap(BdrvDirtyBitmap *bitmap) bitmap->disabled = false; } +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_release_successor (BlockDriverState *bs, +BdrvDirtyBitmap *parent) +{ +qemu_mutex_lock (parent->mutex); + +if (parent->successor) { +bdrv_release_dirty_bitmap_locked (bs, parent->successor); + parent->successor =NULL ; + } + +qemu_mutex_unlock (parent->mutex); +} +BlockDirtyInfoList *bdrv_query_dirty_bitmaps (BlockDriverState *bs) {BdrvDirtyBitmap *bm;
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 03/14] block/dirty-bitmap: add bdrv_dirty_bitmap_release_successor
Quoted 39 lines · Vladimir Sementsov-Ogievskiy
To just release successor and unfreeze bitmap without any additional work.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Signed-off-by Denis V. Lunev <[email protected]>--- include/block/dirty-bitmap.h | 2 ++ block/dirty-bitmap.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+)include/block/dirty-bitmap.h +2
-0@@ -20,6 +20,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs,BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap (BlockDriverState *bs,BdrvDirtyBitmap *bitmap,Error **errp); +void bdrv_dirty_bitmap_release_successor (BlockDriverState *bs, +BdrvDirtyBitmap *bitmap);void bdrv_dirty_bitmap_enable_successor (BdrvDirtyBitmap *bitmap);BdrvDirtyBitmap *bdrv_find_dirty_bitmap (BlockDriverState *bs,const char *name);block/dirty-bitmap.c +7
-0@@ -431,6 +431,20 @@ void bdrv_enable_dirty_bitmap(BdrvDirtyBitmap *bitmap) bitmap->disabled = false; } +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_release_successor (BlockDriverState *bs, +BdrvDirtyBitmap *parent) +{ +qemu_mutex_lock (parent->mutex); + +if (parent->successor) {
block/dirty-bitmap.c void bdrv_enable_dirty_bitmap(BdrvDirtyBitmap *bitmap) · line 450
Quoted 10 lines
block/dirty-bitmap.c +7
-0+bdrv_release_dirty_bitmap_locked (bs, parent->successor); + parent->successor =NULL ; + } + +qemu_mutex_unlock (parent->mutex); +} +BlockDirtyInfoList *bdrv_query_dirty_bitmaps (BlockDriverState *bs) {BdrvDirtyBitmap *bm;
Not sure what this is useful for just yet, but it looks okay, tentatively..
PATCH v8 4/14 block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
In reply to Vladimir Sementsov-OgievskiyMake it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-)
include/block/dirty-bitmap.h +1 -0
@@ -39,6 +39,7 @@ uint32_t bdrv_get_default_bitmap_granularity(BlockDriverState *bs);uint32_t bdrv_dirty_bitmap_granularity (const BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen);const char *bdrv_dirty_bitmap_name (const BdrvDirtyBitmap *bitmap);int64_t bdrv_dirty_bitmap_size (const BdrvDirtyBitmap *bitmap);DirtyBitmapStatus bdrv_dirty_bitmap_status (BdrvDirtyBitmap *bitmap);
block/dirty-bitmap.c +20 -2
@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {QemuMutex *mutex;HBitmap *bitmap;/* Dirty bitmap implementation */ HBitmap *meta;/* Meta dirty bitmap */ +bool frozen;/* Bitmap is frozen, it can't be modified +through QMP */ BdrvDirtyBitmap *successor;/* Anonymous child; implies frozen status */ char *name;/* Optional non-empty unique ID */ int64_t size;/* Size of the bitmap, in bytes */
@@ -183,13 +185,22 @@ const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap)/* Called with BQL taken. */ bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap) { -return bitmap->successor; +return bitmap->frozen; +} + +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen) +{ +qemu_mutex_lock (bitmap->mutex); +assert (bitmap->successor ==NULL ); + bitmap->frozen = frozen; +qemu_mutex_unlock (bitmap->mutex); }/* Called with BQL taken. */ bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap) { -return !(bitmap->disabled || bitmap->successor); +return !(bitmap->disabled || (bitmap->successor !=NULL )); }/* Called with BQL taken. */
@@ -234,6 +245,7 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,/* Install the successor and freeze the parent */ bitmap->successor = child; + bitmap->frozen = true;return 0 ; }
@@ -266,6 +278,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs, name = bitmap->name; bitmap->name =NULL ; successor->name = name; +assert (bitmap->frozen); + bitmap->frozen = false; bitmap->successor =NULL ; successor->persistent = bitmap->persistent; bitmap->persistent = false;
@@ -298,6 +312,8 @@ BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap(BlockDriverState *bs,return NULL ; }bdrv_release_dirty_bitmap (bs, successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ;return parent;
@@ -439,6 +455,8 @@ void bdrv_dirty_bitmap_release_successor(BlockDriverState *bs,if (parent->successor) {bdrv_release_dirty_bitmap_locked (bs, parent->successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ; }
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 27 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +1
-0@@ -39,6 +39,7 @@ uint32_t bdrv_get_default_bitmap_granularity(BlockDriverState *bs);uint32_t bdrv_dirty_bitmap_granularity (const BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen);const char *bdrv_dirty_bitmap_name (const BdrvDirtyBitmap *bitmap);int64_t bdrv_dirty_bitmap_size (const BdrvDirtyBitmap *bitmap);DirtyBitmapStatus bdrv_dirty_bitmap_status (BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +0
-0
block/dirty-bitmap.c struct BdrvDirtyBitmap { · line 44
Quoted 5 lines
block/dirty-bitmap.c +2
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {QemuMutex *mutex;HBitmap *bitmap;/* Dirty bitmap implementation */ HBitmap *meta;/* Meta dirty bitmap */ +bool frozen;/* Bitmap is frozen, it can't be modified +through QMP */
I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
Before:
Frozen: "Bitmap has a successor and is no longer itself recording writes, though we are guaranteed to have a successor doing so on our behalf."
After:
Frozen: "Bitmap may or may not have a successor, but it is disabled with an even more limited subset of tasks than a traditionally disabled bitmap."
This changes the meaning of "frozen" a little, and I am not sure that is a problem as such, but it does make the interface seem a little "fuzzier" than it did prior.
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 189
Quoted 10 lines
block/dirty-bitmap.c +2
-1BdrvDirtyBitmap *successor;/* Anonymous child; implies frozen status */ char *name;/* Optional non-empty unique ID */ int64_t size;/* Size of the bitmap, in bytes */ @@ -183,13 +185,22 @@ const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap)/* Called with BQL taken. */ bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap) { -return bitmap->successor; +return bitmap->frozen; +}
Are there any cases where we will be unfrozen, but actually have a successor now? If so, under what circumstances does that happen?
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 199
Quoted 10 lines
block/dirty-bitmap.c +8
-0+ +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen) +{ +qemu_mutex_lock (bitmap->mutex); +assert (bitmap->successor ==NULL ); + bitmap->frozen = frozen; +qemu_mutex_unlock (bitmap->mutex); }
OK, so we can only "set frozen" (or unset) if we don't have a successor.
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 205
Quoted 7 lines
block/dirty-bitmap.c +1
-1/* Called with BQL taken. */ bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap) { -return !(bitmap->disabled || bitmap->successor); +return !(bitmap->disabled || (bitmap->successor !=NULL )); }
I guess this just makes 'successor' more obviously non-boolean, which is fine.
Quoted 29 lines
block/dirty-bitmap.c +5
-0/* Called with BQL taken. */ @@ -234,6 +245,7 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,/* Install the successor and freeze the parent */ bitmap->successor = child; + bitmap->frozen = true;return 0 ; }@@ -266,6 +278,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs, name = bitmap->name; bitmap->name =NULL ; successor->name = name; +assert (bitmap->frozen); + bitmap->frozen = false; bitmap->successor =NULL ; successor->persistent = bitmap->persistent; bitmap->persistent = false;@@ -298,6 +312,8 @@ BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap(BlockDriverState *bs,return NULL ; }bdrv_release_dirty_bitmap (bs, successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ;return parent;
block/dirty-bitmap.c void bdrv_dirty_bitmap_release_successor(BlockDriverState *bs, · line 462
Quoted 8 lines
block/dirty-bitmap.c +2
-0@@ -439,6 +455,8 @@ void bdrv_dirty_bitmap_release_successor(BlockDriverState *bs,if (parent->successor) {bdrv_release_dirty_bitmap_locked (bs, parent->successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ; }
Tentatively:
Fam, any thoughts?
--John
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 28 lines · John Snow
Quoted 26 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +1
-0@@ -39,6 +39,7 @@ uint32_t bdrv_get_default_bitmap_granularity(BlockDriverState *bs);uint32_t bdrv_dirty_bitmap_granularity (const BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap);bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen);const char *bdrv_dirty_bitmap_name (const BdrvDirtyBitmap *bitmap);int64_t bdrv_dirty_bitmap_size (const BdrvDirtyBitmap *bitmap);DirtyBitmapStatus bdrv_dirty_bitmap_status (BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +0
-0
Quoted 8 lines
block/dirty-bitmap.c struct BdrvDirtyBitmap { · line 44
Quoted 6 lines
block/dirty-bitmap.c +2
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {QemuMutex *mutex;HBitmap *bitmap;/* Dirty bitmap implementation */ HBitmap *meta;/* Meta dirty bitmap */ +bool frozen;/* Bitmap is frozen, it can't be modified +through QMP */ I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
it was your proposal)))
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01172.html
"
Your new use case here sounds like Frozen to me, but it simply does not have an anonymous successor to force it to be recognized as "frozen." We can add a bool protected or bool frozen field to force recognition of this status and adjust the json documentation accordingly.
I think then we'd have four recognized states:
FROZEN: Cannot be reset/deleted. Bitmap is in-use by a block job or other internal process. Bitmap is otherwise ACTIVE.
DISABLED: Not recording any writes (by choice.)
READONLY: Not able to record any writes (by necessity.)
ACTIVE: Normal bitmap status.
Sound right?
"
Quoted 95 lines
Before:
Frozen: "Bitmap has a successor and is no longer itself recording writes, though we are guaranteed to have a successor doing so on our behalf."
After:
Frozen: "Bitmap may or may not have a successor, but it is disabled with an even more limited subset of tasks than a traditionally disabled bitmap."
This changes the meaning of "frozen" a little, and I am not sure that is a problem as such, but it does make the interface seem a little "fuzzier" than it did prior.
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 189
Quoted 10 lines
block/dirty-bitmap.c +2
-1BdrvDirtyBitmap *successor;/* Anonymous child; implies frozen status */ char *name;/* Optional non-empty unique ID */ int64_t size;/* Size of the bitmap, in bytes */ @@ -183,13 +185,22 @@ const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap)/* Called with BQL taken. */ bool bdrv_dirty_bitmap_frozen (BdrvDirtyBitmap *bitmap) { -return bitmap->successor; +return bitmap->frozen; +}Are there any cases where we will be unfrozen, but actually have a successor now? If so, under what circumstances does that happen?
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 199
Quoted 10 lines
block/dirty-bitmap.c +8
-0+ +/* Called with BQL taken. */ +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen) +{ +qemu_mutex_lock (bitmap->mutex); +assert (bitmap->successor ==NULL ); + bitmap->frozen = frozen; +qemu_mutex_unlock (bitmap->mutex); }OK, so we can only "set frozen" (or unset) if we don't have a successor.
block/dirty-bitmap.c const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap) · line 205
Quoted 7 lines
block/dirty-bitmap.c +1
-1/* Called with BQL taken. */ bool bdrv_dirty_bitmap_enabled (BdrvDirtyBitmap *bitmap) { -return !(bitmap->disabled || bitmap->successor); +return !(bitmap->disabled || (bitmap->successor !=NULL )); }I guess this just makes 'successor' more obviously non-boolean, which is fine.
Quoted 29 lines
block/dirty-bitmap.c +5
-0/* Called with BQL taken. */ @@ -234,6 +245,7 @@ int bdrv_dirty_bitmap_create_successor(BlockDriverState *bs,/* Install the successor and freeze the parent */ bitmap->successor = child; + bitmap->frozen = true;return 0 ; }@@ -266,6 +278,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_abdicate(BlockDriverState *bs, name = bitmap->name; bitmap->name =NULL ; successor->name = name; +assert (bitmap->frozen); + bitmap->frozen = false; bitmap->successor =NULL ; successor->persistent = bitmap->persistent; bitmap->persistent = false;@@ -298,6 +312,8 @@ BdrvDirtyBitmap *bdrv_reclaim_dirty_bitmap(BlockDriverState *bs,return NULL ; }bdrv_release_dirty_bitmap (bs, successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ;return parent;block/dirty-bitmap.c void bdrv_dirty_bitmap_release_successor(BlockDriverState *bs, · line 462
Quoted 8 lines
block/dirty-bitmap.c +2
-0@@ -439,6 +455,8 @@ void bdrv_dirty_bitmap_release_successor(BlockDriverState *bs,if (parent->successor) {bdrv_release_dirty_bitmap_locked (bs, parent->successor); +assert (parent->frozen); + parent->frozen = false; parent->successor =NULL ; }Tentatively:
Reviewed-by John Snow <[email protected]>Fam, any thoughts?
--John
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 53 lines · Vladimir Sementsov-Ogievskiy
Quoted 31 lines · John Snow
Quoted 29 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
include/block/dirty-bitmap.h| 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++--2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +1
-0@@ -39,6 +39,7 @@ uint32_tbdrv_get_default_bitmap_granularity (BlockDriverState *bs); uint32_t bdrv_dirty_bitmap_granularity(const BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_enabled(BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen); const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap);
int64_tbdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap); DirtyBitmapStatusbdrv_dirty_bitmap_status(BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +0
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {Quoted 8 lines
Quoted 6 lines
block/dirty-bitmap.c +0
-0QemuMutex *mutex;HBitmap *bitmap; /* Dirty bitmap implementation */ HBitmap *meta; /* Meta dirty bitmap */ + bool frozen; /* Bitmap is frozen, it can't be modified
+ through QMP */I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
it was your proposal)))
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01172.html
"
Your new use case here sounds like Frozen to me, but it simply does not have an anonymous successor to force it to be recognized as "frozen." We can add abool protectedorbool frozenfield to force recognition of this status and adjust the json documentation accordingly.I think then we'd have four recognized states:
Quoted 10 lines
FROZEN: Cannot be reset/deleted. Bitmap is in-use by a block job or other internal process. Bitmap is otherwise ACTIVE.
DISABLED: Not recording any writes (by choice.)
READONLY: Not able to record any writes (by necessity.)
ACTIVE: Normal bitmap status.Sound right?
"
I was afraid you'd say that :(
It's okay, anyway. I shouldn't let myself go so long between reviews like this, because you catch me changing my mind. Anyway, please go ahead with it. I don't want to delay you on something that works because I can't make up *my* mind.
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 63 lines · John Snow
Quoted 51 lines · Vladimir Sementsov-Ogievskiy
Quoted 30 lines · John Snow
Quoted 29 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +1
-0@@ -39,6 +39,7 @@ uint32_tbdrv_get_default_bitmap_granularity (BlockDriverState *bs); uint32_t bdrv_dirty_bitmap_granularity(const BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_enabled(BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen); const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap);
int64_tbdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap); DirtyBitmapStatusbdrv_dirty_bitmap_status(BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +0
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {Quoted 8 lines
Quoted 6 lines
block/dirty-bitmap.c +1
-0QemuMutex *mutex; HBitmap *bitmap; /* Dirty bitmap implementation */ HBitmap *meta; /* Meta dirty bitmap */ + bool frozen; /* Bitmap is frozen, it can't bemodified
+ through QMP */I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
it was your proposal)))
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01172.html
"
Your new use case here sounds like Frozen to me, but it simply does not have an anonymous successor to force it to be recognized as "frozen." We can add abool protectedorbool frozenfield to force recognition of this status and adjust the json documentation accordingly.I think then we'd have four recognized states:
Quoted 10 lines
FROZEN: Cannot be reset/deleted. Bitmap is in-use by a block job or other internal process. Bitmap is otherwise ACTIVE.
DISABLED: Not recording any writes (by choice.)
READONLY: Not able to record any writes (by necessity.)
ACTIVE: Normal bitmap status.Sound right?
"
Quoted 6 lines
I was afraid you'd say that :(
It's okay, anyway. I shouldn't let myself go so long between reviews like this, because you catch me changing my mind. Anyway, please go ahead with it. I don't want to delay you on something that works because I can't make up *my* mind.
Hm, if you remember, reusing "frozen" state was strange for me too. And it's not late to move to
1. make a new state: MIGRATION, which disallows qmp operations on bitmap
2. or just make them unnamed, so they can't be touched by qmp
anything is ok for me as well as leaving it as is. It's all little things, the core is patch 10.
"frozen" sounds like unchanged, but user will see dirty-count changing in query-block.
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 74 lines · Vladimir Sementsov-Ogievskiy
Quoted 66 lines · John Snow
Quoted 54 lines · Vladimir Sementsov-Ogievskiy
Quoted 33 lines · John Snow
Quoted 32 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
include/block/dirty-bitmap.h| 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++--2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +0
-0@@ -39,6 +39,7 @@ uint32_tbdrv_get_default_bitmap_granularity (BlockDriverState *bs);
uint32_tbdrv_dirty_bitmap_granularity(const BdrvDirtyBitmap *bitmap);
boolbdrv_dirty_bitmap_enabled(BdrvDirtyBitmap *bitmap); boolbdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap); +voidbdrv_dirty_bitmap_set_frozen(BdrvDirtyBitmap *bitmap, bool frozen);
const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap);int64_tbdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap); DirtyBitmapStatusbdrv_dirty_bitmap_status(BdrvDirtyBitmap *bitmap);block/dirty-bitmap.c +0
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {Quoted 8 lines
Quoted 6 lines
block/dirty-bitmap.c +0
-0QemuMutex *mutex;HBitmap *bitmap; /* Dirty bitmap implementation */ HBitmap *meta; /* Meta dirty bitmap */ + bool frozen; /* Bitmap is frozen, it can't be modified
+ through QMP */I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
it was your proposal)))
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01172.html
"
Your new use case here sounds like Frozen to me, but it simply does not have an anonymous successor to force it to be recognized as "frozen." We can add abool protectedorbool frozenfield to force recognition of this status and adjust the json documentation accordingly.I think then we'd have four recognized states:
Quoted 10 lines
FROZEN: Cannot be reset/deleted. Bitmap is in-use by a block job or other internal process. Bitmap is otherwise ACTIVE.
DISABLED: Not recording any writes (by choice.)
READONLY: Not able to record any writes (by necessity.)
ACTIVE: Normal bitmap status.Sound right?
"Quoted 6 lines
I was afraid you'd say that :(
It's okay, anyway. I shouldn't let myself go so long between reviews like this, because you catch me changing my mind. Anyway, please go ahead with it. I don't want to delay you on something that works because I can't make up *my* mind.
Quoted 5 lines
Hm, if you remember, reusing "frozen" state was strange for me too. And it's not
late to move to
1. make a new state: MIGRATION, which disallows qmp operations on bitmap
2. or just make them unnamed, so they can't be touched by qmp
"Migrating" is fine as a state name. You could probably announce this by having it be "frozen" in the usual way (it has a successor) and a new bool that lets you do whatever special handling you need to do for it.
Quoted 6 lines
anything is ok for me as well as leaving it as is. It's all little things, the core is patch 10.
"frozen" sounds like unchanged, but user will see dirty-count changing in query-block.
I guess it's a strange misnomer now... or maybe just always was a bad name, since it's not really "frozen" but rather "locked" in a way that the QMP user cannot interfere with it -- but it's still a live, functioning object.
Quoted 1 line
I'm remembering what I was talking about, but I think my preference is illustrably worse. I was trying to avoid boolean bloat by advocating re-use, but the re-use is kind of confusing...
I think I was hoping that a bitmap on the receiving end could simply be "frozen" in the usual way, in that it has a successor recording writes.
I think the way you want to handle it though is with different semantics for cleanup and recovery which makes it not quite the same state, which needs either a new bool or some such.
Go with what you think is cleanest at this point, including if you want to leave it alone. I don't want to cause you to respin it over bikeshedding.
--js
Re: [Qemu-devel] [PATCH v8 04/14] block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen
Quoted 74 lines · John Snow
Quoted 72 lines · Vladimir Sementsov-Ogievskiy
Quoted 71 lines · John Snow
Quoted 54 lines · Vladimir Sementsov-Ogievskiy
Quoted 33 lines · John Snow
Quoted 32 lines · Vladimir Sementsov-Ogievskiy
Make it possible to set bitmap 'frozen' without a successor. This is needed to protect the bitmap during outgoing bitmap postcopy migration.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/block/dirty-bitmap.h | 1 + block/dirty-bitmap.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-)include/block/dirty-bitmap.h +1
-0@@ -39,6 +39,7 @@ uint32_tbdrv_get_default_bitmap_granularity (BlockDriverState *bs); uint32_t bdrv_dirty_bitmap_granularity(const BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_enabled(BdrvDirtyBitmap *bitmap); bool bdrv_dirty_bitmap_frozen(BdrvDirtyBitmap *bitmap); +void bdrv_dirty_bitmap_set_frozen (BdrvDirtyBitmap *bitmap,bool frozen);const char *bdrv_dirty_bitmap_name(const BdrvDirtyBitmap *bitmap);
int64_tbdrv_dirty_bitmap_size(const BdrvDirtyBitmap *bitmap); DirtyBitmapStatus bdrv_dirty_bitmap_status(BdrvDirtyBitmap
*bitmap);block/dirty-bitmap.c +0
-0@@ -40,6 +40,8 @@ struct BdrvDirtyBitmap {Quoted 8 lines
Quoted 6 lines
block/dirty-bitmap.c +1
-0QemuMutex *mutex; HBitmap *bitmap; /* Dirty bitmap implementation */ HBitmap *meta; /* Meta dirty bitmap */ + bool frozen; /* Bitmap is frozen, it can't bemodified
+ through QMP */I hesitate, because this now means that we have two independent bits of state we need to update and maintain consistency with.
it was your proposal)))
https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg01172.html
"
Your new use case here sounds like Frozen to me, but it simply does not have an anonymous successor to force it to be recognized as "frozen." We can add abool protectedorbool frozenfield to force recognition of this status and adjust the json documentation accordingly.I think then we'd have four recognized states:
Quoted 10 lines
FROZEN: Cannot be reset/deleted. Bitmap is in-use by a block job or other internal process. Bitmap is otherwise ACTIVE.
DISABLED: Not recording any writes (by choice.)
READONLY: Not able to record any writes (by necessity.)
ACTIVE: Normal bitmap status.Sound right?
"I was afraid you'd say that :(
It's okay, anyway. I shouldn't let myself go so long between reviews like this, because you catch me changing my mind. Anyway, please go ahead with it. I don't want to delay you on something that works because I can't make up *my* mind.
Quoted 8 lines
Quoted 5 lines
Hm, if you remember, reusing "frozen" state was strange for me too. And it's not
late to move to
1. make a new state: MIGRATION, which disallows qmp operations on bitmap
2. or just make them unnamed, so they can't be touched by qmp"Migrating" is fine as a state name. You could probably announce this by having it be "frozen" in the usual way (it has a successor) and a new bool that lets you do whatever special handling you need to do for it.
create a successor and merge it in before postcopy stage? it is possible but I don't like it, looks like cheat..
Quoted 10 lines
Quoted 6 lines
anything is ok for me as well as leaving it as is. It's all little things, the core is patch 10.
"frozen" sounds like unchanged, but user will see dirty-count changing in query-block.
I guess it's a strange misnomer now... or maybe just always was a bad name, since it's not really "frozen" but rather "locked" in a way that the QMP user cannot interfere with it -- but it's still a live, functioning object.
so, may be the best way is to add LOCKED state? which mean:
bitmap is under some operation and is not operable by qmp. dirty-count may not reflect current state of the bitmap until operation end. and than we will be able to move to 'locked' instead of 'frozen' for backups to, and deprecate frozen state.
Quoted 16 lines
I'm remembering what I was talking about, but I think my preference is illustrably worse. I was trying to avoid boolean bloat by advocating re-use, but the re-use is kind of confusing...
I think I was hoping that a bitmap on the receiving end could simply be "frozen" in the usual way, in that it has a successor recording writes.
I think the way you want to handle it though is with different semantics for cleanup and recovery which makes it not quite the same state, which needs either a new bool or some such.
Go with what you think is cleanest at this point, including if you want to leave it alone. I don't want to cause you to respin it over bikeshedding.
--js
Signature · 2 lines
Best regards, Vladimir
PATCH v8 5/14 migration: introduce postcopy-only pending
In reply to Vladimir Sementsov-OgievskiyThere would be savevm states (dirty-bitmap) which can migrate only in postcopy stage. The corresponding pending is introduced here.
--- include/migration/register.h | 17 +++++++++++++++-- migration/savevm.h | 5 +++-- migration/block.c | 7 ++++--- migration/migration.c | 15 ++++++++------- migration/ram.c | 9 +++++---- migration/savevm.c | 13 ++++++++----- migration/trace-events | 2 +- 7 files changed, 44 insertions(+), 24 deletions(-)
include/migration/register.h +15 -2
@@ -37,8 +37,21 @@ typedef struct SaveVMHandlers {int (*save_setup)(QEMUFile *f,void *opaque);void (*save_live_pending)(QEMUFile *f,void *opaque,uint64_t threshold_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only); +/* Note for save_live_pending: +* - res_precopy_only is for data which must be migrated in precopy phase +* or in stopped state, in other words - before target vm start +* - res_compatible is for data which may be migrated in any phase +* - res_postcopy_only is for data which must be migrated in postcopy phase +* or in stopped state, in other words - after source vm stop +* +* Sum of res_postcopy_only, res_compatible and res_postcopy_only is the +* whole amount of pending data. +*/ + +LoadStateHandler *load_state;int (*load_setup)(QEMUFile *f,void *opaque);int (*load_cleanup)(void *opaque);
migration/savevm.h +3 -2
@@ -38,8 +38,9 @@ void qemu_savevm_state_complete_postcopy(QEMUFile *f);int qemu_savevm_state_complete_precopy (QEMUFile *f,bool iterable_only,bool inactivate_disks);void qemu_savevm_state_pending (QEMUFile *f,uint64_t max_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only);void qemu_savevm_send_ping (QEMUFile *f,uint32_t value);void qemu_savevm_send_open_return_path (QEMUFile *f);int qemu_savevm_send_packaged (QEMUFile *f,const uint8_t *buf,size_t len);
migration/block.c +4 -3
@@ -865,8 +865,9 @@ static int block_save_complete(QEMUFile *f, void *opaque) }static void block_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {/* Estimate pending number of bytes to send */ uint64_t pending;
@@ -887,7 +888,7 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,DPRINTF ("Enter save live pending %" PRIu64"\n" , pending);/* We don't do postcopy */ - *non_postcopiable_pending += pending; + *res_precopy_only += pending; }static int block_load (QEMUFile *f,void *opaque,int version_id)
migration/migration.c +8 -7
@@ -2216,20 +2216,21 @@ static void *migration_thread(void *opaque)uint64_t pending_size;if (!qemu_file_rate_limit (s->to_dst_file)) { -uint64_t pend_post, pend_nonpost; +uint64_t pend_pre, pend_compat, pend_post; -qemu_savevm_state_pending (s->to_dst_file, threshold_size, - &pend_nonpost, &pend_post); - pending_size = pend_nonpost + pend_post; +qemu_savevm_state_pending (s->to_dst_file, threshold_size, &pend_pre, + &pend_compat, &pend_post); + pending_size = pend_pre + pend_compat + pend_post;trace_migrate_pending (pending_size, threshold_size, - pend_post, pend_nonpost); + pend_pre, pend_compat, pend_post);if (pending_size && pending_size >= threshold_size) {/* Still a significant amount to transfer */ if (migrate_postcopy () && s->state !=MIGRATION_STATUS_POSTCOPY_ACTIVE && - pend_nonpost <= threshold_size && -atomic_read (&s->start_postcopy)) { + pend_pre <= threshold_size && + (atomic_read (&s->start_postcopy) || + (pend_pre + pend_compat <= threshold_size))) {if (!postcopy_start (s, &old_vm_running)) { current_active_state =MIGRATION_STATUS_POSTCOPY_ACTIVE ;
migration/ram.c +5 -4
@@ -2358,8 +2358,9 @@ static int ram_save_complete(QEMUFile *f, void *opaque) }static void ram_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {RAMState **temp = opaque;RAMState *rs = *temp;
@@ -2379,9 +2380,9 @@ static void ram_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,if (migrate_postcopy_ram ()) {/* We can do postcopy, and all the data is postcopiable */ - *postcopiable_pending += remaining_size; + *res_compatible += remaining_size; }else { - *non_postcopiable_pending += remaining_size; + *res_precopy_only += remaining_size; } }
migration/savevm.c +8 -5
@@ -1218,13 +1218,15 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,* for units that can't do postcopy. */ void qemu_savevm_state_pending (QEMUFile *f,uint64_t threshold_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {SaveStateEntry *se; - *res_non_postcopiable =0 ; - *res_postcopiable =0 ; + *res_precopy_only =0 ; + *res_compatible =0 ; + *res_postcopy_only =0 ; QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
@@ -1237,7 +1239,8 @@ void qemu_savevm_state_pending(QEMUFile *f, uint64_t threshold_size, } } se->ops->save_live_pending (f, se->opaque, threshold_size, - res_non_postcopiable, res_postcopiable); + res_precopy_only, res_compatible, + res_postcopy_only); } }
migration/trace-events +1 -1
@@ -86,7 +86,7 @@ migrate_fd_cleanup(void) "" migrate_fd_error(const char *error_desc) "error=%s" migrate_fd_cancel(void) "" migrate_handle_rp_req_pages(const char *rbname, size_t start, size_t len) "in %s at 0x%zx len 0x%zx" -migrate_pending(uint64_t size, uint64_t max, uint64_t post, uint64_t nonpost) "pending size %" PRIu64 " max %" PRIu64 " (post=%" PRIu64 " nonpost=%" PRIu64 ")" +migrate_pending(uint64_t size, uint64_t max, uint64_t pre, uint64_t compat, uint64_t post) "pending size %" PRIu64 " max %" PRIu64 " (pre = %" PRIu64 " compat=%" PRIu64 " post=%" PRIu64 ")" migrate_send_rp_message(int msg_type, uint16_t len) "%d: len %d" migration_completion_file_err(void) "" migration_completion_postcopy_end(void) ""
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 05/14] migration: introduce postcopy-only pending
Quoted 5 lines · * Vladimir Sementsov-Ogievskiy ([email protected]) wrote:
There would be savevm states (dirty-bitmap) which can migrate only in postcopy stage. The corresponding pending is introduced here.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Reviewed-by Juan Quintela <[email protected]>
Note the error patchew picked up on this for s390 which has cmma_save_pending.
Dave
Quoted 190 lines
--- include/migration/register.h | 17 +++++++++++++++-- migration/savevm.h | 5 +++-- migration/block.c | 7 ++++--- migration/migration.c | 15 ++++++++------- migration/ram.c | 9 +++++---- migration/savevm.c | 13 ++++++++----- migration/trace-events | 2 +- 7 files changed, 44 insertions(+), 24 deletions(-)include/migration/register.h +15
-2@@ -37,8 +37,21 @@ typedef struct SaveVMHandlers {int (*save_setup)(QEMUFile *f,void *opaque);void (*save_live_pending)(QEMUFile *f,void *opaque,uint64_t threshold_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only); +/* Note for save_live_pending: +* - res_precopy_only is for data which must be migrated in precopy phase +* or in stopped state, in other words - before target vm start +* - res_compatible is for data which may be migrated in any phase +* - res_postcopy_only is for data which must be migrated in postcopy phase +* or in stopped state, in other words - after source vm stop +* +* Sum of res_postcopy_only, res_compatible and res_postcopy_only is the +* whole amount of pending data. +*/ + +LoadStateHandler *load_state;int (*load_setup)(QEMUFile *f,void *opaque);int (*load_cleanup)(void *opaque);migration/savevm.h +3
-2@@ -38,8 +38,9 @@ void qemu_savevm_state_complete_postcopy(QEMUFile *f);int qemu_savevm_state_complete_precopy (QEMUFile *f,bool iterable_only,bool inactivate_disks);void qemu_savevm_state_pending (QEMUFile *f,uint64_t max_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only);void qemu_savevm_send_ping (QEMUFile *f,uint32_t value);void qemu_savevm_send_open_return_path (QEMUFile *f);int qemu_savevm_send_packaged (QEMUFile *f,const uint8_t *buf,size_t len);migration/block.c +4
-3@@ -865,8 +865,9 @@ static int block_save_complete(QEMUFile *f, void *opaque) }static void block_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {/* Estimate pending number of bytes to send */ uint64_t pending;@@ -887,7 +888,7 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,DPRINTF ("Enter save live pending %" PRIu64"\n" , pending);/* We don't do postcopy */ - *non_postcopiable_pending += pending; + *res_precopy_only += pending; }static int block_load (QEMUFile *f,void *opaque,int version_id)migration/migration.c +8
-7@@ -2216,20 +2216,21 @@ static void *migration_thread(void *opaque)uint64_t pending_size;if (!qemu_file_rate_limit (s->to_dst_file)) { -uint64_t pend_post, pend_nonpost; +uint64_t pend_pre, pend_compat, pend_post; -qemu_savevm_state_pending (s->to_dst_file, threshold_size, - &pend_nonpost, &pend_post); - pending_size = pend_nonpost + pend_post; +qemu_savevm_state_pending (s->to_dst_file, threshold_size, &pend_pre, + &pend_compat, &pend_post); + pending_size = pend_pre + pend_compat + pend_post;trace_migrate_pending (pending_size, threshold_size, - pend_post, pend_nonpost); + pend_pre, pend_compat, pend_post);if (pending_size && pending_size >= threshold_size) {/* Still a significant amount to transfer */ if (migrate_postcopy () && s->state !=MIGRATION_STATUS_POSTCOPY_ACTIVE && - pend_nonpost <= threshold_size && -atomic_read (&s->start_postcopy)) { + pend_pre <= threshold_size && + (atomic_read (&s->start_postcopy) || + (pend_pre + pend_compat <= threshold_size))) {if (!postcopy_start (s, &old_vm_running)) { current_active_state =MIGRATION_STATUS_POSTCOPY_ACTIVE ;migration/ram.c +5
-4@@ -2358,8 +2358,9 @@ static int ram_save_complete(QEMUFile *f, void *opaque) }static void ram_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {RAMState **temp = opaque;RAMState *rs = *temp;@@ -2379,9 +2380,9 @@ static void ram_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,if (migrate_postcopy_ram ()) {/* We can do postcopy, and all the data is postcopiable */ - *postcopiable_pending += remaining_size; + *res_compatible += remaining_size; }else { - *non_postcopiable_pending += remaining_size; + *res_precopy_only += remaining_size; } }migration/savevm.c +8
-5@@ -1218,13 +1218,15 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,* for units that can't do postcopy. */ void qemu_savevm_state_pending (QEMUFile *f,uint64_t threshold_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {SaveStateEntry *se; - *res_non_postcopiable =0 ; - *res_postcopiable =0 ; + *res_precopy_only =0 ; + *res_compatible =0 ; + *res_postcopy_only =0 ; QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {@@ -1237,7 +1239,8 @@ void qemu_savevm_state_pending(QEMUFile *f, uint64_t threshold_size, } } se->ops->save_live_pending (f, se->opaque, threshold_size, - res_non_postcopiable, res_postcopiable); + res_precopy_only, res_compatible, + res_postcopy_only); } }migration/trace-events +1
-1@@ -86,7 +86,7 @@ migrate_fd_cleanup(void) "" migrate_fd_error(const char *error_desc) "error=%s" migrate_fd_cancel(void) "" migrate_handle_rp_req_pages(const char *rbname, size_t start, size_t len) "in %s at 0x%zx len 0x%zx" -migrate_pending(uint64_t size, uint64_t max, uint64_t post, uint64_t nonpost) "pending size %" PRIu64 " max %" PRIu64 " (post=%" PRIu64 " nonpost=%" PRIu64 ")" +migrate_pending(uint64_t size, uint64_t max, uint64_t pre, uint64_t compat, uint64_t post) "pending size %" PRIu64 " max %" PRIu64 " (pre = %" PRIu64 " compat=%" PRIu64 " post=%" PRIu64 ")" migrate_send_rp_message(int msg_type, uint16_t len) "%d: len %d" migration_completion_file_err(void) "" migration_completion_postcopy_end(void) ""Signature · 1 line
2.11.1
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH v8 05/14] migration: introduce postcopy-only pending
Quoted 10 lines · Dr. David Alan Gilbert
Quoted 5 lines · * Vladimir Sementsov-Ogievskiy ([email protected]) wrote:
There would be savevm states (dirty-bitmap) which can migrate only in postcopy stage. The corresponding pending is introduced here.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Reviewed-by Juan Quintela <[email protected]>Note the error patchew picked up on this for s390 which has
cmma_save_pending.Dave
Thanks for pointing here, I'll update the patch.
Signature · 2 lines
Best regards, Vladimir
PATCH v8 5/14 migration: introduce postcopy-only pending
In reply to Vladimir Sementsov-OgievskiyThere would be savevm states (dirty-bitmap) which can migrate only in postcopy stage. The corresponding pending is introduced here.
---
8.1: add new version for cmma_save_pending too.
include/migration/register.h | 17 +++++++++++++++-- migration/savevm.h | 5 +++-- hw/s390x/s390-stattrib.c | 7 ++++--- migration/block.c | 7 ++++--- migration/migration.c | 15 ++++++++------- migration/ram.c | 9 +++++---- migration/savevm.c | 13 ++++++++----- migration/trace-events | 2 +- 8 files changed, 48 insertions(+), 27 deletions(-)
include/migration/register.h +15 -2
@@ -37,8 +37,21 @@ typedef struct SaveVMHandlers {int (*save_setup)(QEMUFile *f,void *opaque);void (*save_live_pending)(QEMUFile *f,void *opaque,uint64_t threshold_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only); +/* Note for save_live_pending: +* - res_precopy_only is for data which must be migrated in precopy phase +* or in stopped state, in other words - before target vm start +* - res_compatible is for data which may be migrated in any phase +* - res_postcopy_only is for data which must be migrated in postcopy phase +* or in stopped state, in other words - after source vm stop +* +* Sum of res_postcopy_only, res_compatible and res_postcopy_only is the +* whole amount of pending data. +*/ + +LoadStateHandler *load_state;int (*load_setup)(QEMUFile *f,void *opaque);int (*load_cleanup)(void *opaque);
migration/savevm.h +3 -2
@@ -38,8 +38,9 @@ void qemu_savevm_state_complete_postcopy(QEMUFile *f);int qemu_savevm_state_complete_precopy (QEMUFile *f,bool iterable_only,bool inactivate_disks);void qemu_savevm_state_pending (QEMUFile *f,uint64_t max_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable); +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only);void qemu_savevm_send_ping (QEMUFile *f,uint32_t value);void qemu_savevm_send_open_return_path (QEMUFile *f);int qemu_savevm_send_packaged (QEMUFile *f,const uint8_t *buf,size_t len);
hw/s390x/s390-stattrib.c +4 -3
@@ -183,15 +183,16 @@ static int cmma_save_setup(QEMUFile *f, void *opaque) }static void cmma_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {S390StAttribState *sas =S390_STATTRIB (opaque);S390StAttribClass *sac =S390_STATTRIB_GET_CLASS (sas);long long res = sac->get_dirtycount (sas);if (res >=0 ) { - *non_postcopiable_pending += res; + *res_precopy_only += res; } }
migration/block.c +4 -3
@@ -865,8 +865,9 @@ static int block_save_complete(QEMUFile *f, void *opaque) }static void block_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {/* Estimate pending number of bytes to send */ uint64_t pending;
@@ -887,7 +888,7 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,DPRINTF ("Enter save live pending %" PRIu64"\n" , pending);/* We don't do postcopy */ - *non_postcopiable_pending += pending; + *res_precopy_only += pending; }static int block_load (QEMUFile *f,void *opaque,int version_id)
migration/migration.c +8 -7
@@ -2216,20 +2216,21 @@ static void *migration_thread(void *opaque)uint64_t pending_size;if (!qemu_file_rate_limit (s->to_dst_file)) { -uint64_t pend_post, pend_nonpost; +uint64_t pend_pre, pend_compat, pend_post; -qemu_savevm_state_pending (s->to_dst_file, threshold_size, - &pend_nonpost, &pend_post); - pending_size = pend_nonpost + pend_post; +qemu_savevm_state_pending (s->to_dst_file, threshold_size, &pend_pre, + &pend_compat, &pend_post); + pending_size = pend_pre + pend_compat + pend_post;trace_migrate_pending (pending_size, threshold_size, - pend_post, pend_nonpost); + pend_pre, pend_compat, pend_post);if (pending_size && pending_size >= threshold_size) {/* Still a significant amount to transfer */ if (migrate_postcopy () && s->state !=MIGRATION_STATUS_POSTCOPY_ACTIVE && - pend_nonpost <= threshold_size && -atomic_read (&s->start_postcopy)) { + pend_pre <= threshold_size && + (atomic_read (&s->start_postcopy) || + (pend_pre + pend_compat <= threshold_size))) {if (!postcopy_start (s, &old_vm_running)) { current_active_state =MIGRATION_STATUS_POSTCOPY_ACTIVE ;
migration/ram.c +5 -4
@@ -2358,8 +2358,9 @@ static int ram_save_complete(QEMUFile *f, void *opaque) }static void ram_save_pending (QEMUFile *f,void *opaque,uint64_t max_size, -uint64_t *non_postcopiable_pending, -uint64_t *postcopiable_pending) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {RAMState **temp = opaque;RAMState *rs = *temp;
@@ -2379,9 +2380,9 @@ static void ram_save_pending(QEMUFile *f, void *opaque, uint64_t max_size,if (migrate_postcopy_ram ()) {/* We can do postcopy, and all the data is postcopiable */ - *postcopiable_pending += remaining_size; + *res_compatible += remaining_size; }else { - *non_postcopiable_pending += remaining_size; + *res_precopy_only += remaining_size; } }
migration/savevm.c +8 -5
@@ -1218,13 +1218,15 @@ int qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only,* for units that can't do postcopy. */ void qemu_savevm_state_pending (QEMUFile *f,uint64_t threshold_size, -uint64_t *res_non_postcopiable, -uint64_t *res_postcopiable) +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) {SaveStateEntry *se; - *res_non_postcopiable =0 ; - *res_postcopiable =0 ; + *res_precopy_only =0 ; + *res_compatible =0 ; + *res_postcopy_only =0 ; QTAILQ_FOREACH(se, &savevm_state.handlers, entry) {
@@ -1237,7 +1239,8 @@ void qemu_savevm_state_pending(QEMUFile *f, uint64_t threshold_size, } } se->ops->save_live_pending (f, se->opaque, threshold_size, - res_non_postcopiable, res_postcopiable); + res_precopy_only, res_compatible, + res_postcopy_only); } }
migration/trace-events +1 -1
@@ -86,7 +86,7 @@ migrate_fd_cleanup(void) "" migrate_fd_error(const char *error_desc) "error=%s" migrate_fd_cancel(void) "" migrate_handle_rp_req_pages(const char *rbname, size_t start, size_t len) "in %s at 0x%zx len 0x%zx" -migrate_pending(uint64_t size, uint64_t max, uint64_t post, uint64_t nonpost) "pending size %" PRIu64 " max %" PRIu64 " (post=%" PRIu64 " nonpost=%" PRIu64 ")" +migrate_pending(uint64_t size, uint64_t max, uint64_t pre, uint64_t compat, uint64_t post) "pending size %" PRIu64 " max %" PRIu64 " (pre = %" PRIu64 " compat=%" PRIu64 " post=%" PRIu64 ")" migrate_send_rp_message(int msg_type, uint16_t len) "%d: len %d" migration_completion_file_err(void) "" migration_completion_postcopy_end(void) ""
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8.1 05/14] migration: introduce postcopy-only pending
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
There would be savevm states (dirty-bitmap) which can migrate only in postcopy stage. The corresponding pending is introduced here.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Reviewed-by Juan Quintela <[email protected]>---
8.1: add new version for
cmma_save_pendingtoo.
I love "8.1" :)
With this fixup applied to fix the s390x build issue,
PATCH v8 6/14 qapi: add dirty-bitmaps migration capability
In reply to Vladimir Sementsov-Ogievskiy--- qapi/migration.json | 6 +++++- migration/migration.h | 1 + migration/migration.c | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-)
qapi/migration.json +5 -1
@@ -352,12 +352,16 @@ # # @x-multifd: Use more than one fd for migration (since 2.11) # +# @dirty-bitmaps: If enabled, QEMU will migrate named dirty bitmaps. +# (since 2.11) +# # Since: 1.2 ## { 'enum': 'MigrationCapability', 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks', 'compress', 'events', 'postcopy-ram', 'x-colo', 'release-ram', - 'block', 'return-path', 'pause-before-switchover', 'x-multifd' ] } + 'block', 'return-path', 'pause-before-switchover', 'x-multifd', + 'dirty-bitmaps' ] } ## # @MigrationCapabilityStatus:
migration/migration.h +1 -0
@@ -181,6 +181,7 @@ bool migrate_postcopy(void);bool migrate_release_ram (void );bool migrate_postcopy_ram (void );bool migrate_zero_blocks (void ); +bool migrate_dirty_bitmaps (void );bool migrate_auto_converge (void );bool migrate_use_multifd (void );
migration/migration.c +9 -0
@@ -1544,6 +1544,15 @@ int migrate_decompress_threads(void)return s->parameters.decompress_threads; } +bool migrate_dirty_bitmaps (void ) +{ +MigrationState *s; + + s =migrate_get_current (); + +return s->enabled_capabilities[MIGRATION_CAPABILITY_DIRTY_BITMAPS ]; +} +bool migrate_use_events (void ) {MigrationState *s;
Signature · 1 line
2.11.1
PATCH v8 7/14 migration: include migrate_dirty_bitmaps in migrate_postcopy
In reply to Vladimir Sementsov-OgievskiyEnable postcopy if dirty bitmap migration is endabled.
--- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
migration/migration.c +1 -1
@@ -1487,7 +1487,7 @@ bool migrate_postcopy_ram(void)bool migrate_postcopy (void ) { -return migrate_postcopy_ram (); +return migrate_postcopy_ram () ||migrate_dirty_bitmaps (); }bool migrate_auto_converge (void )
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 07/14] migration: include migrate_dirty_bitmaps in migrate_postcopy
Quoted 2 lines · Vladimir Sementsov-Ogievskiy
Enable postcopy if dirty bitmap migration is endabled.
"enabled"
Quoted 2 lines
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Reviewed-by Juan Quintela <[email protected]>
PATCH v8 8/14 migration/qemu-file: add qemu_put_counted_string()
In reply to Vladimir Sementsov-OgievskiyAdd function opposite to qemu_get_counted_string. qemu_put_counted_string puts one-byte length of the string (string should not be longer than 255 characters), and then it puts the string, without last zero byte.
--- migration/qemu-file.h | 2 ++ migration/qemu-file.c | 13 +++++++++++++ 2 files changed, 15 insertions(+)
migration/qemu-file.h +2 -0
@@ -174,4 +174,6 @@ size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset, ram_addr_t offset, size_t size, uint64_t *bytes_sent); +void qemu_put_counted_string (QEMUFile *f,const char *name); +#endif
migration/qemu-file.c +13 -0
@@ -734,6 +734,19 @@ size_t qemu_get_counted_string(QEMUFile *f, char buf[256]) }/* +* Put a string with one preceding byte containing its length. The length of +* the string should be less than 256. +*/ +void qemu_put_counted_string (QEMUFile *f,const char *str) +{ +size_t len =strlen (str); + +assert (len <256 ); +qemu_put_byte (f, len); +qemu_put_buffer (f, (const uint8_t *)str, len); +} + +/* * Set the blocking state of the QEMUFile. * Note: On some transports the OS only keeps a single blocking state for * both directions, and thus changing the blocking on the main
Signature · 1 line
2.11.1
PATCH v8 9/14 migration: add is_active_iterate handler
In reply to Vladimir Sementsov-OgievskiyOnly-postcopy savevm states (dirty-bitmap) don't need live iteration, so to disable them and stop transporting empty sections there is a new savevm handler.
--- include/migration/register.h | 1 + migration/savevm.c | 5 +++++ 2 files changed, 6 insertions(+)
include/migration/register.h +1 -0
@@ -25,6 +25,7 @@ typedef struct SaveVMHandlers {/* This runs both outside and inside the iothread lock. */ bool (*is_active)(void *opaque);bool (*has_postcopy)(void *opaque); +bool (*is_active_iterate)(void *opaque);/* This runs outside the iothread lock in the migration case, and * within the lock in the savevm case. The callback had better only
migration/savevm.c +5 -0
@@ -1026,6 +1026,11 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)continue ; } } +if (se->ops && se->ops->is_active_iterate) { +if (!se->ops->is_active_iterate (se->opaque)) { +continue ; + } + }/* * In the postcopy phase, any device that doesn't know how to * do postcopy should have saved it's state in the _complete
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 09/14] migration: add is_active_iterate handler
Quoted 6 lines · Vladimir Sementsov-Ogievskiy
Only-postcopy savevm states (dirty-bitmap) don't need live iteration, so to disable them and stop transporting empty sections there is a new savevm handler.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>Reviewed-by Juan Quintela <[email protected]>
PATCH v8 10/14 migration: add postcopy migration of dirty bitmaps
In reply to Vladimir Sementsov-OgievskiyPostcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the same node), then, if their granularities are the same the migration will be done, otherwise the error will be generated.
If destination qemu doesn't contain such bitmap it will be created.
--- include/migration/misc.h | 3 + migration/migration.h | 3 + migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++ migration/migration.c | 3 + migration/savevm.c | 2 + vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 14 + 8 files changed, 761 insertions(+) create mode 100644 migration/block-dirty-bitmap.c
include/migration/misc.h +3 -0
@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *);bool migration_in_postcopy_after_devices (MigrationState *);void migration_global_dump (Monitor *mon); +/* migration/block-dirty-bitmap.c */ +void dirty_bitmap_mig_init (void ); +#endif
migration/migration.h +3 -0
@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages (MigrationIncomingState *mis,const char * rbname,ram_addr_t start,size_t len); +void dirty_bitmap_mig_before_vm_start (void ); +void init_dirty_bitmap_incoming_migration (void ); +#endif
migration/block-dirty-bitmap.c new file +734 -0
734 lines not on this page · raw message
migration/migration.c +3 -0
@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current(void)memset (&mis_current,0 ,sizeof (MigrationIncomingState));qemu_mutex_init (&mis_current.rp_mutex);qemu_event_init (&mis_current.main_thread_load_event, false); + +init_dirty_bitmap_incoming_migration (); + once = true; }return &mis_current;
migration/savevm.c +2 -0
@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)trace_loadvm_postcopy_handle_run_vmstart (); +dirty_bitmap_mig_before_vm_start (); +if (autostart) {/* Hold onto your hats, starting the CPU */ vm_start ();
vl.c +1 -0
@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp)blk_mig_init ();ram_mig_init (); +dirty_bitmap_mig_init ();/* If the currently selected machine wishes to override the units-per-bus * property of its default HBA interface type, do so now. */
migration/Makefile.objs +1 -0
@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.o common-obj-y += qemu-file-channel.o common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o +common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.o
migration/trace-events +14 -0
@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" colo_failover_set_state(const char *new_state) "new state %s" + +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t nr_sectors, uint64_t data_size) "\n flags: 0x%x\n start_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n" +dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size) "pending %" PRIu64 " max: %" PRIu64 +dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t nr_sectors) "chunk: %" PRIu64 " %" PRIu32 +dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""
Signature · 1 line
2.11.1
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
Quoted 7 lines · Vladimir Sementsov-Ogievskiy
Postcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the same node), then, if their granularities are the same the migration will be done, otherwise the error will be generated.
Quoted 7 lines
If destination qemu doesn't contain such bitmap it will be created.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/migration/misc.h | 3 + migration/migration.h | 3 + migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++
Ouch :\
Quoted 8 lines
migration/migration.c | 3 + migration/savevm.c | 2 + vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 14 + 8 files changed, 761 insertions(+) create mode 100644 migration/block-dirty-bitmap.c
Organizationally, you introduce three new 'public' prototypes:
dirty_bitmap_mig_initdirty_bitmap_mig_before_vm_startinit_dirty_bitmap_incoming_migration
mig_init is advertised in migration/misc.h, the other two are in migration/migration.h.
The definitions for all three are in migration/block-dirty-bitmap.c
In pure naivety, I find it weird to have something that you use in migration.c and advertised in migration.h actually exist separately in block-dirty-bitmap.c; but maybe this is the sanest thing to do.
Quoted 42 lines
include/migration/misc.h +3
-0@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *);bool migration_in_postcopy_after_devices (MigrationState *);void migration_global_dump (Monitor *mon); +/* migration/block-dirty-bitmap.c */ +void dirty_bitmap_mig_init (void ); +#endif migration/migration.h +3
-0@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages (MigrationIncomingState *mis,const char * rbname,ram_addr_t start,size_t len); +void dirty_bitmap_mig_before_vm_start (void ); +void init_dirty_bitmap_incoming_migration (void ); +#endif migration/block-dirty-bitmap.c new file +12
-0@@ -0,0 +1,734 @@ +/* +* Block dirty bitmap postcopy migration +* +* Copyright IBM, Corp. 2009 +* Copyright (c) 2016-2017 Parallels International GmbH +* +* Authors: +* Liran Schour <[email protected]> +* Vladimir Sementsov-Ogievskiy <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory.
migration/block-dirty-bitmap.c line 22
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* This file is derived from migration/block.c, so it's author and IBM copyright +* are here, although content is quite different. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +* +* *** +* +* Here postcopy migration of dirty bitmaps is realized. Only named dirty +* bitmaps, associated with root nodes and non-root named nodes are migrated.
Put another way, only QMP-addressable bitmaps. Nodes without a name that are not the root have no way to be addressed.
migration/block-dirty-bitmap.c line 24
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu is already containing a dirty bitmap with the same name
"If the destination QEMU already contains a dirty bitmap with the same name"
migration/block-dirty-bitmap.c line 26
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* as a migrated bitmap (for the same node), then, if their granularities are +* the same the migration will be done, otherwise the error will be generated.
"an error"
migration/block-dirty-bitmap.c line 28
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu doesn't contain such bitmap it will be created.
"If the destination QEMU doesn't contain such a bitmap, it will be created."
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+* +* format of migration: +* +* # Header (shared for different chunk types) +* 1, 2 or 4 bytes: flags (see qemu_{put,put}_flags) +* [ 1 byte: node name size ] \ flags & DEVICE_NAME +* [ n bytes: node name ] / +* [ 1 byte: bitmap name size ] \ flags & BITMAP_NAME +* [ n bytes: bitmap name ] / +* +* # Start of bitmap migration (flags & START) +* header +* be64: granularity +* 1 byte: bitmap flags (corresponds to BdrvDirtyBitmap) +* bit 0 - bitmap is enabled +* bit 1 - bitmap is persistent +* bit 2 - bitmap is autoloading +* bits 3-7 - reserved, must be zero +* +* # Complete of bitmap migration (flags & COMPLETE) +* header +* +* # Data chunk of bitmap migration +* header
migration/block-dirty-bitmap.c line 62
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* be64: start sector +* be32: number of sectors +* [ be64: buffer size ] \ ! (flags & ZEROES) +* [ n bytes: buffer ] / +* +* The last chunk in stream should contain flags & EOS. The chunk may skip +* device and/or bitmap names, assuming them to be the same with the previous +* chunk. +*/ +
Been a while since I reviewed the format, but it seems sane.
Quoted 80 lines
migration/block-dirty-bitmap.c new file +80
-0+#include "qemu/osdep.h" +#include "block/block.h" +#include "block/block_int.h" +#include "sysemu/block-backend.h" +#include "qemu/main-loop.h" +#include "qemu/error-report.h" +#include "migration/misc.h" +#include "migration/migration.h" +#include "migration/qemu-file.h" +#include "migration/vmstate.h" +#include "migration/register.h" +#include "qemu/hbitmap.h" +#include "sysemu/sysemu.h" +#include "qemu/cutils.h" +#include "qapi/error.h" +#include "trace.h" + +#define CHUNK_SIZE (1 << 10) + +/* Flags occupy one, two or four bytes (Big Endian). The size is determined as +* follows: +* in first (most significant) byte bit 8 is clear --> one byte +* in first byte bit 8 is set --> two or four bytes, depending on second +* byte: +* | in second byte bit 8 is clear --> two bytes +* | in second byte bit 8 is set --> four bytes +*/ +#define DIRTY_BITMAP_MIG_FLAG_EOS 0x01 +#define DIRTY_BITMAP_MIG_FLAG_ZEROES 0x02 +#define DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME 0x04 +#define DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME 0x08 +#define DIRTY_BITMAP_MIG_FLAG_START 0x10 +#define DIRTY_BITMAP_MIG_FLAG_COMPLETE 0x20 +#define DIRTY_BITMAP_MIG_FLAG_BITS 0x40 + +#define DIRTY_BITMAP_MIG_EXTRA_FLAGS 0x80 + +#define DIRTY_BITMAP_MIG_START_FLAG_ENABLED 0x01 +#define DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT 0x02 +#define DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD 0x04 +#define DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK 0xf8 + +typedef struct DirtyBitmapMigBitmapState { +/* Written during setup phase. */ +BlockDriverState *bs; +const char *node_name; +BdrvDirtyBitmap *bitmap; +uint64_t total_sectors; +uint64_t sectors_per_chunk; +QSIMPLEQ_ENTRY (DirtyBitmapMigBitmapState) entry; +uint8_t flags; + +/* For bulk phase. */ +bool bulk_completed; +uint64_t cur_sector; +}DirtyBitmapMigBitmapState ; + +typedef struct DirtyBitmapMigState { + QSIMPLEQ_HEAD(dbms_list, DirtyBitmapMigBitmapState) dbms_list; + +bool bulk_completed; + +/* for send_bitmap_bits() */ +BlockDriverState *prev_bs; +BdrvDirtyBitmap *prev_bitmap; +}DirtyBitmapMigState ; + +typedef struct DirtyBitmapLoadState { +uint32_t flags; +char node_name[256 ]; +char bitmap_name[256 ]; +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +}DirtyBitmapLoadState ; + +static DirtyBitmapMigState dirty_bitmap_mig_state; + +typedef struct DirtyBitmapLoadBitmapState { + BlockDriverState *bs; + BdrvDirtyBitmap *bitmap;
migration/block-dirty-bitmap.c line 152
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+bool migrated; +} DirtyBitmapLoadBitmapState; +static GSList *enabled_bitmaps; +QemuMutex finish_lock; + +void init_dirty_bitmap_incoming_migration (void ) +{ +qemu_mutex_init (&finish_lock); +} +
This is a little odd as public interface. David, is there a nicer way to integrate in-migrate hooks? I guess it hasn't come up yet. Anyway, it might be nice to leave a comment here for now that says that the only caller is migration.c, and it will only ever call it once.
migration/block-dirty-bitmap.c line 165
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static uint32_t qemu_get_bitmap_flags (QEMUFile *f) +{ +uint8_t flags =qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<8 |qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<16 |qemu_get_be16 (f); + } + } + +return flags; +} +
ok
(Sorry for the per-function ACKs, it's just helpful for me to know which functions I followed execution of on paper to make sure I got everything in this big patch.)
migration/block-dirty-bitmap.c line 173
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void qemu_put_bitmap_flags (QEMUFile *f,uint32_t flags) +{ +/* The code currently do not send flags more than one byte */ +assert (!(flags & (0xffffff00 |DIRTY_BITMAP_MIG_EXTRA_FLAGS ))); + +qemu_put_byte (f, flags); +} +
ok
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void send_bitmap_header (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint32_t additional_flags) +{ +BlockDriverState *bs = dbms->bs; +BdrvDirtyBitmap *bitmap = dbms->bitmap; +uint32_t flags = additional_flags; +trace_send_bitmap_header_enter (); +
migration/block-dirty-bitmap.c line 191
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+if (bs != dirty_bitmap_mig_state.prev_bs) { + dirty_bitmap_mig_state.prev_bs = bs; + flags |=DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ; + } + +if (bitmap != dirty_bitmap_mig_state.prev_bitmap) { + dirty_bitmap_mig_state.prev_bitmap = bitmap; + flags |=DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ; + } +
I guess the idea here is that we might be able to skip the node name broadcast, leaving the possibilities as:
- new node and bitmap: send both
- new bitmap, but not node: send bitmap name only
- same for both: send neither
and that otherwise it's not possible to have a new node but "same bitmap" by nature of how the structures are organized.
migration/block-dirty-bitmap.c line 202
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+qemu_put_bitmap_flags (f, flags); + +if (flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +qemu_put_counted_string (f, dbms->node_name); + } + +if (flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +qemu_put_counted_string (f,bdrv_dirty_bitmap_name (bitmap)); + } +} +
ok
migration/block-dirty-bitmap.c line 209
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+static void send_bitmap_start (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_START ); +qemu_put_be32 (f,bdrv_dirty_bitmap_granularity (dbms->bitmap)); +qemu_put_byte (f, dbms->flags); +} +
ok
migration/block-dirty-bitmap.c line 214
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static void send_bitmap_complete (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_COMPLETE ); +} +
ok
Quoted 23 lines
migration/block-dirty-bitmap.c new file +23
-0+static void send_bitmap_bits (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint64_t start_sector,uint32_t nr_sectors) +{ +/* align for buffer_is_zero() */ +uint64_t align =4 *sizeof (long ); +uint64_t unaligned_size = +bdrv_dirty_bitmap_serialization_size ( + dbms->bitmap, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); +uint64_t buf_size = (unaligned_size + align -1 ) & ~(align -1 ); +uint8_t *buf =g_malloc0 (buf_size); +uint32_t flags =DIRTY_BITMAP_MIG_FLAG_BITS ; + +bdrv_dirty_bitmap_serialize_part ( + dbms->bitmap, buf, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); + +if (buffer_is_zero (buf, buf_size)) { +g_free (buf); + buf =NULL ; + flags |=DIRTY_BITMAP_MIG_FLAG_ZEROES ; + } +
migration/block-dirty-bitmap.c line 247
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_send_bitmap_bits (flags, start_sector, nr_sectors, buf_size); + +send_bitmap_header (f, dbms, flags); + +qemu_put_be64 (f, start_sector); +qemu_put_be32 (f, nr_sectors); + +/* if a block is zero we need to flush here since the network +* bandwidth is now a lot higher than the storage device bandwidth. +* thus if we queue zero blocks we slow down the migration. */
Can you elaborate on this for me?
Quoted 17 lines
migration/block-dirty-bitmap.c new file +17
-0+if (flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +qemu_fflush (f); + }else { +qemu_put_be64 (f, buf_size); +qemu_put_buffer (f, buf, buf_size); + } + +g_free (buf); +} + + +/* Called with iothread lock taken. */ + +static int init_dirty_bitmap_migration (void ) +{ +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap;
migration/block-dirty-bitmap.c line 274
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; +BdrvNextIterator it; + + dirty_bitmap_mig_state.bulk_completed = false; + dirty_bitmap_mig_state.prev_bs =NULL ; + dirty_bitmap_mig_state.prev_bitmap =NULL ; + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */
I can't imagine the situation it would arise in, but is it possible to have a named bitmap attached to a now-anonymous node?
Let's say we attach a bitmap to a root node, but then later we insert a filter or something above it and it's no longer at the root.
We should probably prohibit such things, or at the very least toss out an error here instead of silently continuing.
I think the only things valid to just *skip* are nameless bitmaps. Anything named we really ought to either migrate or error out over, I think, even if the circumstances leading to such a configuration are very unlikely.
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+continue ; + } + +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +if (bdrv_dirty_bitmap_frozen (bitmap)) { +error_report ("Can't migrate frozen dirty bitmap: '%s" , +bdrv_dirty_bitmap_name (bitmap));
migration/block-dirty-bitmap.c line 296
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -1 ; + } + } + } + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ +continue ; + }
Why two-pass? I guess because we don't have to tear anything down if we check for errors in advance?
I worry that if we need to amend the logic here that it's error-prone to update it in two places, so maybe we ought to just have one loop.
migration/block-dirty-bitmap.c line 306
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +bdrv_ref (bs); +bdrv_dirty_bitmap_set_frozen (bitmap, true); +
We could say that for any bitmap in the list of pending bitmaps to migrate, we know that we have to un-freeze it, since we never add any bitmaps that are frozen to our list.
migration/block-dirty-bitmap.c line 316
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ dbms =g_new0 (DirtyBitmapMigBitmapState,1 ); + dbms->bs = bs; + dbms->node_name =bdrv_get_node_name (bs); +if (!dbms->node_name || dbms->node_name[0 ] =='\0' ) { + dbms->node_name =bdrv_get_device_name (bs); + } + dbms->bitmap = bitmap; + dbms->total_sectors =bdrv_nb_sectors (bs); + dbms->sectors_per_chunk =CHUNK_SIZE *8 * +bdrv_dirty_bitmap_granularity (bitmap) >>BDRV_SECTOR_BITS ;
Eric may want to avoid checking in new code that thinks in sectors, but for the sake of review I don't mind right now.
(Sorry, Eric!)
migration/block-dirty-bitmap.c line 327
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+if (bdrv_dirty_bitmap_enabled (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_ENABLED ; + } +if (bdrv_dirty_bitmap_get_persistance (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ; + } +if (bdrv_dirty_bitmap_get_autoload (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ; + } + +bdrv_dirty_bitmap_set_persistance (bitmap, false);
Oh, this might be stranger to undo. Perhaps what we CAN do is limit the second pass to just this action and allow ourselves to unroll everything else.
Quoted 43 lines
migration/block-dirty-bitmap.c new file +43
-0+ +QSIMPLEQ_INSERT_TAIL (&dirty_bitmap_mig_state.dbms_list, + dbms, entry); + } + } + +return 0 ; +} + +/* Called with no lock taken. */ +static void bulk_phase_send_chunk (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +uint32_t nr_sectors =MIN (dbms->total_sectors - dbms->cur_sector, + dbms->sectors_per_chunk); + +send_bitmap_bits (f, dbms, dbms->cur_sector, nr_sectors); + + dbms->cur_sector += nr_sectors; +if (dbms->cur_sector >= dbms->total_sectors) { + dbms->bulk_completed = true; + } +} + +/* Called with no lock taken. */ +static void bulk_phase (QEMUFile *f,bool limit) +{ +DirtyBitmapMigBitmapState *dbms; + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +while (!dbms->bulk_completed) { +bulk_phase_send_chunk (f, dbms); +if (limit &&qemu_file_rate_limit (f)) { +return ; + } + } + } + + dirty_bitmap_mig_state.bulk_completed = true; +} + +/* Called with iothread lock taken. */ +static void dirty_bitmap_mig_cleanup (void ) +{
migration/block-dirty-bitmap.c line 380
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; + +while ((dbms =QSIMPLEQ_FIRST (&dirty_bitmap_mig_state.dbms_list)) !=NULL ) { +QSIMPLEQ_REMOVE_HEAD (&dirty_bitmap_mig_state.dbms_list, entry); +bdrv_dirty_bitmap_set_frozen (dbms->bitmap, false); +bdrv_unref (dbms->bs); +g_free (dbms); + } +} +
ok
migration/block-dirty-bitmap.c line 386
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+/* for SaveVMHandlers */ +static void dirty_bitmap_save_cleanup (void *opaque) +{ +dirty_bitmap_mig_cleanup (); +} +
ok
migration/block-dirty-bitmap.c line 399
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static int dirty_bitmap_save_iterate (QEMUFile *f,void *opaque) +{ +trace_dirty_bitmap_save_iterate (migration_in_postcopy ()); + +if (migration_in_postcopy () && !dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, true); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return dirty_bitmap_mig_state.bulk_completed; +} +
What's the purpose behind doing bulk save both here and in dirty_bitmap_save_complete? Is there a path that isn't guaranteed to call one of the completion functions?
(The way it's coded seems like it'll work fine, but I'm curious about what looks like a redundancy at a glance.)
migration/block-dirty-bitmap.c line 410
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+/* Called with iothread lock taken. */ + +static int dirty_bitmap_save_complete (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms; +trace_dirty_bitmap_save_complete_enter (); + +if (!dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, false); + } +
funny now that we don't actually really iterate over the data, and the bulk phase is now really the _only_ phase :)
migration/block-dirty-bitmap.c line 422
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_complete (f, dbms); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +trace_dirty_bitmap_save_complete_finish (); + +dirty_bitmap_mig_cleanup (); +return 0 ; +} +
ok
Quoted 16 lines
migration/block-dirty-bitmap.c new file +16
-0+static void dirty_bitmap_save_pending (QEMUFile *f,void *opaque, +uint64_t max_size, +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) +{ +DirtyBitmapMigBitmapState *dbms; +uint64_t pending =0 ; + +qemu_mutex_lock_iothread (); + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +uint64_t gran =bdrv_dirty_bitmap_granularity (dbms->bitmap); +uint64_t sectors = dbms->bulk_completed ?0 : + dbms->total_sectors - dbms->cur_sector; +
migration/block-dirty-bitmap.c line 448
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ pending += (sectors *BDRV_SECTOR_SIZE + gran -1 ) / gran; + } + +qemu_mutex_unlock_iothread (); + +trace_dirty_bitmap_save_pending (pending, max_size); + + *res_postcopy_only += pending; +} +
ok
Quoted 19 lines
migration/block-dirty-bitmap.c new file +19
-0+/* First occurrence of this bitmap. It should be created if doesn't exist */ +static int dirty_bitmap_load_start (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; +uint32_t granularity =qemu_get_be32 (f); +uint8_t flags =qemu_get_byte (f); + +if (!s->bitmap) { + s->bitmap =bdrv_create_dirty_bitmap (s->bs, granularity, + s->bitmap_name, &local_err); +if (!s->bitmap) { +error_report_err (local_err); +return -EINVAL ; + } + }else { +uint32_t dest_granularity = +bdrv_dirty_bitmap_granularity (s->bitmap); +if (dest_granularity != granularity) { + error_report("Error: "
migration/block-dirty-bitmap.c line 477
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+"Migrated bitmap granularity (%" PRIu32") " +"doesn't match the destination bitmap '%s' " +"granularity (%" PRIu32")" , + granularity, +bdrv_dirty_bitmap_name (s->bitmap), + dest_granularity); +return -EINVAL ; + } + } +
I'm a fan of auto-creating the bitmaps. Do you have a use-case for why creating them ahead of time is better, or are you just attempting to be flexible?
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK ) { +error_report ("Unknown flags in migrated dirty bitmap header: %x" , + flags); +return -EINVAL ;
migration/block-dirty-bitmap.c line 491
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (flags &DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ) { +bdrv_dirty_bitmap_set_persistance (s->bitmap, true); + } +if (flags &DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ) { +bdrv_dirty_bitmap_set_autoload (s->bitmap, true); + } + +bdrv_disable_dirty_bitmap (s->bitmap);
OK, so we start them off as disabled, and
migration/block-dirty-bitmap.c line 500
Quoted 9 lines
migration/block-dirty-bitmap.c new file +9
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_ENABLED ) { +DirtyBitmapLoadBitmapState *b; + +bdrv_dirty_bitmap_create_successor (s->bs, s->bitmap, &local_err); +if (local_err) { +error_report_err (local_err); +return -EINVAL ; + } +
If they weren't disabled on the host, we create a successor to record writes while we wait for the rest of the data to arrive.
migration/block-dirty-bitmap.c line 505
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+ b =g_new (DirtyBitmapLoadBitmapState,1 ); + b->bs = s->bs; + b->bitmap = s->bitmap; + b->migrated = false; + enabled_bitmaps =g_slist_prepend (enabled_bitmaps, b);
And we make a note of which ones we were supposed to re-enable.
migration/block-dirty-bitmap.c line 335
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ } + +return 0 ; +}
OK
migration/block-dirty-bitmap.c line 511
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ +void dirty_bitmap_mig_before_vm_start (void )
Similarly, I guess I find it weird that this is a callable interface.
David, no nice hook for just-prior-to-vm-start calls? a .postcopy_pivot() hook or something might be nice..
migration/block-dirty-bitmap.c line 519
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+{ +GSList *item; + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; +
Anyway, if I am reading this right; we call this in the postcopy phase prior to receiving the entirety of the bitmaps (so before receiving COMPLETE) ... right?
migration/block-dirty-bitmap.c line 521
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+if (b->migrated) { +bdrv_enable_dirty_bitmap (b->bitmap);
...or, am I confused, and we might receive a COMPLETE event prior to the postcopy pivot?
Anyway, I suppose this code says "If we received the entire bitmap, go ahead and enable it."
migration/block-dirty-bitmap.c line 523
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ }else { +bdrv_dirty_bitmap_enable_successor (b->bitmap);
And this says "If we haven't received it yet, enable the successor to record writes until we get the rest of the data."
Quoted 14 lines
migration/block-dirty-bitmap.c new file +14
-0+ } + +g_free (b); + } + +g_slist_free (enabled_bitmaps); + enabled_bitmaps =NULL ; + +qemu_mutex_unlock (&finish_lock); +} + +static void dirty_bitmap_load_complete (QEMUFile *f,DirtyBitmapLoadState *s) +{ +GSList *item;
migration/block-dirty-bitmap.c line 547
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_dirty_bitmap_load_complete (); +bdrv_dirty_bitmap_deserialize_finish (s->bitmap); + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; + +if (b->bitmap == s->bitmap) { + b->migrated = true;
we can probably break; here now, right?
(This whole stanza is a little strange, can't we cache the active DirtyBitmapLoadBitmapState in DirtyBitmapLoadState? I guess not, because we're looking up the BdrvDirtyBitmap itself and caching that instead, so either way we have some kind of lookup on every context switch.)
migration/block-dirty-bitmap.c line 559
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ } + } + +if (bdrv_dirty_bitmap_frozen (s->bitmap)) { +if (enabled_bitmaps ==NULL ) { +/* in postcopy */ +AioContext *aio_context =bdrv_get_aio_context (s->bs); +aio_context_acquire (aio_context); + +bdrv_reclaim_dirty_bitmap (s->bs, s->bitmap, &error_abort); +bdrv_enable_dirty_bitmap (s->bitmap); +
OK, so if enabled_bitmaps is gone, that means we already pivoted and we're live on the receiving end here. We merge the successor into the fully deserialized bitmap and enable it.
migration/block-dirty-bitmap.c line 563
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+aio_context_release (aio_context); + }else { +/* target not started, successor is empty */ +bdrv_dirty_bitmap_release_successor (s->bs, s->bitmap);
Otherwise we just trash the successor. Did we really need a new call for this? I suppose it's faster than merging a 0-bit bitmap, but the additional API complexity for the speed win here seems like premature optimization.
...well, you already wrote it, so I won't argue.
Quoted 31 lines
migration/block-dirty-bitmap.c new file +31
-0+ } + } + +qemu_mutex_unlock (&finish_lock); +} + +static int dirty_bitmap_load_bits (QEMUFile *f,DirtyBitmapLoadState *s) +{ +uint64_t first_byte =qemu_get_be64 (f) <<BDRV_SECTOR_BITS ; +uint64_t nr_bytes = (uint64_t )qemu_get_be32 (f) <<BDRV_SECTOR_BITS ; +trace_dirty_bitmap_load_bits_enter (first_byte >>BDRV_SECTOR_BITS , + nr_bytes >>BDRV_SECTOR_BITS ); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +trace_dirty_bitmap_load_bits_zeroes (); +bdrv_dirty_bitmap_deserialize_zeroes (s->bitmap, first_byte, nr_bytes, + false); + }else { +uint8_t *buf; +uint64_t buf_size =qemu_get_be64 (f); +uint64_t needed_size = +bdrv_dirty_bitmap_serialization_size (s->bitmap, + first_byte, nr_bytes); + +if (needed_size > buf_size) { +error_report ("Error: Migrated bitmap granularity doesn't " +"match the destination bitmap '%s' granularity" , +bdrv_dirty_bitmap_name (s->bitmap)); +return -EINVAL ; + } +
migration/block-dirty-bitmap.c line 604
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ buf =g_malloc (buf_size); +qemu_get_buffer (f, buf, buf_size); +bdrv_dirty_bitmap_deserialize_part (s->bitmap, buf, first_byte, nr_bytes, + false); +g_free (buf); + } + +return 0 ; +} +
ok
Quoted 34 lines
migration/block-dirty-bitmap.c new file +34
-0+static int dirty_bitmap_load_header (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; + s->flags =qemu_get_bitmap_flags (f); +trace_dirty_bitmap_load_header (s->flags); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +if (!qemu_get_counted_string (f, s->node_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bs =bdrv_lookup_bs (s->node_name, s->node_name, &local_err); +if (!s->bs) { +error_report_err (local_err); +return -EINVAL ; + } + }else if (!s->bs) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +if (!qemu_get_counted_string (f, s->bitmap_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bitmap =bdrv_find_dirty_bitmap (s->bs, s->bitmap_name); + +/* bitmap may be NULL here, it wouldn't be an error if it is the +* first occurrence of the bitmap */ +if (!s->bitmap && !(s->flags &DIRTY_BITMAP_MIG_FLAG_START )) { +error_report ("Error: unknown dirty bitmap " +"'%s' for block device '%s'" , + s->bitmap_name, s->node_name);
migration/block-dirty-bitmap.c line 648
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -EINVAL ; + } + }else if (!s->bitmap) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +return 0 ; +} +
ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+static int dirty_bitmap_load (QEMUFile *f,void *opaque,int version_id) +{ +static DirtyBitmapLoadState s; +int ret =0 ; + +trace_dirty_bitmap_load_enter (); + +if (version_id !=1 ) { +return -EINVAL ; + } + + do { + dirty_bitmap_load_header(f, &s); + + if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { + ret = dirty_bitmap_load_start(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_COMPLETE) { + dirty_bitmap_load_complete(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_BITS) { + ret = dirty_bitmap_load_bits(f, &s); + } + + if (!ret) { + ret = qemu_file_get_error(f);
migration/block-dirty-bitmap.c line 682
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (ret) { +return ret; + } + }while (!(s.flags &DIRTY_BITMAP_MIG_FLAG_EOS )); + +trace_dirty_bitmap_load_success (); +return 0 ; +}
OK
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +static int dirty_bitmap_save_setup (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms =NULL ; +if (init_dirty_bitmap_migration () <0 ) { +return -1 ;
migration/block-dirty-bitmap.c line 698
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_start (f, dbms); + } +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return 0 ; +} +
ok
migration/block-dirty-bitmap.c line 703
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active (void *opaque) +{ +return migrate_dirty_bitmaps (); +} +
ok
migration/block-dirty-bitmap.c line 708
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active_iterate (void *opaque) +{ +return dirty_bitmap_is_active (opaque) && !runstate_is_running (); +} +
On second thought, in patch 9, can you add a little tiny bit of documentation text explaining the exact nature of this callback?
Is the second portion of the conditional here so that once we reach the postcopy state that .is_active_iterate starts returning true?
"ok" if I'm reading this right, but it might be helped along by a little comment.
migration/block-dirty-bitmap.c line 713
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_has_postcopy (void *opaque) +{ +return true; +} +
ok! :)
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+static SaveVMHandlers savevm_dirty_bitmap_handlers = { + .save_setup = dirty_bitmap_save_setup, + .save_live_complete_postcopy = dirty_bitmap_save_complete, + .save_live_complete_precopy = dirty_bitmap_save_complete, + .has_postcopy = dirty_bitmap_has_postcopy, + .save_live_pending = dirty_bitmap_save_pending, + .save_live_iterate = dirty_bitmap_save_iterate, + .is_active_iterate = dirty_bitmap_is_active_iterate, + .load_state = dirty_bitmap_load, + .save_cleanup = dirty_bitmap_save_cleanup, + .is_active = dirty_bitmap_is_active,
migration/block-dirty-bitmap.c line 734
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+}; + +void dirty_bitmap_mig_init (void ) +{ +QSIMPLEQ_INIT (&dirty_bitmap_mig_state.dbms_list); + +register_savevm_live (NULL ,"dirty-bitmap" ,0 ,1 , + &savevm_dirty_bitmap_handlers, + &dirty_bitmap_mig_state); +}
ok
dgilbert, would it be worth registering a block-driver-like registration trick that automatically invokes these functions instead of having to hook them up in vl.c? the more we add, the more hacky it looks to not have some subsystem-wide registration hook.
Quoted 64 lines
migration/migration.c +3
-0@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current(void)memset (&mis_current,0 ,sizeof (MigrationIncomingState));qemu_mutex_init (&mis_current.rp_mutex);qemu_event_init (&mis_current.main_thread_load_event, false); + +init_dirty_bitmap_incoming_migration (); + once = true; }return &mis_current;migration/savevm.c +2
-0@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)trace_loadvm_postcopy_handle_run_vmstart (); +dirty_bitmap_mig_before_vm_start (); +if (autostart) {/* Hold onto your hats, starting the CPU */ vm_start ();vl.c +1
-0@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp)blk_mig_init ();ram_mig_init (); +dirty_bitmap_mig_init ();/* If the currently selected machine wishes to override the units-per-bus * property of its default HBA interface type, do so now. */ migration/Makefile.objs +1
-0@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.o common-obj-y += qemu-file-channel.o common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o +common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.omigration/trace-events +4
-0@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" colo_failover_set_state(const char *new_state) "new state %s" + +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t nr_sectors, uint64_t data_size) "\n flags: 0x%x\n start_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n"
migration/trace-events colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" · line 243
Quoted 10 lines
migration/trace-events +10
-0+dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size) "pending %" PRIu64 " max: %" PRIu64 +dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t nr_sectors) "chunk: %" PRIu64 " %" PRIu32 +dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""
OK, I think everything here is probably in order, and it's only my understanding that is a barrier at this point. Help me understand the rest of this patch and I'll re-pester migration to get this staged for qemu-next.
--js
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
Quoted 288 lines · John Snow
Quoted 7 lines · Vladimir Sementsov-Ogievskiy
Postcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the same node), then, if their granularities are the same the migration will be done, otherwise the error will be generated.
Quoted 7 lines
If destination qemu doesn't contain such bitmap it will be created.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/migration/misc.h | 3 + migration/migration.h | 3 + migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++Ouch :\
Quoted 8 lines
migration/migration.c | 3 + migration/savevm.c | 2 + vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 14 + 8 files changed, 761 insertions(+)create mode 100644
migration/block-dirty-bitmap.cOrganizationally, you introduce three new 'public' prototypes:
dirty_bitmap_mig_initdirty_bitmap_mig_before_vm_startinit_dirty_bitmap_incoming_migration
mig_initis advertised inmigration/misc.h, the other two are inmigration/migration.h.
The definitions for all three are inmigration/block-dirty-bitmap.cIn pure naivety, I find it weird to have something that you use in
migration.cand advertised inmigration.hactually exist separately inblock-dirty-bitmap.c; but maybe this is the sanest thing to do.Quoted 42 lines
include/migration/misc.h +3
-0@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *);bool migration_in_postcopy_after_devices (MigrationState *);void migration_global_dump (Monitor *mon); +/* migration/block-dirty-bitmap.c */ +void dirty_bitmap_mig_init (void ); +#endif migration/migration.h +3
-0@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages (MigrationIncomingState *mis,const char * rbname,ram_addr_t start,size_t len); +void dirty_bitmap_mig_before_vm_start (void ); +void init_dirty_bitmap_incoming_migration (void ); +#endif migration/block-dirty-bitmap.c new file +12
-0@@ -0,0 +1,734 @@ +/* +* Block dirty bitmap postcopy migration +* +* Copyright IBM, Corp. 2009 +* Copyright (c) 2016-2017 Parallels International GmbH +* +* Authors: +* Liran Schour <[email protected]> +* Vladimir Sementsov-Ogievskiy <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. migration/block-dirty-bitmap.c line 22
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* This file is derived from migration/block.c, so it's author and IBM copyright +* are here, although content is quite different. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +* +* *** +* +* Here postcopy migration of dirty bitmaps is realized. Only named dirty +* bitmaps, associated with root nodes and non-root named nodes are migrated. Put another way, only QMP-addressable bitmaps. Nodes without a name that are not the root have no way to be addressed.
migration/block-dirty-bitmap.c line 24
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu is already containing a dirty bitmap with the same name "If the destination QEMU already contains a dirty bitmap with the same name"
migration/block-dirty-bitmap.c line 26
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* as a migrated bitmap (for the same node), then, if their granularities are +* the same the migration will be done, otherwise the error will be generated. "an error"
migration/block-dirty-bitmap.c line 28
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu doesn't contain such bitmap it will be created. "If the destination QEMU doesn't contain such a bitmap, it will be created."
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+* +* format of migration: +* +* # Header (shared for different chunk types) +* 1, 2 or 4 bytes: flags (see qemu_{put,put}_flags) +* [ 1 byte: node name size ] \ flags & DEVICE_NAME +* [ n bytes: node name ] / +* [ 1 byte: bitmap name size ] \ flags & BITMAP_NAME +* [ n bytes: bitmap name ] / +* +* # Start of bitmap migration (flags & START) +* header +* be64: granularity +* 1 byte: bitmap flags (corresponds to BdrvDirtyBitmap) +* bit 0 - bitmap is enabled +* bit 1 - bitmap is persistent +* bit 2 - bitmap is autoloading +* bits 3-7 - reserved, must be zero +* +* # Complete of bitmap migration (flags & COMPLETE) +* header +* +* # Data chunk of bitmap migration +* header migration/block-dirty-bitmap.c line 62
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* be64: start sector +* be32: number of sectors +* [ be64: buffer size ] \ ! (flags & ZEROES) +* [ n bytes: buffer ] / +* +* The last chunk in stream should contain flags & EOS. The chunk may skip +* device and/or bitmap names, assuming them to be the same with the previous +* chunk. +*/ +Been a while since I reviewed the format, but it seems sane.
Quoted 80 lines
migration/block-dirty-bitmap.c new file +80
-0+#include "qemu/osdep.h" +#include "block/block.h" +#include "block/block_int.h" +#include "sysemu/block-backend.h" +#include "qemu/main-loop.h" +#include "qemu/error-report.h" +#include "migration/misc.h" +#include "migration/migration.h" +#include "migration/qemu-file.h" +#include "migration/vmstate.h" +#include "migration/register.h" +#include "qemu/hbitmap.h" +#include "sysemu/sysemu.h" +#include "qemu/cutils.h" +#include "qapi/error.h" +#include "trace.h" + +#define CHUNK_SIZE (1 << 10) + +/* Flags occupy one, two or four bytes (Big Endian). The size is determined as +* follows: +* in first (most significant) byte bit 8 is clear --> one byte +* in first byte bit 8 is set --> two or four bytes, depending on second +* byte: +* | in second byte bit 8 is clear --> two bytes +* | in second byte bit 8 is set --> four bytes +*/ +#define DIRTY_BITMAP_MIG_FLAG_EOS 0x01 +#define DIRTY_BITMAP_MIG_FLAG_ZEROES 0x02 +#define DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME 0x04 +#define DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME 0x08 +#define DIRTY_BITMAP_MIG_FLAG_START 0x10 +#define DIRTY_BITMAP_MIG_FLAG_COMPLETE 0x20 +#define DIRTY_BITMAP_MIG_FLAG_BITS 0x40 + +#define DIRTY_BITMAP_MIG_EXTRA_FLAGS 0x80 + +#define DIRTY_BITMAP_MIG_START_FLAG_ENABLED 0x01 +#define DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT 0x02 +#define DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD 0x04 +#define DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK 0xf8 + +typedef struct DirtyBitmapMigBitmapState { +/* Written during setup phase. */ +BlockDriverState *bs; +const char *node_name; +BdrvDirtyBitmap *bitmap; +uint64_t total_sectors; +uint64_t sectors_per_chunk; +QSIMPLEQ_ENTRY (DirtyBitmapMigBitmapState) entry; +uint8_t flags; + +/* For bulk phase. */ +bool bulk_completed; +uint64_t cur_sector; +}DirtyBitmapMigBitmapState ; + +typedef struct DirtyBitmapMigState { + QSIMPLEQ_HEAD(dbms_list, DirtyBitmapMigBitmapState) dbms_list; + +bool bulk_completed; + +/* for send_bitmap_bits() */ +BlockDriverState *prev_bs; +BdrvDirtyBitmap *prev_bitmap; +}DirtyBitmapMigState ; + +typedef struct DirtyBitmapLoadState { +uint32_t flags; +char node_name[256 ]; +char bitmap_name[256 ]; +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +}DirtyBitmapLoadState ; + +static DirtyBitmapMigState dirty_bitmap_mig_state; + +typedef struct DirtyBitmapLoadBitmapState { + BlockDriverState *bs; + BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 152
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+bool migrated; +} DirtyBitmapLoadBitmapState; +static GSList *enabled_bitmaps; +QemuMutex finish_lock; + +void init_dirty_bitmap_incoming_migration (void ) +{ +qemu_mutex_init (&finish_lock); +} +This is a little odd as public interface. David, is there a nicer way to integrate in-migrate hooks? I guess it hasn't come up yet. Anyway, it might be nice to leave a comment here for now that says that the only caller is
migration.c, and it will only ever call it once.migration/block-dirty-bitmap.c line 165
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static uint32_t qemu_get_bitmap_flags (QEMUFile *f) +{ +uint8_t flags =qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<8 |qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<16 |qemu_get_be16 (f); + } + } + +return flags; +} +ok
(Sorry for the per-function ACKs, it's just helpful for me to know which functions I followed execution of on paper to make sure I got everything in this big patch.)
migration/block-dirty-bitmap.c line 173
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void qemu_put_bitmap_flags (QEMUFile *f,uint32_t flags) +{ +/* The code currently do not send flags more than one byte */ +assert (!(flags & (0xffffff00 |DIRTY_BITMAP_MIG_EXTRA_FLAGS ))); + +qemu_put_byte (f, flags); +} +ok
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void send_bitmap_header (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint32_t additional_flags) +{ +BlockDriverState *bs = dbms->bs; +BdrvDirtyBitmap *bitmap = dbms->bitmap; +uint32_t flags = additional_flags; +trace_send_bitmap_header_enter (); +migration/block-dirty-bitmap.c line 191
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+if (bs != dirty_bitmap_mig_state.prev_bs) { + dirty_bitmap_mig_state.prev_bs = bs; + flags |=DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ; + } + +if (bitmap != dirty_bitmap_mig_state.prev_bitmap) { + dirty_bitmap_mig_state.prev_bitmap = bitmap; + flags |=DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ; + } +I guess the idea here is that we might be able to skip the node name broadcast, leaving the possibilities as:
Quoted 3 lines
- new node and bitmap: send both
- new bitmap, but not node: send bitmap name only
- same for both: send neither
yes
Quoted 3 lines
and that otherwise it's not possible to have a new node but "same bitmap" by nature of how the structures are organized.
I hope we don't have bitmaps, shared between nodes)
Quoted 56 lines
migration/block-dirty-bitmap.c line 202
Quoted 12 lines
migration/block-dirty-bitmap.c new file +11
-0+qemu_put_bitmap_flags (f, flags); + +if (flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +qemu_put_counted_string (f, dbms->node_name); + } + +if (flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +qemu_put_counted_string (f,bdrv_dirty_bitmap_name (bitmap)); + } +} +ok
migration/block-dirty-bitmap.c line 209
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+static void send_bitmap_start (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_START ); +qemu_put_be32 (f,bdrv_dirty_bitmap_granularity (dbms->bitmap)); +qemu_put_byte (f, dbms->flags); +} +ok
migration/block-dirty-bitmap.c line 214
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static void send_bitmap_complete (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_COMPLETE ); +} +ok
Quoted 26 lines
migration/block-dirty-bitmap.c new file +26
-0+static void send_bitmap_bits (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint64_t start_sector,uint32_t nr_sectors) +{ +/* align for buffer_is_zero() */ +uint64_t align =4 *sizeof (long ); +uint64_t unaligned_size = +bdrv_dirty_bitmap_serialization_size ( + dbms->bitmap, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); +uint64_t buf_size = (unaligned_size + align -1 ) & ~(align -1 ); +uint8_t *buf =g_malloc0 (buf_size); +uint32_t flags =DIRTY_BITMAP_MIG_FLAG_BITS ; + +bdrv_dirty_bitmap_serialize_part ( + dbms->bitmap, buf, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); + +if (buffer_is_zero (buf, buf_size)) { +g_free (buf); + buf =NULL ; + flags |=DIRTY_BITMAP_MIG_FLAG_ZEROES ; + } + +trace_send_bitmap_bits (flags, start_sector, nr_sectors, buf_size); + +send_bitmap_header (f, dbms, flags);
Quoted 8 lines
migration/block-dirty-bitmap.c line 247
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+ +qemu_put_be64 (f, start_sector); +qemu_put_be32 (f, nr_sectors); + +/* if a block is zero we need to flush here since the network +* bandwidth is now a lot higher than the storage device bandwidth. +* thus if we queue zero blocks we slow down the migration. */ Can you elaborate on this for me?
it comes from migration/block.c, as it was a prototype for dirty bitmaps migration. May be the original thought was to give destination storage more time to handle write-zeros? It may make sense if it can't do it fast but really writes zeros.
Quoted 34 lines
Quoted 18 lines
migration/block-dirty-bitmap.c new file +17
-0+if (flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +qemu_fflush (f); + }else { +qemu_put_be64 (f, buf_size); +qemu_put_buffer (f, buf, buf_size); + } + +g_free (buf); +} + + +/* Called with iothread lock taken. */ + +static int init_dirty_bitmap_migration (void ) +{ +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 274
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; +BdrvNextIterator it; + + dirty_bitmap_mig_state.bulk_completed = false; + dirty_bitmap_mig_state.prev_bs =NULL ; + dirty_bitmap_mig_state.prev_bitmap =NULL ; + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ I can't imagine the situation it would arise in, but is it possible to have a named bitmap attached to a now-anonymous node?
Let's say we attach a bitmap to a root node, but then later we insert a filter or something above it and it's no longer at the root.
Quoted 7 lines
We should probably prohibit such things, or at the very least toss out an error here instead of silently continuing.
I think the only things valid to just *skip* are nameless bitmaps. Anything named we really ought to either migrate or error out over, I think, even if the circumstances leading to such a configuration are very unlikely.
agree, will fix.
Quoted 26 lines
Quoted 13 lines
migration/block-dirty-bitmap.c new file +12
-0+continue ; + } + +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +if (bdrv_dirty_bitmap_frozen (bitmap)) { +error_report ("Can't migrate frozen dirty bitmap: '%s" , +bdrv_dirty_bitmap_name (bitmap));migration/block-dirty-bitmap.c line 296
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -1 ; + } + } + } + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ +continue ; + }Why two-pass? I guess because we don't have to tear anything down if we check for errors in advance?
Quoted 2 lines
I worry that if we need to amend the logic here that it's error-prone to update it in two places, so maybe we ought to just have one loop.
why? just check all errors in first loop and then do all preparations in the second..
Quoted 45 lines
migration/block-dirty-bitmap.c line 306
Quoted 11 lines
migration/block-dirty-bitmap.c new file +10
-0+ +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +bdrv_ref (bs); +bdrv_dirty_bitmap_set_frozen (bitmap, true); +We could say that for any bitmap in the list of pending bitmaps to migrate, we know that we have to un-freeze it, since we never add any bitmaps that are frozen to our list.
migration/block-dirty-bitmap.c line 316
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ dbms =g_new0 (DirtyBitmapMigBitmapState,1 ); + dbms->bs = bs; + dbms->node_name =bdrv_get_node_name (bs); +if (!dbms->node_name || dbms->node_name[0 ] =='\0' ) { + dbms->node_name =bdrv_get_device_name (bs); + } + dbms->bitmap = bitmap; + dbms->total_sectors =bdrv_nb_sectors (bs); + dbms->sectors_per_chunk =CHUNK_SIZE *8 * +bdrv_dirty_bitmap_granularity (bitmap) >>BDRV_SECTOR_BITS ;Eric may want to avoid checking in new code that thinks in sectors, but for the sake of review I don't mind right now.
(Sorry, Eric!)
migration/block-dirty-bitmap.c line 327
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+if (bdrv_dirty_bitmap_enabled (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_ENABLED ; + } +if (bdrv_dirty_bitmap_get_persistance (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ; + } +if (bdrv_dirty_bitmap_get_autoload (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ; + } + +bdrv_dirty_bitmap_set_persistance (bitmap, false);Oh, this might be stranger to undo. Perhaps what we CAN do is limit the second pass to just this action and allow ourselves to unroll everything else.
Quoted 6 lines
migration/block-dirty-bitmap.c line 333
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +QSIMPLEQ_INSERT_TAIL (&dirty_bitmap_mig_state.dbms_list, + dbms, entry); + } + } +
hmm, I need to think about correct bitmap locking in the code (BdrvDirtyBitmap.lock)
Quoted 74 lines
Quoted 37 lines
migration/block-dirty-bitmap.c new file +37
-0+return 0 ; +} + +/* Called with no lock taken. */ +static void bulk_phase_send_chunk (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +uint32_t nr_sectors =MIN (dbms->total_sectors - dbms->cur_sector, + dbms->sectors_per_chunk); + +send_bitmap_bits (f, dbms, dbms->cur_sector, nr_sectors); + + dbms->cur_sector += nr_sectors; +if (dbms->cur_sector >= dbms->total_sectors) { + dbms->bulk_completed = true; + } +} + +/* Called with no lock taken. */ +static void bulk_phase (QEMUFile *f,bool limit) +{ +DirtyBitmapMigBitmapState *dbms; + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +while (!dbms->bulk_completed) { +bulk_phase_send_chunk (f, dbms); +if (limit &&qemu_file_rate_limit (f)) { +return ; + } + } + } + + dirty_bitmap_mig_state.bulk_completed = true; +} + +/* Called with iothread lock taken. */ +static void dirty_bitmap_mig_cleanup (void ) +{migration/block-dirty-bitmap.c line 380
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; + +while ((dbms =QSIMPLEQ_FIRST (&dirty_bitmap_mig_state.dbms_list)) !=NULL ) { +QSIMPLEQ_REMOVE_HEAD (&dirty_bitmap_mig_state.dbms_list, entry); +bdrv_dirty_bitmap_set_frozen (dbms->bitmap, false); +bdrv_unref (dbms->bs); +g_free (dbms); + } +} +ok
migration/block-dirty-bitmap.c line 386
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+/* for SaveVMHandlers */ +static void dirty_bitmap_save_cleanup (void *opaque) +{ +dirty_bitmap_mig_cleanup (); +} +ok
migration/block-dirty-bitmap.c line 399
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static int dirty_bitmap_save_iterate (QEMUFile *f,void *opaque) +{ +trace_dirty_bitmap_save_iterate (migration_in_postcopy ()); + +if (migration_in_postcopy () && !dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, true); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return dirty_bitmap_mig_state.bulk_completed; +} +What's the purpose behind doing bulk save both here and in
dirty_bitmap_save_complete? Is there a path that isn't guaranteed to call one of the completion functions?
Quoted 2 lines
(The way it's coded seems like it'll work fine, but I'm curious about what looks like a redundancy at a glance.)
bulk_phase(f, true) is not guaranteed to do all the work. so in complete() we call it with false, to complete.
hmm, it is saved from precopy migration approach. And looks like really, in case of postcopy we need only blulk_phase(f, false) in _complete and nothing else. I'll check.
Quoted 81 lines
migration/block-dirty-bitmap.c line 410
Quoted 12 lines
migration/block-dirty-bitmap.c new file +11
-0+/* Called with iothread lock taken. */ + +static int dirty_bitmap_save_complete (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms; +trace_dirty_bitmap_save_complete_enter (); + +if (!dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, false); + } +funny now that we don't actually really iterate over the data, and the bulk phase is now really the _only_ phase :)
migration/block-dirty-bitmap.c line 422
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_complete (f, dbms); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +trace_dirty_bitmap_save_complete_finish (); + +dirty_bitmap_mig_cleanup (); +return 0 ; +} +ok
Quoted 16 lines
migration/block-dirty-bitmap.c new file +16
-0+static void dirty_bitmap_save_pending (QEMUFile *f,void *opaque, +uint64_t max_size, +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) +{ +DirtyBitmapMigBitmapState *dbms; +uint64_t pending =0 ; + +qemu_mutex_lock_iothread (); + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +uint64_t gran =bdrv_dirty_bitmap_granularity (dbms->bitmap); +uint64_t sectors = dbms->bulk_completed ?0 : + dbms->total_sectors - dbms->cur_sector; +migration/block-dirty-bitmap.c line 448
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ pending += (sectors *BDRV_SECTOR_SIZE + gran -1 ) / gran; + } + +qemu_mutex_unlock_iothread (); + +trace_dirty_bitmap_save_pending (pending, max_size); + + *res_postcopy_only += pending; +} +ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+/* First occurrence of this bitmap. It should be created if doesn't exist */ +static int dirty_bitmap_load_start (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; +uint32_t granularity =qemu_get_be32 (f); +uint8_t flags =qemu_get_byte (f); + +if (!s->bitmap) { + s->bitmap =bdrv_create_dirty_bitmap (s->bs, granularity, + s->bitmap_name, &local_err); +if (!s->bitmap) { +error_report_err (local_err); +return -EINVAL ; + } + }else { +uint32_t dest_granularity = +bdrv_dirty_bitmap_granularity (s->bitmap); +if (dest_granularity != granularity) { + error_report("Error: " + "Migrated bitmap granularity (%" PRIu32 ") " + "doesn't match the destination bitmap '%s' " + "granularity (%" PRIu32 ")", + granularity, + bdrv_dirty_bitmap_name(s->bitmap),
Quoted 8 lines
migration/block-dirty-bitmap.c line 477
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+ dest_granularity); +return -EINVAL ; + } + } +I'm a fan of auto-creating the bitmaps. Do you have a use-case for why creating them ahead of time is better, or are you just attempting to be flexible?
the second. I just was my first approach about two years ago and it was not discussed until now). In our scenarios we use auto-creating way. So, it may be better to just fail if corresponding bitmap exists on destination without any granularity checks.
Quoted 49 lines
Quoted 5 lines
migration/block-dirty-bitmap.c new file +4
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK ) { +error_report ("Unknown flags in migrated dirty bitmap header: %x" , + flags); +return -EINVAL ;migration/block-dirty-bitmap.c line 491
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (flags &DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ) { +bdrv_dirty_bitmap_set_persistance (s->bitmap, true); + } +if (flags &DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ) { +bdrv_dirty_bitmap_set_autoload (s->bitmap, true); + } + +bdrv_disable_dirty_bitmap (s->bitmap);OK, so we start them off as disabled, and
migration/block-dirty-bitmap.c line 500
Quoted 9 lines
migration/block-dirty-bitmap.c new file +9
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_ENABLED ) { +DirtyBitmapLoadBitmapState *b; + +bdrv_dirty_bitmap_create_successor (s->bs, s->bitmap, &local_err); +if (local_err) { +error_report_err (local_err); +return -EINVAL ; + } +If they weren't disabled on the host, we create a successor to record writes while we wait for the rest of the data to arrive.
migration/block-dirty-bitmap.c line 505
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+ b =g_new (DirtyBitmapLoadBitmapState,1 ); + b->bs = s->bs; + b->bitmap = s->bitmap; + b->migrated = false; + enabled_bitmaps =g_slist_prepend (enabled_bitmaps, b);And we make a note of which ones we were supposed to re-enable.
migration/block-dirty-bitmap.c line 335
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ } + +return 0 ; +}OK
migration/block-dirty-bitmap.c line 511
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ +void dirty_bitmap_mig_before_vm_start (void )Similarly, I guess I find it weird that this is a callable interface.
David, no nice hook for just-prior-to-vm-start calls? a .postcopy_pivot() hook or something might be nice..
Quoted 14 lines
migration/block-dirty-bitmap.c line 519
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+{ +GSList *item; + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; +Anyway, if I am reading this right; we call this in the postcopy phase prior to receiving the entirety of the bitmaps (so before receiving COMPLETE) ... right?
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+if (b->migrated) { +bdrv_enable_dirty_bitmap (b->bitmap);
This is the most difficult thing here. Race is possible between postcopy complete and vm start. So, here is a finish_lock. And bitmap may be already migrated or not.
Quoted 10 lines
...or, am I confused, and we might receive a COMPLETE event prior to the postcopy pivot?
Anyway, I suppose this code says "If we received the entire bitmap, go ahead and enable it."
migration/block-dirty-bitmap.c line 523
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ }else { +bdrv_dirty_bitmap_enable_successor (b->bitmap);And this says "If we haven't received it yet, enable the successor to record writes until we get the rest of the data."
yes
Quoted 18 lines
Quoted 18 lines
migration/block-dirty-bitmap.c new file +17
-0+ } + +g_free (b); + } + +g_slist_free (enabled_bitmaps); + enabled_bitmaps =NULL ; + +qemu_mutex_unlock (&finish_lock); +} + +static void dirty_bitmap_load_complete (QEMUFile *f,DirtyBitmapLoadState *s) +{ +GSList *item; +trace_dirty_bitmap_load_complete (); +bdrv_dirty_bitmap_deserialize_finish (s->bitmap); +
Quoted 8 lines
migration/block-dirty-bitmap.c line 547
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; + +if (b->bitmap == s->bitmap) { + b->migrated = true;we can probably break; here now, right?
agree.
Quoted 5 lines
(This whole stanza is a little strange, can't we cache the active DirtyBitmapLoadBitmapState in DirtyBitmapLoadState? I guess not, because we're looking up the BdrvDirtyBitmap itself and caching that instead, so either way we have some kind of lookup on every context switch.)
this search is needed only once, so caching will not help.
Quoted 9 lines
migration/block-dirty-bitmap.c line 555
Quoted 9 lines
migration/block-dirty-bitmap.c new file +8
-0+ } + } + +if (bdrv_dirty_bitmap_frozen (s->bitmap)) { +if (enabled_bitmaps ==NULL ) { +/* in postcopy */ +AioContext *aio_context =bdrv_get_aio_context (s->bs); +aio_context_acquire (aio_context);
looks like it should be moved to use new BdrvDirtyBitmap locks.
Quoted 12 lines
migration/block-dirty-bitmap.c line 559
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ +bdrv_reclaim_dirty_bitmap (s->bs, s->bitmap, &error_abort); +bdrv_enable_dirty_bitmap (s->bitmap); +OK, so if
enabled_bitmapsis gone, that means we already pivoted and we're live on the receiving end here. We merge the successor into the fully deserialized bitmap and enable it.migration/block-dirty-bitmap.c line 563
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+aio_context_release (aio_context); + }else { +/* target not started, successor is empty */ +bdrv_dirty_bitmap_release_successor (s->bs, s->bitmap);
Quoted 6 lines
Otherwise we just trash the successor. Did we really need a new call for this? I suppose it's faster than merging a 0-bit bitmap, but the additional API complexity for the speed win here seems like premature optimization.
...well, you already wrote it, so I won't argue.
right idea. However in this case (and even with my approach) it is good to assert here that successor is empty. and additional api is needed for it.
Quoted 159 lines
Quoted 32 lines
migration/block-dirty-bitmap.c new file +31
-0+ } + } + +qemu_mutex_unlock (&finish_lock); +} + +static int dirty_bitmap_load_bits (QEMUFile *f,DirtyBitmapLoadState *s) +{ +uint64_t first_byte =qemu_get_be64 (f) <<BDRV_SECTOR_BITS ; +uint64_t nr_bytes = (uint64_t )qemu_get_be32 (f) <<BDRV_SECTOR_BITS ; +trace_dirty_bitmap_load_bits_enter (first_byte >>BDRV_SECTOR_BITS , + nr_bytes >>BDRV_SECTOR_BITS ); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +trace_dirty_bitmap_load_bits_zeroes (); +bdrv_dirty_bitmap_deserialize_zeroes (s->bitmap, first_byte, nr_bytes, + false); + }else { +uint8_t *buf; +uint64_t buf_size =qemu_get_be64 (f); +uint64_t needed_size = +bdrv_dirty_bitmap_serialization_size (s->bitmap, + first_byte, nr_bytes); + +if (needed_size > buf_size) { +error_report ("Error: Migrated bitmap granularity doesn't " +"match the destination bitmap '%s' granularity" , +bdrv_dirty_bitmap_name (s->bitmap)); +return -EINVAL ; + } +migration/block-dirty-bitmap.c line 604
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ buf =g_malloc (buf_size); +qemu_get_buffer (f, buf, buf_size); +bdrv_dirty_bitmap_deserialize_part (s->bitmap, buf, first_byte, nr_bytes, + false); +g_free (buf); + } + +return 0 ; +} +ok
Quoted 34 lines
migration/block-dirty-bitmap.c new file +34
-0+static int dirty_bitmap_load_header (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; + s->flags =qemu_get_bitmap_flags (f); +trace_dirty_bitmap_load_header (s->flags); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +if (!qemu_get_counted_string (f, s->node_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bs =bdrv_lookup_bs (s->node_name, s->node_name, &local_err); +if (!s->bs) { +error_report_err (local_err); +return -EINVAL ; + } + }else if (!s->bs) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +if (!qemu_get_counted_string (f, s->bitmap_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bitmap =bdrv_find_dirty_bitmap (s->bs, s->bitmap_name); + +/* bitmap may be NULL here, it wouldn't be an error if it is the +* first occurrence of the bitmap */ +if (!s->bitmap && !(s->flags &DIRTY_BITMAP_MIG_FLAG_START )) { +error_report ("Error: unknown dirty bitmap " +"'%s' for block device '%s'" , + s->bitmap_name, s->node_name);migration/block-dirty-bitmap.c line 648
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -EINVAL ; + } + }else if (!s->bitmap) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +return 0 ; +} +ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+static int dirty_bitmap_load (QEMUFile *f,void *opaque,int version_id) +{ +static DirtyBitmapLoadState s; +int ret =0 ; + +trace_dirty_bitmap_load_enter (); + +if (version_id !=1 ) { +return -EINVAL ; + } + + do { + dirty_bitmap_load_header(f, &s); + + if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { + ret = dirty_bitmap_load_start(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_COMPLETE) { + dirty_bitmap_load_complete(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_BITS) { + ret = dirty_bitmap_load_bits(f, &s); + } + + if (!ret) { + ret = qemu_file_get_error(f);migration/block-dirty-bitmap.c line 682
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (ret) { +return ret; + } + }while (!(s.flags &DIRTY_BITMAP_MIG_FLAG_EOS )); + +trace_dirty_bitmap_load_success (); +return 0 ; +}OK
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +static int dirty_bitmap_save_setup (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms =NULL ; +if (init_dirty_bitmap_migration () <0 ) { +return -1 ;migration/block-dirty-bitmap.c line 698
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_start (f, dbms); + } +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return 0 ; +} +ok
migration/block-dirty-bitmap.c line 703
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active (void *opaque) +{ +return migrate_dirty_bitmaps (); +} +ok
migration/block-dirty-bitmap.c line 708
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active_iterate (void *opaque) +{ +return dirty_bitmap_is_active (opaque) && !runstate_is_running (); +} +On second thought, in patch 9, can you add a little tiny bit of documentation text explaining the exact nature of this callback?
Quoted 5 lines
Is the second portion of the conditional here so that once we reach the postcopy state that .is_active_iterate starts returning true?
"ok" if I'm reading this right, but it might be helped along by a little comment.
yes. ok, I'll add a comment.
Quoted 115 lines
migration/block-dirty-bitmap.c line 713
Quoted 6 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_has_postcopy (void *opaque) +{ +return true; +} +ok! :)
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+static SaveVMHandlers savevm_dirty_bitmap_handlers = { + .save_setup = dirty_bitmap_save_setup, + .save_live_complete_postcopy = dirty_bitmap_save_complete, + .save_live_complete_precopy = dirty_bitmap_save_complete, + .has_postcopy = dirty_bitmap_has_postcopy, + .save_live_pending = dirty_bitmap_save_pending, + .save_live_iterate = dirty_bitmap_save_iterate, + .is_active_iterate = dirty_bitmap_is_active_iterate, + .load_state = dirty_bitmap_load, + .save_cleanup = dirty_bitmap_save_cleanup, + .is_active = dirty_bitmap_is_active,migration/block-dirty-bitmap.c line 734
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+}; + +void dirty_bitmap_mig_init (void ) +{ +QSIMPLEQ_INIT (&dirty_bitmap_mig_state.dbms_list); + +register_savevm_live (NULL ,"dirty-bitmap" ,0 ,1 , + &savevm_dirty_bitmap_handlers, + &dirty_bitmap_mig_state); +}ok
dgilbert, would it be worth registering a block-driver-like registration trick that automatically invokes these functions instead of having to hook them up in
vl.c? the more we add, the more hacky it looks to not have some subsystem-wide registration hook.Quoted 64 lines
migration/migration.c +3
-0@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current(void)memset (&mis_current,0 ,sizeof (MigrationIncomingState));qemu_mutex_init (&mis_current.rp_mutex);qemu_event_init (&mis_current.main_thread_load_event, false); + +init_dirty_bitmap_incoming_migration (); + once = true; }return &mis_current;migration/savevm.c +2
-0@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)trace_loadvm_postcopy_handle_run_vmstart (); +dirty_bitmap_mig_before_vm_start (); +if (autostart) {/* Hold onto your hats, starting the CPU */ vm_start ();vl.c +1
-0@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp)blk_mig_init ();ram_mig_init (); +dirty_bitmap_mig_init ();/* If the currently selected machine wishes to override the units-per-bus * property of its default HBA interface type, do so now. */ migration/Makefile.objs +1
-0@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.o common-obj-y += qemu-file-channel.o common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o +common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.omigration/trace-events +4
-0@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" colo_failover_set_state(const char *new_state) "new state %s" + +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t nr_sectors, uint64_t data_size) "\n flags: 0x%x\n start_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n"migration/trace-events colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" · line 243
Quoted 10 lines
migration/trace-events +10
-0+dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size) "pending %" PRIu64 " max: %" PRIu64 +dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t nr_sectors) "chunk: %" PRIu64 " %" PRIu32 +dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""OK, I think everything here is probably in order, and it's only my understanding that is a barrier at this point. Help me understand the rest of this patch and I'll re-pester migration to get this staged for qemu-next.
Quoted 1 line
--js
Thank you for reviewing! I hope, I'll post new version next week.
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
Quoted 13 lines · Vladimir Sementsov-Ogievskiy
Quoted 4 lines
Quoted 3 lines
+ /* if a block is zero we need to flush here since the network + * bandwidth is now a lot higher than the storage device bandwidth. + * thus if we queue zero blocks we slow down the migration. */
Can you elaborate on this for me?
it comes from
migration/block.c, as it was a prototype for dirty bitmaps migration.
May be the original thought was to give destination storage more time to handle
write-zeros? It may make sense if it can't do it fast but really writes zeros.Quoted 1 line
Quoted 9 lines
Quoted 9 lines
migration/block-dirty-bitmap.c line 236
Quoted 9 lines
+ if (flags &
DIRTY_BITMAP_MIG_FLAG_ZEROES) {
+qemu_fflush(f);
+ } else {
+qemu_put_be64(f, buf_size);
+qemu_put_buffer(f, buf, buf_size);
+ }migration/block-dirty-bitmap.c new file +3
-0+ + g_free(buf); +}
Peter, Stefan; do you have any insight on the reason for this blurb's appearance in migration/block.c? Looks like it showed up in 323004a39d4d8d33c744a5b108f80bfe6402fca3
I'm not sure I understand what the concern was that lead to this, unless it's simply that without a flush() we can't guarantee progress.
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
In reply to Vladimir Sementsov-OgievskiyQuoted 466 lines · Vladimir Sementsov-Ogievskiy
Quoted 307 lines · John Snow
Quoted 10 lines · Vladimir Sementsov-Ogievskiy
Postcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name
as a migrated bitmap (for the same node), then, if their granularities are
the same the migration will be done, otherwise the error will be generated.Quoted 8 lines
If destination qemu doesn't contain such bitmap it will be created.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>---
include/migration/misc.h | 3 +
migration/migration.h | 3 +
migration/block-dirty-bitmap.c| 734
+++++++++++++++++++++++++++++++++++++++++Ouch :\
Quoted 8 lines
migration/migration.c | 3 +
migration/savevm.c | 2 +
vl.c | 1 +
migration/Makefile.objs | 1 +
migration/trace-events | 14 +8 files changed, 761 insertions(+)create mode 100644
migration/block-dirty-bitmap.cOrganizationally, you introduce three new 'public' prototypes:
dirty_bitmap_mig_initdirty_bitmap_mig_before_vm_startinit_dirty_bitmap_incoming_migration
mig_initis advertised inmigration/misc.h, the other two are inmigration/migration.h.
The definitions for all three are inmigration/block-dirty-bitmap.cIn pure naivety, I find it weird to have something that you use in
migration.cand advertised inmigration.hactually exist separately inblock-dirty-bitmap.c; but maybe this is the sanest thing to do.Quoted 49 lines
include/migration/misc.h +0
-0@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *); bool migration_in_postcopy_after_devices(MigrationState *); void migration_global_dump(Monitor *mon);+/*
migration/block-dirty-bitmap.c*/include/migration/misc.h +2
-0+void dirty_bitmap_mig_init (void ); +#endif
migration/migration.h +0
-0@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages(MigrationIncomingState *mis, const char* rbname,
ram_addr_tstart,size_tlen); +voiddirty_bitmap_mig_before_vm_start(void);migration/migration.h +2
-0+void init_dirty_bitmap_incoming_migration (void ); +#endif
migration/block-dirty-bitmap.c new file +11
-0@@ -0,0 +1,734 @@ +/* +* Block dirty bitmap postcopy migration +* +* Copyright IBM, Corp. 2009 +* Copyright (c) 2016-2017 Parallels International GmbH +* +* Authors: +* Liran Schour <[email protected]> +* Vladimir Sementsov-Ogievskiy <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ * This file is derived frommigration/block.c, so it's author and IBM copyright
+ * are here, although content is quite different.
+ *
+ * Contributions after 2012-01-13 are licensed under the terms of theQuoted 8 lines
+ * GNU GPL, version 2 or (at your option) any later version.
+ *
+ * ***
+ *
+ * Here postcopy migration of dirty bitmaps is realized. Only named dirty
+ * bitmaps, associated with root nodes and non-root named nodes are migrated.Put another way, only QMP-addressable bitmaps. Nodes without a name that are not the root have no way to be addressed.
Quoted 3 lines
+ *
+ * If destination qemu is already containing a dirty bitmap with the same name"If the destination QEMU already contains a dirty bitmap with the same name"
Quoted 4 lines
+ * as a migrated bitmap (for the same node), then, if their granularities are
+ * the same the migration will be done, otherwise the error will be generated."an error"
Quoted 2 lines
+ *
+ * If destination qemu doesn't contain such bitmap it will be created."If the destination QEMU doesn't contain such a bitmap, it will be created."
Quoted 28 lines
+ *
+ * format of migration:
+ *
+ * # Header (shared for different chunk types)
+ * 1, 2 or 4 bytes: flags (see qemu_{put,put}_flags)
+ * [ 1 byte: node name size ] \ flags &DEVICE_NAME
+ * [ n bytes: node name ] /
+ * [ 1 byte: bitmap name size ] \ flags &BITMAP_NAME
+ * [ n bytes: bitmap name ] /
+ *
+ * # Start of bitmap migration (flags & START)
+ * header
+ * be64: granularity
+ * 1 byte: bitmap flags (corresponds to BdrvDirtyBitmap)
+ * bit 0 - bitmap is enabled
+ * bit 1 - bitmap is persistent
+ * bit 2 - bitmap is autoloading
+ * bits 3-7 - reserved, must be zero
+ *
+ * # Complete of bitmap migration (flags & COMPLETE)
+ * header
+ *
+ * # Data chunk of bitmap migration
+ * header
+ * be64: start sector
+ * be32: number of sectors
+ * [ be64: buffer size ] \ ! (flags & ZEROES)
+ * [ n bytes: buffer ] /Quoted 8 lines
+ *
+ * The last chunk in stream should contain flags & EOS. The chunk may skip
+ * device and/or bitmap names, assuming them to be the same with the previous
+ * chunk.
+ */
+Been a while since I reviewed the format, but it seems sane.
Quoted 82 lines
migration/block-dirty-bitmap.c new file +20
-0+#include "qemu/osdep.h" +#include "block/block.h" +#include "block/block_int.h" +#include "sysemu/block-backend.h" +#include "qemu/main-loop.h" +#include "qemu/error-report.h" +#include "migration/misc.h" +#include "migration/migration.h" +#include "migration/qemu-file.h" +#include "migration/vmstate.h" +#include "migration/register.h" +#include "qemu/hbitmap.h" +#include "sysemu/sysemu.h" +#include "qemu/cutils.h" +#include "qapi/error.h" +#include "trace.h" + +#define CHUNK_SIZE (1 << 10) + +/* Flags occupy one, two or four bytes (Big Endian). The size is determined as
+ * follows:
+ * in first (most significant) byte bit 8 is clear --> one byte
+ * in first byte bit 8 is set --> two or four bytes, depending on second
+ * byte:
+ * | in second byte bit 8 is clear --> two bytes
+ * | in second byte bit 8 is set --> four bytes
+ */migration/block-dirty-bitmap.c new file +53
-0+#define DIRTY_BITMAP_MIG_FLAG_EOS 0x01 +#define DIRTY_BITMAP_MIG_FLAG_ZEROES 0x02 +#define DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME 0x04 +#define DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME 0x08 +#define DIRTY_BITMAP_MIG_FLAG_START 0x10 +#define DIRTY_BITMAP_MIG_FLAG_COMPLETE 0x20 +#define DIRTY_BITMAP_MIG_FLAG_BITS 0x40 + +#define DIRTY_BITMAP_MIG_EXTRA_FLAGS 0x80 + +#define DIRTY_BITMAP_MIG_START_FLAG_ENABLED 0x01 +#define DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT 0x02 +#define DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD 0x04 +#define DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK 0xf8 + +typedef struct DirtyBitmapMigBitmapState { + /* Written during setup phase. */ + BlockDriverState *bs; + const char *node_name; + BdrvDirtyBitmap *bitmap; + uint64_t total_sectors; + uint64_t sectors_per_chunk; + QSIMPLEQ_ENTRY(DirtyBitmapMigBitmapState) entry; + uint8_t flags; + + /* For bulk phase. */ + bool bulk_completed; + uint64_t cur_sector; +}DirtyBitmapMigBitmapState ; + +typedef struct DirtyBitmapMigState { + QSIMPLEQ_HEAD(dbms_list, DirtyBitmapMigBitmapState) dbms_list; + + bool bulk_completed; + + /* for send_bitmap_bits() */ + BlockDriverState *prev_bs; + BdrvDirtyBitmap *prev_bitmap; +}DirtyBitmapMigState ; + +typedef struct DirtyBitmapLoadState { + uint32_t flags; + char node_name[256]; + char bitmap_name[256]; + BlockDriverState *bs; + BdrvDirtyBitmap *bitmap; +}DirtyBitmapLoadState ; + +static DirtyBitmapMigState dirty_bitmap_mig_state; + +typedef struct DirtyBitmapLoadBitmapState { + BlockDriverState *bs; + BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 152
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ bool migrated; +} DirtyBitmapLoadBitmapState; +static GSList *enabled_bitmaps; +QemuMutex finish_lock; + +void init_dirty_bitmap_incoming_migration (void ) +{ + qemu_mutex_init(&finish_lock); +} +This is a little odd as public interface. David, is there a nicer way to integrate in-migrate hooks? I guess it hasn't come up yet. Anyway, it might be nice to leave a comment here for now that says that the only caller is
migration.c, and it will only ever call it once.migration/block-dirty-bitmap.c line 165
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static uint32_t qemu_get_bitmap_flags (QEMUFile *f) +{ + uint8_t flags = qemu_get_byte(f); + if (flags & DIRTY_BITMAP_MIG_EXTRA_FLAGS) { + flags = flags << 8 | qemu_get_byte(f); + if (flags & DIRTY_BITMAP_MIG_EXTRA_FLAGS) { + flags = flags << 16 | qemu_get_be16(f); + } + } + + return flags; +} +ok
(Sorry for the per-function ACKs, it's just helpful for me to know which functions I followed execution of on paper to make sure I got everything in this big patch.)
migration/block-dirty-bitmap.c line 173
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void qemu_put_bitmap_flags (QEMUFile *f,uint32_t flags) +{ + /* The code currently do not send flags more than one byte */ + assert(!(flags & (0xffffff00 | DIRTY_BITMAP_MIG_EXTRA_FLAGS))); + + qemu_put_byte(f, flags); +} +ok
Quoted 9 lines
+static void send_bitmap_header(QEMUFile *f, DirtyBitmapMigBitmapState *dbms,
+uint32_tadditional_flags)migration/block-dirty-bitmap.c new file +6
-0+{ + BlockDriverState *bs = dbms->bs; + BdrvDirtyBitmap *bitmap = dbms->bitmap; + uint32_t flags = additional_flags; + trace_send_bitmap_header_enter(); +migration/block-dirty-bitmap.c line 191
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ if (bs != dirty_bitmap_mig_state.prev_bs) { + dirty_bitmap_mig_state.prev_bs = bs; + flags |= DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME; + } + + if (bitmap != dirty_bitmap_mig_state.prev_bitmap) { + dirty_bitmap_mig_state.prev_bitmap = bitmap; + flags |= DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME; + } +I guess the idea here is that we might be able to skip the node name broadcast, leaving the possibilities as:
Quoted 3 lines
- new node and bitmap: send both
- new bitmap, but not node: send bitmap name only
- same for both: send neitheryes
Quoted 3 lines
and that otherwise it's not possible to have a new node but "same bitmap" by nature of how the structures are organized.
I hope we don't have bitmaps, shared between nodes)
Quoted 60 lines
migration/block-dirty-bitmap.c line 202
Quoted 12 lines
+
qemu_put_bitmap_flags(f, flags);migration/block-dirty-bitmap.c new file +10
-0+ + if (flags & DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME) { + qemu_put_counted_string(f, dbms->node_name); + } + + if (flags & DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME) { + qemu_put_counted_string(f, bdrv_dirty_bitmap_name(bitmap)); + } +} +ok
migration/block-dirty-bitmap.c line 209
Quoted 8 lines
+static void
send_bitmap_start(QEMUFile *f, DirtyBitmapMigBitmapState *dbms)migration/block-dirty-bitmap.c new file +6
-0+{ + send_bitmap_header(f, dbms, DIRTY_BITMAP_MIG_FLAG_START); + qemu_put_be32(f, bdrv_dirty_bitmap_granularity(dbms->bitmap)); + qemu_put_byte(f, dbms->flags); +} +ok
migration/block-dirty-bitmap.c line 214
Quoted 6 lines
+static void send_bitmap_complete(QEMUFile *f,
DirtyBitmapMigBitmapState *dbms)migration/block-dirty-bitmap.c new file +4
-0+{ + send_bitmap_header(f, dbms, DIRTY_BITMAP_MIG_FLAG_COMPLETE); +} +ok
Quoted 28 lines
+static void send_bitmap_bits(QEMUFile *f, DirtyBitmapMigBitmapState *dbms,
+uint64_tstart_sector,uint32_tnr_sectors)migration/block-dirty-bitmap.c new file +24
-0+{ + /* align for buffer_is_zero() */ + uint64_t align = 4 * sizeof(long); + uint64_t unaligned_size = + bdrv_dirty_bitmap_serialization_size( + dbms->bitmap, start_sector << BDRV_SECTOR_BITS, + (uint64_t)nr_sectors << BDRV_SECTOR_BITS); + uint64_t buf_size = (unaligned_size + align - 1) & ~(align - 1); + uint8_t *buf = g_malloc0(buf_size); + uint32_t flags = DIRTY_BITMAP_MIG_FLAG_BITS; + + bdrv_dirty_bitmap_serialize_part( + dbms->bitmap, buf, start_sector << BDRV_SECTOR_BITS, + (uint64_t)nr_sectors << BDRV_SECTOR_BITS); + + if (buffer_is_zero(buf, buf_size)) { + g_free(buf); + buf = NULL; + flags |= DIRTY_BITMAP_MIG_FLAG_ZEROES; + } + + trace_send_bitmap_bits(flags, start_sector, nr_sectors, buf_size); + + send_bitmap_header(f, dbms, flags);Quoted 8 lines
migration/block-dirty-bitmap.c line 247
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+ + qemu_put_be64(f, start_sector); + qemu_put_be32(f, nr_sectors); + + /* if a block is zero we need to flush here since the network +* bandwidth is now a lot higher than the storage device bandwidth. +* thus if we queue zero blocks we slow down the migration. */ Can you elaborate on this for me?
it comes from
migration/block.c, as it was a prototype for dirty bitmaps migration.
May be the original thought was to give destination storage more time to handle
write-zeros? It may make sense if it can't do it fast but really writes zeros.Quoted 34 lines
Quoted 18 lines
+ if (flags &
DIRTY_BITMAP_MIG_FLAG_ZEROES) {
+qemu_fflush(f);
+ } else {
+qemu_put_be64(f, buf_size);
+qemu_put_buffer(f, buf, buf_size);
+ }migration/block-dirty-bitmap.c new file +11
-0+ + g_free(buf); +} + + +/* Called with iothread lock taken. */ + +static int init_dirty_bitmap_migration (void ) +{ + BlockDriverState *bs; + BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 274
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ DirtyBitmapMigBitmapState *dbms; + BdrvNextIterator it; + + dirty_bitmap_mig_state.bulk_completed = false; + dirty_bitmap_mig_state.prev_bs = NULL; + dirty_bitmap_mig_state.prev_bitmap = NULL; + + for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { + if (!bdrv_get_device_or_node_name(bs)) { + /* not named non-root node */I can't imagine the situation it would arise in, but is it possible to have a named bitmap attached to a now-anonymous node?
Let's say we attach a bitmap to a root node, but then later we insert a filter or something above it and it's no longer at the root.
Quoted 7 lines
We should probably prohibit such things, or at the very least toss out an error here instead of silently continuing.
I think the only things valid to just *skip* are nameless bitmaps. Anything named we really ought to either migrate or error out over, I think, even if the circumstances leading to such a configuration are very unlikely.
agree, will fix.
Quoted 26 lines
Quoted 13 lines
+ continue;
+ }migration/block-dirty-bitmap.c new file +10
-0+ + for (bitmap = bdrv_dirty_bitmap_next(bs, NULL); bitmap; + bitmap = bdrv_dirty_bitmap_next(bs, bitmap)) { + if (!bdrv_dirty_bitmap_name(bitmap)) { + continue; + } + + if (bdrv_dirty_bitmap_frozen(bitmap)) { + error_report("Can't migrate frozen dirty bitmap: '%s", + bdrv_dirty_bitmap_name(bitmap));migration/block-dirty-bitmap.c line 296
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ return -1; + } + } + } + + for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { + if (!bdrv_get_device_or_node_name(bs)) { + /* not named non-root node */ + continue; + }Why two-pass? I guess because we don't have to tear anything down if we check for errors in advance?
Quoted 6 lines
Quoted 2 lines
I worry that if we need to amend the logic here that it's error-prone to update it in two places, so maybe we ought to just have one loop.
why? just check all errors in first loop and then do all preparations in the second..
Sure, keep it this way for now. It just struck me as odd, but you're the one writing it and it's not wrong; I just wondered if there was a way to not have to select the bitmaps to work on separately, twice.
If it doesn't strike you as particularly worth changing, then I wouldn't worry about it.
Quoted 46 lines
Quoted 46 lines
migration/block-dirty-bitmap.c line 306
Quoted 11 lines
migration/block-dirty-bitmap.c new file +10
-0+ + for (bitmap = bdrv_dirty_bitmap_next(bs, NULL); bitmap; + bitmap = bdrv_dirty_bitmap_next(bs, bitmap)) { + if (!bdrv_dirty_bitmap_name(bitmap)) { + continue; + } + + bdrv_ref(bs); + bdrv_dirty_bitmap_set_frozen(bitmap, true); +We could say that for any bitmap in the list of pending bitmaps to migrate, we know that we have to un-freeze it, since we never add any bitmaps that are frozen to our list.
Quoted 11 lines
+ dbms =
g_new0(DirtyBitmapMigBitmapState, 1); +dbms->bs= bs;
+dbms->node_name=bdrv_get_node_name(bs); + if (!dbms->node_name || dbms->node_name[0] == '\0') { +dbms->node_name=bdrv_get_device_name(bs); + }
+dbms->bitmap= bitmap;
+dbms->total_sectors=bdrv_nb_sectors(bs); +dbms->sectors_per_chunk=CHUNK_SIZE* 8 * +bdrv_dirty_bitmap_granularity(bitmap)>>BDRV_SECTOR_BITS;Eric may want to avoid checking in new code that thinks in sectors, but for the sake of review I don't mind right now.
(Sorry, Eric!)
Quoted 11 lines
+ if (
bdrv_dirty_bitmap_enabled(bitmap)) {
+dbms->flags|=DIRTY_BITMAP_MIG_START_FLAG_ENABLED; + }
+ if (bdrv_dirty_bitmap_get_persistance(bitmap)) { +dbms->flags|=DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT; + }
+ if (bdrv_dirty_bitmap_get_autoload(bitmap)) {
+dbms->flags|=DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD; + }
+
+bdrv_dirty_bitmap_set_persistance(bitmap, false);Oh, this might be stranger to undo. Perhaps what we CAN do is limit the second pass to just this action and allow ourselves to unroll everything else.
Quoted 10 lines
Quoted 6 lines
migration/block-dirty-bitmap.c line 333
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ + QSIMPLEQ_INSERT_TAIL(&dirty_bitmap_mig_state.dbms_list, + dbms, entry); + } + } +hmm, I need to think about correct bitmap locking in the code (BdrvDirtyBitmap.lock)
Only if you felt like combining the two loops.
Quoted 80 lines
Quoted 77 lines
Quoted 47 lines
+ return 0;
migration/block-dirty-bitmap.c new file +4
-0+} + +/* Called with no lock taken. */ +static void bulk_phase_send_chunk(QEMUFile *f,DirtyBitmapMigBitmapState *dbms)
migration/block-dirty-bitmap.c new file +35
-0+{ + uint32_t nr_sectors = MIN(dbms->total_sectors - dbms->cur_sector, + dbms->sectors_per_chunk); + + send_bitmap_bits(f, dbms, dbms->cur_sector, nr_sectors); + + dbms->cur_sector += nr_sectors; + if (dbms->cur_sector >= dbms->total_sectors) { + dbms->bulk_completed = true; + } +} + +/* Called with no lock taken. */ +static void bulk_phase (QEMUFile *f,bool limit) +{ + DirtyBitmapMigBitmapState *dbms; + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { + while (!dbms->bulk_completed) { + bulk_phase_send_chunk(f, dbms); + if (limit && qemu_file_rate_limit(f)) { + return; + } + } + } + + dirty_bitmap_mig_state.bulk_completed = true; +} + +/* Called with iothread lock taken. */ +static void dirty_bitmap_mig_cleanup (void ) +{ + DirtyBitmapMigBitmapState *dbms; + + while ((dbms =
QSIMPLEQ_FIRST(&dirty_bitmap_mig_state.dbms_list)) != NULL) { +QSIMPLEQ_REMOVE_HEAD(&dirty_bitmap_mig_state.dbms_list, entry); +bdrv_dirty_bitmap_set_frozen(dbms->bitmap, false); +bdrv_unref(dbms->bs);
+g_free(dbms);
+ }migration/block-dirty-bitmap.c
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+} +ok
migration/block-dirty-bitmap.c line 386
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+/* for SaveVMHandlers */ +static void dirty_bitmap_save_cleanup (void *opaque) +{ + dirty_bitmap_mig_cleanup(); +} +ok
Quoted 8 lines
migration/block-dirty-bitmap.c new file +5
-0+static int dirty_bitmap_save_iterate (QEMUFile *f,void *opaque) +{ + trace_dirty_bitmap_save_iterate(migration_in_postcopy()); + + if (migration_in_postcopy() &&!dirty_bitmap_mig_state.bulk_completed) {
+bulk_phase(f, true);
+ }migration/block-dirty-bitmap.c line 399
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ + qemu_put_bitmap_flags(f, DIRTY_BITMAP_MIG_FLAG_EOS); + + return dirty_bitmap_mig_state.bulk_completed; +} +What's the purpose behind doing bulk save both here and in
dirty_bitmap_save_complete? Is there a path that isn't guaranteed to call one of the completion functions?Quoted 2 lines
(The way it's coded seems like it'll work fine, but I'm curious about what looks like a redundancy at a glance.)
Quoted 8 lines
bulk_phase(f, true)is not guaranteed to do all the work. so incomplete()we call it with false, to complete.hmm, it is saved from precopy migration approach. And looks like really, in case of postcopy
we need onlyblulk_phase(f, false)in_completeand nothing else. I'll check.
OK, so more of a holdover that covers all the bases than something that arose out of necessity. That makes sense to me.
Quoted 93 lines
Quoted 84 lines
migration/block-dirty-bitmap.c line 410
Quoted 12 lines
migration/block-dirty-bitmap.c new file +11
-0+/* Called with iothread lock taken. */ + +static int dirty_bitmap_save_complete (QEMUFile *f,void *opaque) +{ + DirtyBitmapMigBitmapState *dbms; + trace_dirty_bitmap_save_complete_enter(); + + if (!dirty_bitmap_mig_state.bulk_completed) { + bulk_phase(f, false); + } +funny now that we don't actually really iterate over the data, and the bulk phase is now really the _only_ phase :)
migration/block-dirty-bitmap.c line 422
Quoted 12 lines
+
QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry){ +send_bitmap_complete(f, dbms);
+ }migration/block-dirty-bitmap.c new file +9
-0+ + qemu_put_bitmap_flags(f, DIRTY_BITMAP_MIG_FLAG_EOS); + + trace_dirty_bitmap_save_complete_finish(); + + dirty_bitmap_mig_cleanup(); + return 0; +} +ok
Quoted 16 lines
migration/block-dirty-bitmap.c new file +16
-0+static void dirty_bitmap_save_pending (QEMUFile *f,void *opaque, + uint64_t max_size, + uint64_t *res_precopy_only, + uint64_t *res_compatible, + uint64_t *res_postcopy_only) +{ + DirtyBitmapMigBitmapState *dbms; + uint64_t pending = 0; + + qemu_mutex_lock_iothread(); + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { + uint64_t gran = bdrv_dirty_bitmap_granularity(dbms->bitmap); + uint64_t sectors = dbms->bulk_completed ? 0 : + dbms->total_sectors - dbms->cur_sector; +migration/block-dirty-bitmap.c line 448
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ pending += (sectors * BDRV_SECTOR_SIZE + gran - 1) / gran; + } + + qemu_mutex_unlock_iothread(); + + trace_dirty_bitmap_save_pending(pending, max_size); + + *res_postcopy_only += pending; +} +ok
Quoted 27 lines
+/* First occurrence of this bitmap. It should be created if doesn't exist */
+static intdirty_bitmap_load_start(QEMUFile *f, DirtyBitmapLoadState *s)migration/block-dirty-bitmap.c new file +8
-0+{ + Error *local_err = NULL; + uint32_t granularity = qemu_get_be32(f); + uint8_t flags = qemu_get_byte(f); + + if (!s->bitmap) { + s->bitmap = bdrv_create_dirty_bitmap(s->bs, granularity, + s->bitmap_name,
&local_err);
+ if (!s->bitmap) {
+error_report_err(local_err);
+ return-EINVAL;
+ }
+ } else {
+uint32_tdest_granularity=
+bdrv_dirty_bitmap_granularity(s->bitmap);
+ if (dest_granularity!= granularity) {
+ error_report("Error: "
+ "Migrated bitmap granularity (%" PRIu32 ") " + "doesn't match the destination bitmap '%s' " + "granularity (%" PRIu32 ")",
+ granularity,
+bdrv_dirty_bitmap_name(s->bitmap),Quoted 8 lines
Quoted 5 lines
+
dest_granularity);
+ return-EINVAL;
+ }
+ }
+I'm a fan of auto-creating the bitmaps. Do you have a use-case for why creating them ahead of time is better, or are you just attempting to be flexible?
Quoted 6 lines
the second. I just was my first approach about two years ago and it was not discussed until now). In our scenarios we use auto-creating way. So, it may be better to just fail if corresponding bitmap exists on destination without
any granularity checks.
I don't think you need to change anything yet, I was just curious as to what inspired the flexibility here.
Quoted 63 lines
Quoted 63 lines
Quoted 7 lines
+ if (flags &
DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK) { + error_report("Unknown flags in migrated dirty bitmap header:
%x",
+ flags);
+ return-EINVAL;
+ }migration/block-dirty-bitmap.c line 491
Quoted 9 lines
migration/block-dirty-bitmap.c new file +9
-0+ + if (flags & DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT) { + bdrv_dirty_bitmap_set_persistance(s->bitmap, true); + } + if (flags & DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD) { + bdrv_dirty_bitmap_set_autoload(s->bitmap, true); + } + + bdrv_disable_dirty_bitmap(s->bitmap);OK, so we start them off as disabled, and
Quoted 10 lines
+ if (flags &
DIRTY_BITMAP_MIG_START_FLAG_ENABLED) { + DirtyBitmapLoadBitmapState *b;
+
+bdrv_dirty_bitmap_create_successor(s->bs, s->bitmap, &local_err);
+ if (local_err) {
+error_report_err(local_err);
+ return-EINVAL;
+ }
+If they weren't disabled on the host, we create a successor to record writes while we wait for the rest of the data to arrive.
Quoted 5 lines
+ b =
g_new(DirtyBitmapLoadBitmapState, 1);
+b->bs=s->bs;
+b->bitmap=s->bitmap;
+b->migrated= false;
+enabled_bitmaps=g_slist_prepend(enabled_bitmaps, b);And we make a note of which ones we were supposed to re-enable.
migration/block-dirty-bitmap.c line 335
Quoted 4 lines
+ }
migration/block-dirty-bitmap.c new file +3
-0+ + return 0; +}OK
migration/block-dirty-bitmap.c line 511
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ +void dirty_bitmap_mig_before_vm_start (void )Similarly, I guess I find it weird that this is a callable interface.
David, no nice hook for just-prior-to-vm-start calls? a .postcopy_pivot() hook or something might be nice..
migration/block-dirty-bitmap.c line 519
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+{ + GSList *item; + + qemu_mutex_lock(&finish_lock); + + for (item = enabled_bitmaps; item; item = g_slist_next(item)) { + DirtyBitmapLoadBitmapState *b = item->data; +Anyway, if I am reading this right; we call this in the postcopy phase prior to receiving the entirety of the bitmaps (so before receiving COMPLETE) ... right?
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
+ if (
b->migrated) {
+bdrv_enable_dirty_bitmap(b->bitmap);This is the most difficult thing here. Race is possible between postcopy complete
and vm start. So, here is afinish_lock. And bitmap may be already migrated or not.
That makes sense. Figured it could be something of the kind, but wanted to make sure I was reading it right.
Quoted 44 lines
Quoted 10 lines
...or, am I confused, and we might receive a COMPLETE event prior to the postcopy pivot?
Anyway, I suppose this code says "If we received the entire bitmap, go ahead and enable it."
Quoted 2 lines
+ } else {
+bdrv_dirty_bitmap_enable_successor(b->bitmap);And this says "If we haven't received it yet, enable the successor to record writes until we get the rest of the data."
yes
Quoted 19 lines
Quoted 19 lines
+ }
migration/block-dirty-bitmap.c new file +11
-0+ + g_free(b); + } + + g_slist_free(enabled_bitmaps); + enabled_bitmaps = NULL; + + qemu_mutex_unlock(&finish_lock); +} + +static void dirty_bitmap_load_complete(QEMUFile *f,DirtyBitmapLoadState *s)
migration/block-dirty-bitmap.c new file +5
-0+{ + GSList *item; + trace_dirty_bitmap_load_complete(); + bdrv_dirty_bitmap_deserialize_finish(s->bitmap); +Quoted 8 lines
migration/block-dirty-bitmap.c line 547
Quoted 7 lines
+
qemu_mutex_lock(&finish_lock);migration/block-dirty-bitmap.c new file +6
-0+ + for (item = enabled_bitmaps; item; item = g_slist_next(item)) { + DirtyBitmapLoadBitmapState *b = item->data; + + if (b->bitmap == s->bitmap) { + b->migrated = true;we can probably break; here now, right?
agree.
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
(This whole stanza is a little strange, can't we cache the active DirtyBitmapLoadBitmapState in DirtyBitmapLoadState? I guess not, because we're looking up the BdrvDirtyBitmap itself and caching that instead, so either way we have some kind of lookup on every context switch.)
this search is needed only once, so caching will not help.
Yep, gotcha.
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
+ }
+ }
+
+ if (bdrv_dirty_bitmap_frozen(s->bitmap)) {
+ if (enabled_bitmaps== NULL) {
+ /* in postcopy */
+ AioContext*aio_context=bdrv_get_aio_context(s->bs); +aio_context_acquire(aio_context);
Quoted 2 lines
looks like it should be moved to use new BdrvDirtyBitmap locks.
Good catch!
Quoted 17 lines
Quoted 17 lines
migration/block-dirty-bitmap.c line 559
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ + bdrv_reclaim_dirty_bitmap(s->bs, s->bitmap, &error_abort); + bdrv_enable_dirty_bitmap(s->bitmap); +OK, so if
enabled_bitmapsis gone, that means we already pivoted and we're live on the receiving end here. We merge the successor into the fully deserialized bitmap and enable it.Quoted 4 lines
+
aio_context_release(aio_context);
+ } else {
+ /* target not started, successor is empty */ +bdrv_dirty_bitmap_release_successor(s->bs, s->bitmap);Otherwise we just trash the successor. Did we really need a new call for this? I suppose it's faster than merging a 0-bit bitmap, but the additional API complexity for the speed win here seems like premature optimization.
Quoted 6 lines
Quoted 1 line
...well, you already wrote it, so I won't argue.
right idea. However in this case (and even with my approach) it is good to assert here
that successor is empty. and additional api is needed for it.
Sure, it's less flexible and that will help us spot errors in our thinking. Can't argue with that.
Quoted 290 lines
Quoted 164 lines
Quoted 41 lines
+ }
+ }migration/block-dirty-bitmap.c new file +14
-0+ + qemu_mutex_unlock(&finish_lock); +} + +static int dirty_bitmap_load_bits (QEMUFile *f,DirtyBitmapLoadState *s) +{ + uint64_t first_byte = qemu_get_be64(f) << BDRV_SECTOR_BITS; + uint64_t nr_bytes = (uint64_t)qemu_get_be32(f) << BDRV_SECTOR_BITS; + trace_dirty_bitmap_load_bits_enter(first_byte >> BDRV_SECTOR_BITS, + nr_bytes >> BDRV_SECTOR_BITS); + + if (s->flags & DIRTY_BITMAP_MIG_FLAG_ZEROES) { + trace_dirty_bitmap_load_bits_zeroes(); + bdrv_dirty_bitmap_deserialize_zeroes(s->bitmap, first_byte,
nr_bytes,
+ false);
+ } else {
+uint8_t*buf;
+uint64_tbuf_size=qemu_get_be64(f);
+uint64_tneeded_size=
+ bdrv_dirty_bitmap_serialization_size(s->bitmap, +first_byte,nr_bytes); +
+ if (needed_size>buf_size) {
+ error_report("Error: Migrated bitmap granularity doesn't " + "match the destination bitmap '%s' granularity",
+bdrv_dirty_bitmap_name(s->bitmap)); + return-EINVAL;
+ }
+
+ buf =g_malloc(buf_size);
+qemu_get_buffer(f, buf, buf_size);
+ bdrv_dirty_bitmap_deserialize_part(s->bitmap, buf,first_byte,nr_bytes,
+ false);
+g_free(buf);
+ }migration/block-dirty-bitmap.c line 336
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ + return 0; +} +ok
Quoted 42 lines
+static int dirty_bitmap_load_header(QEMUFile *f,
DirtyBitmapLoadState *s)migration/block-dirty-bitmap.c new file +28
-0+{ + Error *local_err = NULL; + s->flags = qemu_get_bitmap_flags(f); + trace_dirty_bitmap_load_header(s->flags); + + if (s->flags & DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME) { + if (!qemu_get_counted_string(f, s->node_name)) { + error_report("Unable to read node name string"); + return -EINVAL; + } + s->bs = bdrv_lookup_bs(s->node_name, s->node_name, &local_err); + if (!s->bs) { + error_report_err(local_err); + return -EINVAL; + } + } else if (!s->bs) { + error_report("Error: block device name is not set"); + return -EINVAL; + } + + if (s->flags & DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME) { + if (!qemu_get_counted_string(f, s->bitmap_name)) { + error_report("Unable to read node name string"); + return -EINVAL; + } + s->bitmap = bdrv_find_dirty_bitmap(s->bs, s->bitmap_name); + + /* bitmap may be NULL here, it wouldn't be an error if it isthe
+ * first occurrence of the bitmap */
+ if (!s->bitmap && !(s->flags &DIRTY_BITMAP_MIG_FLAG_START)) { + error_report("Error: unknown dirty bitmap "
+ "'%s' for block device '%s'",
+s->bitmap_name,s->node_name);
+ return-EINVAL;
+ }
+ } else if (!s->bitmap) {
+error_report("Error: block device name is not set"); + return-EINVAL;
+ }migration/block-dirty-bitmap.c line 336
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ + return 0; +} +ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+static int dirty_bitmap_load (QEMUFile *f,void *opaque,int version_id) +{ + static DirtyBitmapLoadState s; + int ret = 0; + + trace_dirty_bitmap_load_enter(); + + if (version_id != 1) { + return -EINVAL; + } + + do { + dirty_bitmap_load_header(f, &s); + + if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { + ret = dirty_bitmap_load_start(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_COMPLETE) { + dirty_bitmap_load_complete(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_BITS) { + ret = dirty_bitmap_load_bits(f, &s); + } + + if (!ret) { + ret = qemu_file_get_error(f);migration/block-dirty-bitmap.c line 682
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + if (ret) { + return ret; + } + } while (!(s.flags & DIRTY_BITMAP_MIG_FLAG_EOS)); + + trace_dirty_bitmap_load_success(); + return 0; +}OK
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +static int dirty_bitmap_save_setup (QEMUFile *f,void *opaque) +{ + DirtyBitmapMigBitmapState *dbms = NULL; + if (init_dirty_bitmap_migration() < 0) { + return -1;migration/block-dirty-bitmap.c line 698
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { + send_bitmap_start(f, dbms); + } + qemu_put_bitmap_flags(f, DIRTY_BITMAP_MIG_FLAG_EOS); + + return 0; +} +ok
migration/block-dirty-bitmap.c line 703
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active (void *opaque) +{ + return migrate_dirty_bitmaps(); +} +ok
migration/block-dirty-bitmap.c line 708
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active_iterate (void *opaque) +{ + return dirty_bitmap_is_active(opaque) && !runstate_is_running(); +} +On second thought, in patch 9, can you add a little tiny bit of documentation text explaining the exact nature of this callback?
Quoted 5 lines
Is the second portion of the conditional here so that once we reach the postcopy state that .is_active_iterate starts returning true?
"ok" if I'm reading this right, but it might be helped along by a little comment.
yes. ok, I'll add a comment.
Quoted 118 lines
migration/block-dirty-bitmap.c line 713
Quoted 6 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_has_postcopy (void *opaque) +{ + return true; +} +ok! :)
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+static SaveVMHandlers savevm_dirty_bitmap_handlers = { + .save_setup = dirty_bitmap_save_setup, + .save_live_complete_postcopy = dirty_bitmap_save_complete, + .save_live_complete_precopy = dirty_bitmap_save_complete, + .has_postcopy = dirty_bitmap_has_postcopy, + .save_live_pending = dirty_bitmap_save_pending, + .save_live_iterate = dirty_bitmap_save_iterate, + .is_active_iterate = dirty_bitmap_is_active_iterate, + .load_state = dirty_bitmap_load, + .save_cleanup = dirty_bitmap_save_cleanup, + .is_active = dirty_bitmap_is_active,migration/block-dirty-bitmap.c line 734
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+}; + +void dirty_bitmap_mig_init (void ) +{ + QSIMPLEQ_INIT(&dirty_bitmap_mig_state.dbms_list); + + register_savevm_live(NULL, "dirty-bitmap", 0, 1, + &savevm_dirty_bitmap_handlers, + &dirty_bitmap_mig_state); +}ok
dgilbert, would it be worth registering a block-driver-like registration trick that automatically invokes these functions instead of having to hook them up in
vl.c? the more we add, the more hacky it looks to not have some subsystem-wide registration hook.Quoted 73 lines
migration/migration.c +3
-0@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current (void) memset(&mis_current, 0, sizeof(MigrationIncomingState)); qemu_mutex_init(&mis_current.rp_mutex); qemu_event_init(&mis_current.main_thread_load_event, false); + + init_dirty_bitmap_incoming_migration(); + once = true; }return
&mis_current;migration/savevm.c +1
-0@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque) trace_loadvm_postcopy_handle_run_vmstart(); + dirty_bitmap_mig_before_vm_start(); + if (autostart) { /* Hold onto your hats, starting the CPU */ vm_start();vl.c +1
-0@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp) blk_mig_init(); ram_mig_init(); + dirty_bitmap_mig_init(); /* If the currently selected machine wishes to override theunits-per-bus
* property of its default HBA interface type, do so now. */migration/Makefile.objs +0
-0@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.ocommon-obj-y += qemu-file-channel.o
common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o
+common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.o
diff --git a/migration/trace-events b/migration/trace-events indexa04fffb877..e9eb8078d4100644migration/trace-events +0
-0@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'"
colo_send_message(const char *msg)"Send '%s' message"colo_receive_message(const char *msg)"Receive '%s' message"colo_failover_set_state(const char *new_state)"new state %s"migration/trace-events +4
-0+ +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t
nr_sectors,uint64_tdata_size) "\n flags: 0x%x\nstart_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n"migration/trace-events +4
-0+dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size)"pending %" PRIu64 " max: %" PRIu64
migration/trace-events +2
-0+dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t
nr_sectors) "chunk: %" PRIu64 " %" PRIu32migration/trace-events colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" · line 243
Quoted 4 lines
migration/trace-events +4
-0+dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""OK, I think everything here is probably in order, and it's only my understanding that is a barrier at this point. Help me understand the rest of this patch and I'll re-pester migration to get this staged for qemu-next.
Quoted 4 lines
Quoted 1 line
--js
Thank you for reviewing! I hope, I'll post new version next week.
It looks pretty much all set from my end apart from just minor little things. Max reviewed most of the tests and Juan reviewed most of the migration system bits, so I'm hopeful that this will be done soon.
Thanks!
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
In reply to John SnowQuoted 35 lines · * John Snow ([email protected]) wrote:
Quoted 7 lines · Vladimir Sementsov-Ogievskiy
Postcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the same node), then, if their granularities are the same the migration will be done, otherwise the error will be generated.
Quoted 7 lines
If destination qemu doesn't contain such bitmap it will be created.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/migration/misc.h | 3 + migration/migration.h | 3 + migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++Ouch :\
Quoted 8 lines
migration/migration.c | 3 + migration/savevm.c | 2 + vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 14 + 8 files changed, 761 insertions(+) create mode 100644 migration/block-dirty-bitmap.cOrganizationally, you introduce three new 'public' prototypes:
dirty_bitmap_mig_initdirty_bitmap_mig_before_vm_startinit_dirty_bitmap_incoming_migration
Quoted 7 lines
mig_initis advertised inmigration/misc.h, the other two are inmigration/migration.h.
The definitions for all three are inmigration/block-dirty-bitmap.cIn pure naivety, I find it weird to have something that you use in
migration.cand advertised inmigration.hactually exist separately inblock-dirty-bitmap.c; but maybe this is the sanest thing to do.
Actually I think that's OK; it makes sense for all of the code for this
feature to sit in one place, and there doesn't seem any point creating
a header just for this one function.
Quoted 195 lines
Quoted 42 lines
include/migration/misc.h +3
-0@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *);bool migration_in_postcopy_after_devices (MigrationState *);void migration_global_dump (Monitor *mon); +/* migration/block-dirty-bitmap.c */ +void dirty_bitmap_mig_init (void ); +#endif migration/migration.h +3
-0@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages (MigrationIncomingState *mis,const char * rbname,ram_addr_t start,size_t len); +void dirty_bitmap_mig_before_vm_start (void ); +void init_dirty_bitmap_incoming_migration (void ); +#endif migration/block-dirty-bitmap.c new file +12
-0@@ -0,0 +1,734 @@ +/* +* Block dirty bitmap postcopy migration +* +* Copyright IBM, Corp. 2009 +* Copyright (c) 2016-2017 Parallels International GmbH +* +* Authors: +* Liran Schour <[email protected]> +* Vladimir Sementsov-Ogievskiy <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. migration/block-dirty-bitmap.c line 22
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* This file is derived from migration/block.c, so it's author and IBM copyright +* are here, although content is quite different. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +* +* *** +* +* Here postcopy migration of dirty bitmaps is realized. Only named dirty +* bitmaps, associated with root nodes and non-root named nodes are migrated. Put another way, only QMP-addressable bitmaps. Nodes without a name that are not the root have no way to be addressed.
migration/block-dirty-bitmap.c line 24
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu is already containing a dirty bitmap with the same name "If the destination QEMU already contains a dirty bitmap with the same name"
migration/block-dirty-bitmap.c line 26
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* as a migrated bitmap (for the same node), then, if their granularities are +* the same the migration will be done, otherwise the error will be generated. "an error"
migration/block-dirty-bitmap.c line 28
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu doesn't contain such bitmap it will be created. "If the destination QEMU doesn't contain such a bitmap, it will be created."
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+* +* format of migration: +* +* # Header (shared for different chunk types) +* 1, 2 or 4 bytes: flags (see qemu_{put,put}_flags) +* [ 1 byte: node name size ] \ flags & DEVICE_NAME +* [ n bytes: node name ] / +* [ 1 byte: bitmap name size ] \ flags & BITMAP_NAME +* [ n bytes: bitmap name ] / +* +* # Start of bitmap migration (flags & START) +* header +* be64: granularity +* 1 byte: bitmap flags (corresponds to BdrvDirtyBitmap) +* bit 0 - bitmap is enabled +* bit 1 - bitmap is persistent +* bit 2 - bitmap is autoloading +* bits 3-7 - reserved, must be zero +* +* # Complete of bitmap migration (flags & COMPLETE) +* header +* +* # Data chunk of bitmap migration +* header migration/block-dirty-bitmap.c line 62
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* be64: start sector +* be32: number of sectors +* [ be64: buffer size ] \ ! (flags & ZEROES) +* [ n bytes: buffer ] / +* +* The last chunk in stream should contain flags & EOS. The chunk may skip +* device and/or bitmap names, assuming them to be the same with the previous +* chunk. +*/ +Been a while since I reviewed the format, but it seems sane.
Quoted 87 lines
migration/block-dirty-bitmap.c new file +87
-0+#include "qemu/osdep.h" +#include "block/block.h" +#include "block/block_int.h" +#include "sysemu/block-backend.h" +#include "qemu/main-loop.h" +#include "qemu/error-report.h" +#include "migration/misc.h" +#include "migration/migration.h" +#include "migration/qemu-file.h" +#include "migration/vmstate.h" +#include "migration/register.h" +#include "qemu/hbitmap.h" +#include "sysemu/sysemu.h" +#include "qemu/cutils.h" +#include "qapi/error.h" +#include "trace.h" + +#define CHUNK_SIZE (1 << 10) + +/* Flags occupy one, two or four bytes (Big Endian). The size is determined as +* follows: +* in first (most significant) byte bit 8 is clear --> one byte +* in first byte bit 8 is set --> two or four bytes, depending on second +* byte: +* | in second byte bit 8 is clear --> two bytes +* | in second byte bit 8 is set --> four bytes +*/ +#define DIRTY_BITMAP_MIG_FLAG_EOS 0x01 +#define DIRTY_BITMAP_MIG_FLAG_ZEROES 0x02 +#define DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME 0x04 +#define DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME 0x08 +#define DIRTY_BITMAP_MIG_FLAG_START 0x10 +#define DIRTY_BITMAP_MIG_FLAG_COMPLETE 0x20 +#define DIRTY_BITMAP_MIG_FLAG_BITS 0x40 + +#define DIRTY_BITMAP_MIG_EXTRA_FLAGS 0x80 + +#define DIRTY_BITMAP_MIG_START_FLAG_ENABLED 0x01 +#define DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT 0x02 +#define DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD 0x04 +#define DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK 0xf8 + +typedef struct DirtyBitmapMigBitmapState { +/* Written during setup phase. */ +BlockDriverState *bs; +const char *node_name; +BdrvDirtyBitmap *bitmap; +uint64_t total_sectors; +uint64_t sectors_per_chunk; +QSIMPLEQ_ENTRY (DirtyBitmapMigBitmapState) entry; +uint8_t flags; + +/* For bulk phase. */ +bool bulk_completed; +uint64_t cur_sector; +}DirtyBitmapMigBitmapState ; + +typedef struct DirtyBitmapMigState { + QSIMPLEQ_HEAD(dbms_list, DirtyBitmapMigBitmapState) dbms_list; + +bool bulk_completed; + +/* for send_bitmap_bits() */ +BlockDriverState *prev_bs; +BdrvDirtyBitmap *prev_bitmap; +}DirtyBitmapMigState ; + +typedef struct DirtyBitmapLoadState { +uint32_t flags; +char node_name[256 ]; +char bitmap_name[256 ]; +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +}DirtyBitmapLoadState ; + +static DirtyBitmapMigState dirty_bitmap_mig_state; + +typedef struct DirtyBitmapLoadBitmapState { +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +bool migrated; +}DirtyBitmapLoadBitmapState ; +static GSList *enabled_bitmaps; +QemuMutex finish_lock; + +void init_dirty_bitmap_incoming_migration (void ) +{
Quoted 8 lines
migration/block-dirty-bitmap.c line 152
Quoted 3 lines
migration/block-dirty-bitmap.c new file +3
-0+qemu_mutex_init (&finish_lock); +} +This is a little odd as public interface. David, is there a nicer way to integrate in-migrate hooks? I guess it hasn't come up yet. Anyway, it might be nice to leave a comment here for now that says that the only caller is
migration.c, and it will only ever call it once.
I don't think having an init_ function like that is a problem; we've got an init_blk_migration, so I guess it's similar. I generally prefer things to be part of the incoming state structure rather than a file global; but that's not a huge one.
Quoted 329 lines
migration/block-dirty-bitmap.c line 165
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static uint32_t qemu_get_bitmap_flags (QEMUFile *f) +{ +uint8_t flags =qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<8 |qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<16 |qemu_get_be16 (f); + } + } + +return flags; +} +ok
(Sorry for the per-function ACKs, it's just helpful for me to know which functions I followed execution of on paper to make sure I got everything in this big patch.)
migration/block-dirty-bitmap.c line 173
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void qemu_put_bitmap_flags (QEMUFile *f,uint32_t flags) +{ +/* The code currently do not send flags more than one byte */ +assert (!(flags & (0xffffff00 |DIRTY_BITMAP_MIG_EXTRA_FLAGS ))); + +qemu_put_byte (f, flags); +} +ok
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void send_bitmap_header (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint32_t additional_flags) +{ +BlockDriverState *bs = dbms->bs; +BdrvDirtyBitmap *bitmap = dbms->bitmap; +uint32_t flags = additional_flags; +trace_send_bitmap_header_enter (); +migration/block-dirty-bitmap.c line 191
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+if (bs != dirty_bitmap_mig_state.prev_bs) { + dirty_bitmap_mig_state.prev_bs = bs; + flags |=DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ; + } + +if (bitmap != dirty_bitmap_mig_state.prev_bitmap) { + dirty_bitmap_mig_state.prev_bitmap = bitmap; + flags |=DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ; + } +I guess the idea here is that we might be able to skip the node name broadcast, leaving the possibilities as:
- new node and bitmap: send both
- new bitmap, but not node: send bitmap name only
- same for both: send neitherand that otherwise it's not possible to have a new node but "same bitmap" by nature of how the structures are organized.
migration/block-dirty-bitmap.c line 202
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+qemu_put_bitmap_flags (f, flags); + +if (flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +qemu_put_counted_string (f, dbms->node_name); + } + +if (flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +qemu_put_counted_string (f,bdrv_dirty_bitmap_name (bitmap)); + } +} +ok
migration/block-dirty-bitmap.c line 209
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+static void send_bitmap_start (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_START ); +qemu_put_be32 (f,bdrv_dirty_bitmap_granularity (dbms->bitmap)); +qemu_put_byte (f, dbms->flags); +} +ok
migration/block-dirty-bitmap.c line 214
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static void send_bitmap_complete (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_COMPLETE ); +} +ok
Quoted 23 lines
migration/block-dirty-bitmap.c new file +23
-0+static void send_bitmap_bits (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint64_t start_sector,uint32_t nr_sectors) +{ +/* align for buffer_is_zero() */ +uint64_t align =4 *sizeof (long ); +uint64_t unaligned_size = +bdrv_dirty_bitmap_serialization_size ( + dbms->bitmap, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); +uint64_t buf_size = (unaligned_size + align -1 ) & ~(align -1 ); +uint8_t *buf =g_malloc0 (buf_size); +uint32_t flags =DIRTY_BITMAP_MIG_FLAG_BITS ; + +bdrv_dirty_bitmap_serialize_part ( + dbms->bitmap, buf, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); + +if (buffer_is_zero (buf, buf_size)) { +g_free (buf); + buf =NULL ; + flags |=DIRTY_BITMAP_MIG_FLAG_ZEROES ; + } +migration/block-dirty-bitmap.c line 247
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_send_bitmap_bits (flags, start_sector, nr_sectors, buf_size); + +send_bitmap_header (f, dbms, flags); + +qemu_put_be64 (f, start_sector); +qemu_put_be32 (f, nr_sectors); + +/* if a block is zero we need to flush here since the network +* bandwidth is now a lot higher than the storage device bandwidth. +* thus if we queue zero blocks we slow down the migration. */ Can you elaborate on this for me?
Quoted 17 lines
migration/block-dirty-bitmap.c new file +17
-0+if (flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +qemu_fflush (f); + }else { +qemu_put_be64 (f, buf_size); +qemu_put_buffer (f, buf, buf_size); + } + +g_free (buf); +} + + +/* Called with iothread lock taken. */ + +static int init_dirty_bitmap_migration (void ) +{ +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 274
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; +BdrvNextIterator it; + + dirty_bitmap_mig_state.bulk_completed = false; + dirty_bitmap_mig_state.prev_bs =NULL ; + dirty_bitmap_mig_state.prev_bitmap =NULL ; + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ I can't imagine the situation it would arise in, but is it possible to have a named bitmap attached to a now-anonymous node?
Let's say we attach a bitmap to a root node, but then later we insert a filter or something above it and it's no longer at the root.
We should probably prohibit such things, or at the very least toss out an error here instead of silently continuing.
I think the only things valid to just *skip* are nameless bitmaps. Anything named we really ought to either migrate or error out over, I think, even if the circumstances leading to such a configuration are very unlikely.
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+continue ; + } + +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +if (bdrv_dirty_bitmap_frozen (bitmap)) { +error_report ("Can't migrate frozen dirty bitmap: '%s" , +bdrv_dirty_bitmap_name (bitmap));migration/block-dirty-bitmap.c line 296
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -1 ; + } + } + } + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ +continue ; + }Why two-pass? I guess because we don't have to tear anything down if we check for errors in advance?
I worry that if we need to amend the logic here that it's error-prone to update it in two places, so maybe we ought to just have one loop.
migration/block-dirty-bitmap.c line 306
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +bdrv_ref (bs); +bdrv_dirty_bitmap_set_frozen (bitmap, true); +We could say that for any bitmap in the list of pending bitmaps to migrate, we know that we have to un-freeze it, since we never add any bitmaps that are frozen to our list.
migration/block-dirty-bitmap.c line 316
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ dbms =g_new0 (DirtyBitmapMigBitmapState,1 ); + dbms->bs = bs; + dbms->node_name =bdrv_get_node_name (bs); +if (!dbms->node_name || dbms->node_name[0 ] =='\0' ) { + dbms->node_name =bdrv_get_device_name (bs); + } + dbms->bitmap = bitmap; + dbms->total_sectors =bdrv_nb_sectors (bs); + dbms->sectors_per_chunk =CHUNK_SIZE *8 * +bdrv_dirty_bitmap_granularity (bitmap) >>BDRV_SECTOR_BITS ;Eric may want to avoid checking in new code that thinks in sectors, but for the sake of review I don't mind right now.
(Sorry, Eric!)
migration/block-dirty-bitmap.c line 327
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+if (bdrv_dirty_bitmap_enabled (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_ENABLED ; + } +if (bdrv_dirty_bitmap_get_persistance (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ; + } +if (bdrv_dirty_bitmap_get_autoload (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ; + } + +bdrv_dirty_bitmap_set_persistance (bitmap, false);Oh, this might be stranger to undo. Perhaps what we CAN do is limit the second pass to just this action and allow ourselves to unroll everything else.
Quoted 43 lines
migration/block-dirty-bitmap.c new file +43
-0+ +QSIMPLEQ_INSERT_TAIL (&dirty_bitmap_mig_state.dbms_list, + dbms, entry); + } + } + +return 0 ; +} + +/* Called with no lock taken. */ +static void bulk_phase_send_chunk (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +uint32_t nr_sectors =MIN (dbms->total_sectors - dbms->cur_sector, + dbms->sectors_per_chunk); + +send_bitmap_bits (f, dbms, dbms->cur_sector, nr_sectors); + + dbms->cur_sector += nr_sectors; +if (dbms->cur_sector >= dbms->total_sectors) { + dbms->bulk_completed = true; + } +} + +/* Called with no lock taken. */ +static void bulk_phase (QEMUFile *f,bool limit) +{ +DirtyBitmapMigBitmapState *dbms; + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +while (!dbms->bulk_completed) { +bulk_phase_send_chunk (f, dbms); +if (limit &&qemu_file_rate_limit (f)) { +return ; + } + } + } + + dirty_bitmap_mig_state.bulk_completed = true; +} + +/* Called with iothread lock taken. */ +static void dirty_bitmap_mig_cleanup (void ) +{migration/block-dirty-bitmap.c line 380
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; + +while ((dbms =QSIMPLEQ_FIRST (&dirty_bitmap_mig_state.dbms_list)) !=NULL ) { +QSIMPLEQ_REMOVE_HEAD (&dirty_bitmap_mig_state.dbms_list, entry); +bdrv_dirty_bitmap_set_frozen (dbms->bitmap, false); +bdrv_unref (dbms->bs); +g_free (dbms); + } +} +ok
migration/block-dirty-bitmap.c line 386
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+/* for SaveVMHandlers */ +static void dirty_bitmap_save_cleanup (void *opaque) +{ +dirty_bitmap_mig_cleanup (); +} +ok
migration/block-dirty-bitmap.c line 399
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static int dirty_bitmap_save_iterate (QEMUFile *f,void *opaque) +{ +trace_dirty_bitmap_save_iterate (migration_in_postcopy ()); + +if (migration_in_postcopy () && !dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, true); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return dirty_bitmap_mig_state.bulk_completed; +} +What's the purpose behind doing bulk save both here and in
dirty_bitmap_save_complete? Is there a path that isn't guaranteed to call one of the completion functions?
Quoted 2 lines
(The way it's coded seems like it'll work fine, but I'm curious about what looks like a redundancy at a glance.)
I think I can see the reasoning; I think the idea is that in each iteration you send a chunk of data (note the 'true' means that it gets modulated by bandwidth limiting - although we currently don't have that in postcopy - I need to fix that) - so it might not actually send all of it.
The complete guarantees it's all sent.
So note this IS iterating potentially (OK but probably not at the moment)
Quoted 138 lines
migration/block-dirty-bitmap.c line 410
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+/* Called with iothread lock taken. */ + +static int dirty_bitmap_save_complete (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms; +trace_dirty_bitmap_save_complete_enter (); + +if (!dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, false); + } +funny now that we don't actually really iterate over the data, and the bulk phase is now really the _only_ phase :)
migration/block-dirty-bitmap.c line 422
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_complete (f, dbms); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +trace_dirty_bitmap_save_complete_finish (); + +dirty_bitmap_mig_cleanup (); +return 0 ; +} +ok
Quoted 16 lines
migration/block-dirty-bitmap.c new file +16
-0+static void dirty_bitmap_save_pending (QEMUFile *f,void *opaque, +uint64_t max_size, +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) +{ +DirtyBitmapMigBitmapState *dbms; +uint64_t pending =0 ; + +qemu_mutex_lock_iothread (); + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +uint64_t gran =bdrv_dirty_bitmap_granularity (dbms->bitmap); +uint64_t sectors = dbms->bulk_completed ?0 : + dbms->total_sectors - dbms->cur_sector; +migration/block-dirty-bitmap.c line 448
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ pending += (sectors *BDRV_SECTOR_SIZE + gran -1 ) / gran; + } + +qemu_mutex_unlock_iothread (); + +trace_dirty_bitmap_save_pending (pending, max_size); + + *res_postcopy_only += pending; +} +ok
Quoted 19 lines
migration/block-dirty-bitmap.c new file +19
-0+/* First occurrence of this bitmap. It should be created if doesn't exist */ +static int dirty_bitmap_load_start (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; +uint32_t granularity =qemu_get_be32 (f); +uint8_t flags =qemu_get_byte (f); + +if (!s->bitmap) { + s->bitmap =bdrv_create_dirty_bitmap (s->bs, granularity, + s->bitmap_name, &local_err); +if (!s->bitmap) { +error_report_err (local_err); +return -EINVAL ; + } + }else { +uint32_t dest_granularity = +bdrv_dirty_bitmap_granularity (s->bitmap); +if (dest_granularity != granularity) { + error_report("Error: "migration/block-dirty-bitmap.c line 477
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+"Migrated bitmap granularity (%" PRIu32") " +"doesn't match the destination bitmap '%s' " +"granularity (%" PRIu32")" , + granularity, +bdrv_dirty_bitmap_name (s->bitmap), + dest_granularity); +return -EINVAL ; + } + } +I'm a fan of auto-creating the bitmaps. Do you have a use-case for why creating them ahead of time is better, or are you just attempting to be flexible?
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK ) { +error_report ("Unknown flags in migrated dirty bitmap header: %x" , + flags); +return -EINVAL ;migration/block-dirty-bitmap.c line 491
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (flags &DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ) { +bdrv_dirty_bitmap_set_persistance (s->bitmap, true); + } +if (flags &DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ) { +bdrv_dirty_bitmap_set_autoload (s->bitmap, true); + } + +bdrv_disable_dirty_bitmap (s->bitmap);OK, so we start them off as disabled, and
migration/block-dirty-bitmap.c line 500
Quoted 9 lines
migration/block-dirty-bitmap.c new file +9
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_ENABLED ) { +DirtyBitmapLoadBitmapState *b; + +bdrv_dirty_bitmap_create_successor (s->bs, s->bitmap, &local_err); +if (local_err) { +error_report_err (local_err); +return -EINVAL ; + } +If they weren't disabled on the host, we create a successor to record writes while we wait for the rest of the data to arrive.
migration/block-dirty-bitmap.c line 505
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+ b =g_new (DirtyBitmapLoadBitmapState,1 ); + b->bs = s->bs; + b->bitmap = s->bitmap; + b->migrated = false; + enabled_bitmaps =g_slist_prepend (enabled_bitmaps, b);And we make a note of which ones we were supposed to re-enable.
migration/block-dirty-bitmap.c line 335
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ } + +return 0 ; +}OK
Quoted 7 lines
migration/block-dirty-bitmap.c line 511
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ +void dirty_bitmap_mig_before_vm_start (void )Similarly, I guess I find it weird that this is a callable interface.
David, no nice hook for just-prior-to-vm-start calls? a .postcopy_pivot() hook or something might be nice..
Hmm, the other way a lot of devices do it is to hook the runstate change.
Quoted 291 lines
migration/block-dirty-bitmap.c line 519
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+{ +GSList *item; + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; +Anyway, if I am reading this right; we call this in the postcopy phase prior to receiving the entirety of the bitmaps (so before receiving COMPLETE) ... right?
migration/block-dirty-bitmap.c line 521
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+if (b->migrated) { +bdrv_enable_dirty_bitmap (b->bitmap);...or, am I confused, and we might receive a COMPLETE event prior to the postcopy pivot?
Anyway, I suppose this code says "If we received the entire bitmap, go ahead and enable it."
migration/block-dirty-bitmap.c line 523
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ }else { +bdrv_dirty_bitmap_enable_successor (b->bitmap);And this says "If we haven't received it yet, enable the successor to record writes until we get the rest of the data."
Quoted 14 lines
migration/block-dirty-bitmap.c new file +14
-0+ } + +g_free (b); + } + +g_slist_free (enabled_bitmaps); + enabled_bitmaps =NULL ; + +qemu_mutex_unlock (&finish_lock); +} + +static void dirty_bitmap_load_complete (QEMUFile *f,DirtyBitmapLoadState *s) +{ +GSList *item;migration/block-dirty-bitmap.c line 547
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_dirty_bitmap_load_complete (); +bdrv_dirty_bitmap_deserialize_finish (s->bitmap); + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; + +if (b->bitmap == s->bitmap) { + b->migrated = true;we can probably break; here now, right?
(This whole stanza is a little strange, can't we cache the active DirtyBitmapLoadBitmapState in DirtyBitmapLoadState? I guess not, because we're looking up the BdrvDirtyBitmap itself and caching that instead, so either way we have some kind of lookup on every context switch.)
migration/block-dirty-bitmap.c line 559
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ } + } + +if (bdrv_dirty_bitmap_frozen (s->bitmap)) { +if (enabled_bitmaps ==NULL ) { +/* in postcopy */ +AioContext *aio_context =bdrv_get_aio_context (s->bs); +aio_context_acquire (aio_context); + +bdrv_reclaim_dirty_bitmap (s->bs, s->bitmap, &error_abort); +bdrv_enable_dirty_bitmap (s->bitmap); +OK, so if
enabled_bitmapsis gone, that means we already pivoted and we're live on the receiving end here. We merge the successor into the fully deserialized bitmap and enable it.migration/block-dirty-bitmap.c line 563
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+aio_context_release (aio_context); + }else { +/* target not started, successor is empty */ +bdrv_dirty_bitmap_release_successor (s->bs, s->bitmap);Otherwise we just trash the successor. Did we really need a new call for this? I suppose it's faster than merging a 0-bit bitmap, but the additional API complexity for the speed win here seems like premature optimization.
...well, you already wrote it, so I won't argue.
Quoted 31 lines
migration/block-dirty-bitmap.c new file +31
-0+ } + } + +qemu_mutex_unlock (&finish_lock); +} + +static int dirty_bitmap_load_bits (QEMUFile *f,DirtyBitmapLoadState *s) +{ +uint64_t first_byte =qemu_get_be64 (f) <<BDRV_SECTOR_BITS ; +uint64_t nr_bytes = (uint64_t )qemu_get_be32 (f) <<BDRV_SECTOR_BITS ; +trace_dirty_bitmap_load_bits_enter (first_byte >>BDRV_SECTOR_BITS , + nr_bytes >>BDRV_SECTOR_BITS ); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +trace_dirty_bitmap_load_bits_zeroes (); +bdrv_dirty_bitmap_deserialize_zeroes (s->bitmap, first_byte, nr_bytes, + false); + }else { +uint8_t *buf; +uint64_t buf_size =qemu_get_be64 (f); +uint64_t needed_size = +bdrv_dirty_bitmap_serialization_size (s->bitmap, + first_byte, nr_bytes); + +if (needed_size > buf_size) { +error_report ("Error: Migrated bitmap granularity doesn't " +"match the destination bitmap '%s' granularity" , +bdrv_dirty_bitmap_name (s->bitmap)); +return -EINVAL ; + } +migration/block-dirty-bitmap.c line 604
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ buf =g_malloc (buf_size); +qemu_get_buffer (f, buf, buf_size); +bdrv_dirty_bitmap_deserialize_part (s->bitmap, buf, first_byte, nr_bytes, + false); +g_free (buf); + } + +return 0 ; +} +ok
Quoted 34 lines
migration/block-dirty-bitmap.c new file +34
-0+static int dirty_bitmap_load_header (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; + s->flags =qemu_get_bitmap_flags (f); +trace_dirty_bitmap_load_header (s->flags); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +if (!qemu_get_counted_string (f, s->node_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bs =bdrv_lookup_bs (s->node_name, s->node_name, &local_err); +if (!s->bs) { +error_report_err (local_err); +return -EINVAL ; + } + }else if (!s->bs) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +if (!qemu_get_counted_string (f, s->bitmap_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bitmap =bdrv_find_dirty_bitmap (s->bs, s->bitmap_name); + +/* bitmap may be NULL here, it wouldn't be an error if it is the +* first occurrence of the bitmap */ +if (!s->bitmap && !(s->flags &DIRTY_BITMAP_MIG_FLAG_START )) { +error_report ("Error: unknown dirty bitmap " +"'%s' for block device '%s'" , + s->bitmap_name, s->node_name);migration/block-dirty-bitmap.c line 648
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -EINVAL ; + } + }else if (!s->bitmap) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +return 0 ; +} +ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+static int dirty_bitmap_load (QEMUFile *f,void *opaque,int version_id) +{ +static DirtyBitmapLoadState s; +int ret =0 ; + +trace_dirty_bitmap_load_enter (); + +if (version_id !=1 ) { +return -EINVAL ; + } + + do { + dirty_bitmap_load_header(f, &s); + + if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { + ret = dirty_bitmap_load_start(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_COMPLETE) { + dirty_bitmap_load_complete(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_BITS) { + ret = dirty_bitmap_load_bits(f, &s); + } + + if (!ret) { + ret = qemu_file_get_error(f);migration/block-dirty-bitmap.c line 682
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (ret) { +return ret; + } + }while (!(s.flags &DIRTY_BITMAP_MIG_FLAG_EOS )); + +trace_dirty_bitmap_load_success (); +return 0 ; +}OK
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +static int dirty_bitmap_save_setup (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms =NULL ; +if (init_dirty_bitmap_migration () <0 ) { +return -1 ;migration/block-dirty-bitmap.c line 698
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_start (f, dbms); + } +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return 0 ; +} +ok
migration/block-dirty-bitmap.c line 703
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active (void *opaque) +{ +return migrate_dirty_bitmaps (); +} +ok
migration/block-dirty-bitmap.c line 708
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active_iterate (void *opaque) +{ +return dirty_bitmap_is_active (opaque) && !runstate_is_running (); +} +On second thought, in patch 9, can you add a little tiny bit of documentation text explaining the exact nature of this callback?
Is the second portion of the conditional here so that once we reach the postcopy state that .is_active_iterate starts returning true?
"ok" if I'm reading this right, but it might be helped along by a little comment.
migration/block-dirty-bitmap.c line 713
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_has_postcopy (void *opaque) +{ +return true; +} +ok! :)
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+static SaveVMHandlers savevm_dirty_bitmap_handlers = { + .save_setup = dirty_bitmap_save_setup, + .save_live_complete_postcopy = dirty_bitmap_save_complete, + .save_live_complete_precopy = dirty_bitmap_save_complete, + .has_postcopy = dirty_bitmap_has_postcopy, + .save_live_pending = dirty_bitmap_save_pending, + .save_live_iterate = dirty_bitmap_save_iterate, + .is_active_iterate = dirty_bitmap_is_active_iterate, + .load_state = dirty_bitmap_load, + .save_cleanup = dirty_bitmap_save_cleanup, + .is_active = dirty_bitmap_is_active,migration/block-dirty-bitmap.c line 734
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+}; + +void dirty_bitmap_mig_init (void ) +{ +QSIMPLEQ_INIT (&dirty_bitmap_mig_state.dbms_list); + +register_savevm_live (NULL ,"dirty-bitmap" ,0 ,1 , + &savevm_dirty_bitmap_handlers, + &dirty_bitmap_mig_state); +}ok
Quoted 4 lines
dgilbert, would it be worth registering a block-driver-like registration trick that automatically invokes these functions instead of having to hook them up in
vl.c? the more we add, the more hacky it looks to not have some subsystem-wide registration hook.
Maybe it's just simpler to put a mig_init in migration/migration.c and make one call in vl.c; I'd rather keep a simple function than a whole registration mechanism.
Quoted 80 lines
Quoted 64 lines
migration/migration.c +3
-0@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current(void)memset (&mis_current,0 ,sizeof (MigrationIncomingState));qemu_mutex_init (&mis_current.rp_mutex);qemu_event_init (&mis_current.main_thread_load_event, false); + +init_dirty_bitmap_incoming_migration (); + once = true; }return &mis_current;migration/savevm.c +2
-0@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)trace_loadvm_postcopy_handle_run_vmstart (); +dirty_bitmap_mig_before_vm_start (); +if (autostart) {/* Hold onto your hats, starting the CPU */ vm_start ();vl.c +1
-0@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp)blk_mig_init ();ram_mig_init (); +dirty_bitmap_mig_init ();/* If the currently selected machine wishes to override the units-per-bus * property of its default HBA interface type, do so now. */ migration/Makefile.objs +1
-0@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.o common-obj-y += qemu-file-channel.o common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o +common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.omigration/trace-events +4
-0@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" colo_failover_set_state(const char *new_state) "new state %s" + +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t nr_sectors, uint64_t data_size) "\n flags: 0x%x\n start_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n"migration/trace-events colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" · line 243
Quoted 10 lines
migration/trace-events +10
-0+dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size) "pending %" PRIu64 " max: %" PRIu64 +dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t nr_sectors) "chunk: %" PRIu64 " %" PRIu32 +dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""OK, I think everything here is probably in order, and it's only my understanding that is a barrier at this point. Help me understand the rest of this patch and I'll re-pester migration to get this staged for qemu-next.
Quoted 1 line
--js
Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Re: [Qemu-devel] [PATCH v8 10/14] migration: add postcopy migration of dirty bitmaps
Quoted 40 lines · Dr. David Alan Gilbert
Quoted 39 lines · * John Snow ([email protected]) wrote:
Quoted 7 lines · Vladimir Sementsov-Ogievskiy
Postcopy migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated.
If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the same node), then, if their granularities are the same the migration will be done, otherwise the error will be generated.
Quoted 7 lines
If destination qemu doesn't contain such bitmap it will be created.
Signed-off-by Vladimir Sementsov-Ogievskiy <[email protected]>--- include/migration/misc.h | 3 + migration/migration.h | 3 + migration/block-dirty-bitmap.c | 734 +++++++++++++++++++++++++++++++++++++++++Ouch :\
Quoted 8 lines
migration/migration.c | 3 + migration/savevm.c | 2 + vl.c | 1 + migration/Makefile.objs | 1 + migration/trace-events | 14 + 8 files changed, 761 insertions(+) create mode 100644 migration/block-dirty-bitmap.cOrganizationally, you introduce three new 'public' prototypes:
dirty_bitmap_mig_initdirty_bitmap_mig_before_vm_startinit_dirty_bitmap_incoming_migration
mig_initis advertised inmigration/misc.h, the other two are inmigration/migration.h.
The definitions for all three are inmigration/block-dirty-bitmap.c
Quoted 8 lines
Quoted 3 lines
In pure naivety, I find it weird to have something that you use in
migration.cand advertised inmigration.hactually exist separately inblock-dirty-bitmap.c; but maybe this is the sanest thing to do.Actually I think that's OK; it makes sense for all of the code for this
feature to sit in one place, and there doesn't seem any point creating
a header just for this one function.
OK, just stood out to me at first. I don't really have better ideas.
Quoted 204 lines
Quoted 195 lines
Quoted 42 lines
include/migration/misc.h +3
-0@@ -55,4 +55,7 @@ bool migration_has_failed(MigrationState *);bool migration_in_postcopy_after_devices (MigrationState *);void migration_global_dump (Monitor *mon); +/* migration/block-dirty-bitmap.c */ +void dirty_bitmap_mig_init (void ); +#endif migration/migration.h +3
-0@@ -211,4 +211,7 @@ void migrate_send_rp_pong(MigrationIncomingState *mis,void migrate_send_rp_req_pages (MigrationIncomingState *mis,const char * rbname,ram_addr_t start,size_t len); +void dirty_bitmap_mig_before_vm_start (void ); +void init_dirty_bitmap_incoming_migration (void ); +#endif migration/block-dirty-bitmap.c new file +12
-0@@ -0,0 +1,734 @@ +/* +* Block dirty bitmap postcopy migration +* +* Copyright IBM, Corp. 2009 +* Copyright (c) 2016-2017 Parallels International GmbH +* +* Authors: +* Liran Schour <[email protected]> +* Vladimir Sementsov-Ogievskiy <[email protected]> +* +* This work is licensed under the terms of the GNU GPL, version 2. See +* the COPYING file in the top-level directory. migration/block-dirty-bitmap.c line 22
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* This file is derived from migration/block.c, so it's author and IBM copyright +* are here, although content is quite different. +* +* Contributions after 2012-01-13 are licensed under the terms of the +* GNU GPL, version 2 or (at your option) any later version. +* +* *** +* +* Here postcopy migration of dirty bitmaps is realized. Only named dirty +* bitmaps, associated with root nodes and non-root named nodes are migrated. Put another way, only QMP-addressable bitmaps. Nodes without a name that are not the root have no way to be addressed.
migration/block-dirty-bitmap.c line 24
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu is already containing a dirty bitmap with the same name "If the destination QEMU already contains a dirty bitmap with the same name"
migration/block-dirty-bitmap.c line 26
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* as a migrated bitmap (for the same node), then, if their granularities are +* the same the migration will be done, otherwise the error will be generated. "an error"
migration/block-dirty-bitmap.c line 28
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+* +* If destination qemu doesn't contain such bitmap it will be created. "If the destination QEMU doesn't contain such a bitmap, it will be created."
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+* +* format of migration: +* +* # Header (shared for different chunk types) +* 1, 2 or 4 bytes: flags (see qemu_{put,put}_flags) +* [ 1 byte: node name size ] \ flags & DEVICE_NAME +* [ n bytes: node name ] / +* [ 1 byte: bitmap name size ] \ flags & BITMAP_NAME +* [ n bytes: bitmap name ] / +* +* # Start of bitmap migration (flags & START) +* header +* be64: granularity +* 1 byte: bitmap flags (corresponds to BdrvDirtyBitmap) +* bit 0 - bitmap is enabled +* bit 1 - bitmap is persistent +* bit 2 - bitmap is autoloading +* bits 3-7 - reserved, must be zero +* +* # Complete of bitmap migration (flags & COMPLETE) +* header +* +* # Data chunk of bitmap migration +* header migration/block-dirty-bitmap.c line 62
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+* be64: start sector +* be32: number of sectors +* [ be64: buffer size ] \ ! (flags & ZEROES) +* [ n bytes: buffer ] / +* +* The last chunk in stream should contain flags & EOS. The chunk may skip +* device and/or bitmap names, assuming them to be the same with the previous +* chunk. +*/ +Been a while since I reviewed the format, but it seems sane.
Quoted 87 lines
migration/block-dirty-bitmap.c new file +87
-0+#include "qemu/osdep.h" +#include "block/block.h" +#include "block/block_int.h" +#include "sysemu/block-backend.h" +#include "qemu/main-loop.h" +#include "qemu/error-report.h" +#include "migration/misc.h" +#include "migration/migration.h" +#include "migration/qemu-file.h" +#include "migration/vmstate.h" +#include "migration/register.h" +#include "qemu/hbitmap.h" +#include "sysemu/sysemu.h" +#include "qemu/cutils.h" +#include "qapi/error.h" +#include "trace.h" + +#define CHUNK_SIZE (1 << 10) + +/* Flags occupy one, two or four bytes (Big Endian). The size is determined as +* follows: +* in first (most significant) byte bit 8 is clear --> one byte +* in first byte bit 8 is set --> two or four bytes, depending on second +* byte: +* | in second byte bit 8 is clear --> two bytes +* | in second byte bit 8 is set --> four bytes +*/ +#define DIRTY_BITMAP_MIG_FLAG_EOS 0x01 +#define DIRTY_BITMAP_MIG_FLAG_ZEROES 0x02 +#define DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME 0x04 +#define DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME 0x08 +#define DIRTY_BITMAP_MIG_FLAG_START 0x10 +#define DIRTY_BITMAP_MIG_FLAG_COMPLETE 0x20 +#define DIRTY_BITMAP_MIG_FLAG_BITS 0x40 + +#define DIRTY_BITMAP_MIG_EXTRA_FLAGS 0x80 + +#define DIRTY_BITMAP_MIG_START_FLAG_ENABLED 0x01 +#define DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT 0x02 +#define DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD 0x04 +#define DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK 0xf8 + +typedef struct DirtyBitmapMigBitmapState { +/* Written during setup phase. */ +BlockDriverState *bs; +const char *node_name; +BdrvDirtyBitmap *bitmap; +uint64_t total_sectors; +uint64_t sectors_per_chunk; +QSIMPLEQ_ENTRY (DirtyBitmapMigBitmapState) entry; +uint8_t flags; + +/* For bulk phase. */ +bool bulk_completed; +uint64_t cur_sector; +}DirtyBitmapMigBitmapState ; + +typedef struct DirtyBitmapMigState { + QSIMPLEQ_HEAD(dbms_list, DirtyBitmapMigBitmapState) dbms_list; + +bool bulk_completed; + +/* for send_bitmap_bits() */ +BlockDriverState *prev_bs; +BdrvDirtyBitmap *prev_bitmap; +}DirtyBitmapMigState ; + +typedef struct DirtyBitmapLoadState { +uint32_t flags; +char node_name[256 ]; +char bitmap_name[256 ]; +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +}DirtyBitmapLoadState ; + +static DirtyBitmapMigState dirty_bitmap_mig_state; + +typedef struct DirtyBitmapLoadBitmapState { +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap; +bool migrated; +}DirtyBitmapLoadBitmapState ; +static GSList *enabled_bitmaps; +QemuMutex finish_lock; + +void init_dirty_bitmap_incoming_migration (void ) +{Quoted 8 lines
migration/block-dirty-bitmap.c line 152
Quoted 3 lines
migration/block-dirty-bitmap.c new file +3
-0+qemu_mutex_init (&finish_lock); +} +This is a little odd as public interface. David, is there a nicer way to integrate in-migrate hooks? I guess it hasn't come up yet. Anyway, it might be nice to leave a comment here for now that says that the only caller is
migration.c, and it will only ever call it once.
Quoted 5 lines
I don't think having an
init_function like that is a problem; we've got aninit_blk_migration, so I guess it's similar. I generally prefer things to be part of the incoming state structure rather than a file global; but that's not a huge one.
Okey-Dokey.
Quoted 332 lines
Quoted 329 lines
migration/block-dirty-bitmap.c line 165
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static uint32_t qemu_get_bitmap_flags (QEMUFile *f) +{ +uint8_t flags =qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<8 |qemu_get_byte (f); +if (flags &DIRTY_BITMAP_MIG_EXTRA_FLAGS ) { + flags = flags <<16 |qemu_get_be16 (f); + } + } + +return flags; +} +ok
(Sorry for the per-function ACKs, it's just helpful for me to know which functions I followed execution of on paper to make sure I got everything in this big patch.)
migration/block-dirty-bitmap.c line 173
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void qemu_put_bitmap_flags (QEMUFile *f,uint32_t flags) +{ +/* The code currently do not send flags more than one byte */ +assert (!(flags & (0xffffff00 |DIRTY_BITMAP_MIG_EXTRA_FLAGS ))); + +qemu_put_byte (f, flags); +} +ok
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+static void send_bitmap_header (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint32_t additional_flags) +{ +BlockDriverState *bs = dbms->bs; +BdrvDirtyBitmap *bitmap = dbms->bitmap; +uint32_t flags = additional_flags; +trace_send_bitmap_header_enter (); +migration/block-dirty-bitmap.c line 191
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+if (bs != dirty_bitmap_mig_state.prev_bs) { + dirty_bitmap_mig_state.prev_bs = bs; + flags |=DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ; + } + +if (bitmap != dirty_bitmap_mig_state.prev_bitmap) { + dirty_bitmap_mig_state.prev_bitmap = bitmap; + flags |=DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ; + } +I guess the idea here is that we might be able to skip the node name broadcast, leaving the possibilities as:
- new node and bitmap: send both
- new bitmap, but not node: send bitmap name only
- same for both: send neitherand that otherwise it's not possible to have a new node but "same bitmap" by nature of how the structures are organized.
migration/block-dirty-bitmap.c line 202
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+qemu_put_bitmap_flags (f, flags); + +if (flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +qemu_put_counted_string (f, dbms->node_name); + } + +if (flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +qemu_put_counted_string (f,bdrv_dirty_bitmap_name (bitmap)); + } +} +ok
migration/block-dirty-bitmap.c line 209
Quoted 7 lines
migration/block-dirty-bitmap.c new file +7
-0+static void send_bitmap_start (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_START ); +qemu_put_be32 (f,bdrv_dirty_bitmap_granularity (dbms->bitmap)); +qemu_put_byte (f, dbms->flags); +} +ok
migration/block-dirty-bitmap.c line 214
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static void send_bitmap_complete (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +send_bitmap_header (f, dbms,DIRTY_BITMAP_MIG_FLAG_COMPLETE ); +} +ok
Quoted 23 lines
migration/block-dirty-bitmap.c new file +23
-0+static void send_bitmap_bits (QEMUFile *f,DirtyBitmapMigBitmapState *dbms, +uint64_t start_sector,uint32_t nr_sectors) +{ +/* align for buffer_is_zero() */ +uint64_t align =4 *sizeof (long ); +uint64_t unaligned_size = +bdrv_dirty_bitmap_serialization_size ( + dbms->bitmap, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); +uint64_t buf_size = (unaligned_size + align -1 ) & ~(align -1 ); +uint8_t *buf =g_malloc0 (buf_size); +uint32_t flags =DIRTY_BITMAP_MIG_FLAG_BITS ; + +bdrv_dirty_bitmap_serialize_part ( + dbms->bitmap, buf, start_sector <<BDRV_SECTOR_BITS , + (uint64_t )nr_sectors <<BDRV_SECTOR_BITS ); + +if (buffer_is_zero (buf, buf_size)) { +g_free (buf); + buf =NULL ; + flags |=DIRTY_BITMAP_MIG_FLAG_ZEROES ; + } +migration/block-dirty-bitmap.c line 247
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_send_bitmap_bits (flags, start_sector, nr_sectors, buf_size); + +send_bitmap_header (f, dbms, flags); + +qemu_put_be64 (f, start_sector); +qemu_put_be32 (f, nr_sectors); + +/* if a block is zero we need to flush here since the network +* bandwidth is now a lot higher than the storage device bandwidth. +* thus if we queue zero blocks we slow down the migration. */ Can you elaborate on this for me?
Quoted 17 lines
migration/block-dirty-bitmap.c new file +17
-0+if (flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +qemu_fflush (f); + }else { +qemu_put_be64 (f, buf_size); +qemu_put_buffer (f, buf, buf_size); + } + +g_free (buf); +} + + +/* Called with iothread lock taken. */ + +static int init_dirty_bitmap_migration (void ) +{ +BlockDriverState *bs; +BdrvDirtyBitmap *bitmap;migration/block-dirty-bitmap.c line 274
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; +BdrvNextIterator it; + + dirty_bitmap_mig_state.bulk_completed = false; + dirty_bitmap_mig_state.prev_bs =NULL ; + dirty_bitmap_mig_state.prev_bitmap =NULL ; + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ I can't imagine the situation it would arise in, but is it possible to have a named bitmap attached to a now-anonymous node?
Let's say we attach a bitmap to a root node, but then later we insert a filter or something above it and it's no longer at the root.
We should probably prohibit such things, or at the very least toss out an error here instead of silently continuing.
I think the only things valid to just *skip* are nameless bitmaps. Anything named we really ought to either migrate or error out over, I think, even if the circumstances leading to such a configuration are very unlikely.
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+continue ; + } + +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +if (bdrv_dirty_bitmap_frozen (bitmap)) { +error_report ("Can't migrate frozen dirty bitmap: '%s" , +bdrv_dirty_bitmap_name (bitmap));migration/block-dirty-bitmap.c line 296
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -1 ; + } + } + } + +for (bs =bdrv_first (&it); bs; bs =bdrv_next (&it)) { +if (!bdrv_get_device_or_node_name (bs)) { +/* not named non-root node */ +continue ; + }Why two-pass? I guess because we don't have to tear anything down if we check for errors in advance?
I worry that if we need to amend the logic here that it's error-prone to update it in two places, so maybe we ought to just have one loop.
migration/block-dirty-bitmap.c line 306
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ +for (bitmap =bdrv_dirty_bitmap_next (bs,NULL ); bitmap; + bitmap =bdrv_dirty_bitmap_next (bs, bitmap)) { +if (!bdrv_dirty_bitmap_name (bitmap)) { +continue ; + } + +bdrv_ref (bs); +bdrv_dirty_bitmap_set_frozen (bitmap, true); +We could say that for any bitmap in the list of pending bitmaps to migrate, we know that we have to un-freeze it, since we never add any bitmaps that are frozen to our list.
migration/block-dirty-bitmap.c line 316
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ dbms =g_new0 (DirtyBitmapMigBitmapState,1 ); + dbms->bs = bs; + dbms->node_name =bdrv_get_node_name (bs); +if (!dbms->node_name || dbms->node_name[0 ] =='\0' ) { + dbms->node_name =bdrv_get_device_name (bs); + } + dbms->bitmap = bitmap; + dbms->total_sectors =bdrv_nb_sectors (bs); + dbms->sectors_per_chunk =CHUNK_SIZE *8 * +bdrv_dirty_bitmap_granularity (bitmap) >>BDRV_SECTOR_BITS ;Eric may want to avoid checking in new code that thinks in sectors, but for the sake of review I don't mind right now.
(Sorry, Eric!)
migration/block-dirty-bitmap.c line 327
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+if (bdrv_dirty_bitmap_enabled (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_ENABLED ; + } +if (bdrv_dirty_bitmap_get_persistance (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ; + } +if (bdrv_dirty_bitmap_get_autoload (bitmap)) { + dbms->flags |=DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ; + } + +bdrv_dirty_bitmap_set_persistance (bitmap, false);Oh, this might be stranger to undo. Perhaps what we CAN do is limit the second pass to just this action and allow ourselves to unroll everything else.
Quoted 43 lines
migration/block-dirty-bitmap.c new file +43
-0+ +QSIMPLEQ_INSERT_TAIL (&dirty_bitmap_mig_state.dbms_list, + dbms, entry); + } + } + +return 0 ; +} + +/* Called with no lock taken. */ +static void bulk_phase_send_chunk (QEMUFile *f,DirtyBitmapMigBitmapState *dbms) +{ +uint32_t nr_sectors =MIN (dbms->total_sectors - dbms->cur_sector, + dbms->sectors_per_chunk); + +send_bitmap_bits (f, dbms, dbms->cur_sector, nr_sectors); + + dbms->cur_sector += nr_sectors; +if (dbms->cur_sector >= dbms->total_sectors) { + dbms->bulk_completed = true; + } +} + +/* Called with no lock taken. */ +static void bulk_phase (QEMUFile *f,bool limit) +{ +DirtyBitmapMigBitmapState *dbms; + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +while (!dbms->bulk_completed) { +bulk_phase_send_chunk (f, dbms); +if (limit &&qemu_file_rate_limit (f)) { +return ; + } + } + } + + dirty_bitmap_mig_state.bulk_completed = true; +} + +/* Called with iothread lock taken. */ +static void dirty_bitmap_mig_cleanup (void ) +{migration/block-dirty-bitmap.c line 380
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+DirtyBitmapMigBitmapState *dbms; + +while ((dbms =QSIMPLEQ_FIRST (&dirty_bitmap_mig_state.dbms_list)) !=NULL ) { +QSIMPLEQ_REMOVE_HEAD (&dirty_bitmap_mig_state.dbms_list, entry); +bdrv_dirty_bitmap_set_frozen (dbms->bitmap, false); +bdrv_unref (dbms->bs); +g_free (dbms); + } +} +ok
migration/block-dirty-bitmap.c line 386
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+/* for SaveVMHandlers */ +static void dirty_bitmap_save_cleanup (void *opaque) +{ +dirty_bitmap_mig_cleanup (); +} +ok
migration/block-dirty-bitmap.c line 399
Quoted 13 lines
migration/block-dirty-bitmap.c new file +13
-0+static int dirty_bitmap_save_iterate (QEMUFile *f,void *opaque) +{ +trace_dirty_bitmap_save_iterate (migration_in_postcopy ()); + +if (migration_in_postcopy () && !dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, true); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return dirty_bitmap_mig_state.bulk_completed; +} +What's the purpose behind doing bulk save both here and in
dirty_bitmap_save_complete? Is there a path that isn't guaranteed to call one of the completion functions?Quoted 2 lines
(The way it's coded seems like it'll work fine, but I'm curious about what looks like a redundancy at a glance.)
Quoted 9 lines
I think I can see the reasoning; I think the idea is that in each iteration you send a chunk of data (note the 'true' means that it gets modulated by bandwidth limiting - although we currently don't have that in postcopy - I need to fix that) - so it might not actually send all of it.
The complete guarantees it's all sent.
So note this IS iterating potentially (OK but probably not at the moment)
OK, thanks for the insight on it! It's probably fine as-is, then, it just looks odd at a glance.
Quoted 143 lines
Quoted 143 lines
migration/block-dirty-bitmap.c line 410
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+/* Called with iothread lock taken. */ + +static int dirty_bitmap_save_complete (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms; +trace_dirty_bitmap_save_complete_enter (); + +if (!dirty_bitmap_mig_state.bulk_completed) { +bulk_phase (f, false); + } +funny now that we don't actually really iterate over the data, and the bulk phase is now really the _only_ phase :)
migration/block-dirty-bitmap.c line 422
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_complete (f, dbms); + } + +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +trace_dirty_bitmap_save_complete_finish (); + +dirty_bitmap_mig_cleanup (); +return 0 ; +} +ok
Quoted 16 lines
migration/block-dirty-bitmap.c new file +16
-0+static void dirty_bitmap_save_pending (QEMUFile *f,void *opaque, +uint64_t max_size, +uint64_t *res_precopy_only, +uint64_t *res_compatible, +uint64_t *res_postcopy_only) +{ +DirtyBitmapMigBitmapState *dbms; +uint64_t pending =0 ; + +qemu_mutex_lock_iothread (); + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +uint64_t gran =bdrv_dirty_bitmap_granularity (dbms->bitmap); +uint64_t sectors = dbms->bulk_completed ?0 : + dbms->total_sectors - dbms->cur_sector; +migration/block-dirty-bitmap.c line 448
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ pending += (sectors *BDRV_SECTOR_SIZE + gran -1 ) / gran; + } + +qemu_mutex_unlock_iothread (); + +trace_dirty_bitmap_save_pending (pending, max_size); + + *res_postcopy_only += pending; +} +ok
Quoted 19 lines
migration/block-dirty-bitmap.c new file +19
-0+/* First occurrence of this bitmap. It should be created if doesn't exist */ +static int dirty_bitmap_load_start (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; +uint32_t granularity =qemu_get_be32 (f); +uint8_t flags =qemu_get_byte (f); + +if (!s->bitmap) { + s->bitmap =bdrv_create_dirty_bitmap (s->bs, granularity, + s->bitmap_name, &local_err); +if (!s->bitmap) { +error_report_err (local_err); +return -EINVAL ; + } + }else { +uint32_t dest_granularity = +bdrv_dirty_bitmap_granularity (s->bitmap); +if (dest_granularity != granularity) { + error_report("Error: "migration/block-dirty-bitmap.c line 477
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+"Migrated bitmap granularity (%" PRIu32") " +"doesn't match the destination bitmap '%s' " +"granularity (%" PRIu32")" , + granularity, +bdrv_dirty_bitmap_name (s->bitmap), + dest_granularity); +return -EINVAL ; + } + } +I'm a fan of auto-creating the bitmaps. Do you have a use-case for why creating them ahead of time is better, or are you just attempting to be flexible?
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_RESERVED_MASK ) { +error_report ("Unknown flags in migrated dirty bitmap header: %x" , + flags); +return -EINVAL ;migration/block-dirty-bitmap.c line 491
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (flags &DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT ) { +bdrv_dirty_bitmap_set_persistance (s->bitmap, true); + } +if (flags &DIRTY_BITMAP_MIG_START_FLAG_AUTOLOAD ) { +bdrv_dirty_bitmap_set_autoload (s->bitmap, true); + } + +bdrv_disable_dirty_bitmap (s->bitmap);OK, so we start them off as disabled, and
migration/block-dirty-bitmap.c line 500
Quoted 9 lines
migration/block-dirty-bitmap.c new file +9
-0+if (flags &DIRTY_BITMAP_MIG_START_FLAG_ENABLED ) { +DirtyBitmapLoadBitmapState *b; + +bdrv_dirty_bitmap_create_successor (s->bs, s->bitmap, &local_err); +if (local_err) { +error_report_err (local_err); +return -EINVAL ; + } +If they weren't disabled on the host, we create a successor to record writes while we wait for the rest of the data to arrive.
migration/block-dirty-bitmap.c line 505
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+ b =g_new (DirtyBitmapLoadBitmapState,1 ); + b->bs = s->bs; + b->bitmap = s->bitmap; + b->migrated = false; + enabled_bitmaps =g_slist_prepend (enabled_bitmaps, b);And we make a note of which ones we were supposed to re-enable.
migration/block-dirty-bitmap.c line 335
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+ } + +return 0 ; +}OK
migration/block-dirty-bitmap.c line 511
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ +void dirty_bitmap_mig_before_vm_start (void )Similarly, I guess I find it weird that this is a callable interface.
Quoted 6 lines
Quoted 2 lines
David, no nice hook for just-prior-to-vm-start calls? a .postcopy_pivot() hook or something might be nice..
Hmm, the other way a lot of devices do it is to hook the runstate change.
I guess we're not a device as-such, and that usually occurs after the change, doesn't it? It's pretty vitally important that we *guarantee* not a single bit gets written until we can install our bitmaps properly to make sure we track every last write properly.
If you're fine with the hardcoded hook for now, I am too, but I wanted to point it out.
Quoted 291 lines
Quoted 291 lines
migration/block-dirty-bitmap.c line 519
Quoted 8 lines
migration/block-dirty-bitmap.c new file +8
-0+{ +GSList *item; + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; +Anyway, if I am reading this right; we call this in the postcopy phase prior to receiving the entirety of the bitmaps (so before receiving COMPLETE) ... right?
migration/block-dirty-bitmap.c line 521
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+if (b->migrated) { +bdrv_enable_dirty_bitmap (b->bitmap);...or, am I confused, and we might receive a COMPLETE event prior to the postcopy pivot?
Anyway, I suppose this code says "If we received the entire bitmap, go ahead and enable it."
migration/block-dirty-bitmap.c line 523
Quoted 2 lines
migration/block-dirty-bitmap.c new file +2
-0+ }else { +bdrv_dirty_bitmap_enable_successor (b->bitmap);And this says "If we haven't received it yet, enable the successor to record writes until we get the rest of the data."
Quoted 14 lines
migration/block-dirty-bitmap.c new file +14
-0+ } + +g_free (b); + } + +g_slist_free (enabled_bitmaps); + enabled_bitmaps =NULL ; + +qemu_mutex_unlock (&finish_lock); +} + +static void dirty_bitmap_load_complete (QEMUFile *f,DirtyBitmapLoadState *s) +{ +GSList *item;migration/block-dirty-bitmap.c line 547
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+trace_dirty_bitmap_load_complete (); +bdrv_dirty_bitmap_deserialize_finish (s->bitmap); + +qemu_mutex_lock (&finish_lock); + +for (item = enabled_bitmaps; item; item =g_slist_next (item)) { +DirtyBitmapLoadBitmapState *b = item->data; + +if (b->bitmap == s->bitmap) { + b->migrated = true;we can probably break; here now, right?
(This whole stanza is a little strange, can't we cache the active DirtyBitmapLoadBitmapState in DirtyBitmapLoadState? I guess not, because we're looking up the BdrvDirtyBitmap itself and caching that instead, so either way we have some kind of lookup on every context switch.)
migration/block-dirty-bitmap.c line 559
Quoted 12 lines
migration/block-dirty-bitmap.c new file +12
-0+ } + } + +if (bdrv_dirty_bitmap_frozen (s->bitmap)) { +if (enabled_bitmaps ==NULL ) { +/* in postcopy */ +AioContext *aio_context =bdrv_get_aio_context (s->bs); +aio_context_acquire (aio_context); + +bdrv_reclaim_dirty_bitmap (s->bs, s->bitmap, &error_abort); +bdrv_enable_dirty_bitmap (s->bitmap); +OK, so if
enabled_bitmapsis gone, that means we already pivoted and we're live on the receiving end here. We merge the successor into the fully deserialized bitmap and enable it.migration/block-dirty-bitmap.c line 563
Quoted 4 lines
migration/block-dirty-bitmap.c new file +4
-0+aio_context_release (aio_context); + }else { +/* target not started, successor is empty */ +bdrv_dirty_bitmap_release_successor (s->bs, s->bitmap);Otherwise we just trash the successor. Did we really need a new call for this? I suppose it's faster than merging a 0-bit bitmap, but the additional API complexity for the speed win here seems like premature optimization.
...well, you already wrote it, so I won't argue.
Quoted 31 lines
migration/block-dirty-bitmap.c new file +31
-0+ } + } + +qemu_mutex_unlock (&finish_lock); +} + +static int dirty_bitmap_load_bits (QEMUFile *f,DirtyBitmapLoadState *s) +{ +uint64_t first_byte =qemu_get_be64 (f) <<BDRV_SECTOR_BITS ; +uint64_t nr_bytes = (uint64_t )qemu_get_be32 (f) <<BDRV_SECTOR_BITS ; +trace_dirty_bitmap_load_bits_enter (first_byte >>BDRV_SECTOR_BITS , + nr_bytes >>BDRV_SECTOR_BITS ); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_ZEROES ) { +trace_dirty_bitmap_load_bits_zeroes (); +bdrv_dirty_bitmap_deserialize_zeroes (s->bitmap, first_byte, nr_bytes, + false); + }else { +uint8_t *buf; +uint64_t buf_size =qemu_get_be64 (f); +uint64_t needed_size = +bdrv_dirty_bitmap_serialization_size (s->bitmap, + first_byte, nr_bytes); + +if (needed_size > buf_size) { +error_report ("Error: Migrated bitmap granularity doesn't " +"match the destination bitmap '%s' granularity" , +bdrv_dirty_bitmap_name (s->bitmap)); +return -EINVAL ; + } +migration/block-dirty-bitmap.c line 604
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ buf =g_malloc (buf_size); +qemu_get_buffer (f, buf, buf_size); +bdrv_dirty_bitmap_deserialize_part (s->bitmap, buf, first_byte, nr_bytes, + false); +g_free (buf); + } + +return 0 ; +} +ok
Quoted 34 lines
migration/block-dirty-bitmap.c new file +34
-0+static int dirty_bitmap_load_header (QEMUFile *f,DirtyBitmapLoadState *s) +{ +Error *local_err =NULL ; + s->flags =qemu_get_bitmap_flags (f); +trace_dirty_bitmap_load_header (s->flags); + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_DEVICE_NAME ) { +if (!qemu_get_counted_string (f, s->node_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bs =bdrv_lookup_bs (s->node_name, s->node_name, &local_err); +if (!s->bs) { +error_report_err (local_err); +return -EINVAL ; + } + }else if (!s->bs) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +if (s->flags &DIRTY_BITMAP_MIG_FLAG_BITMAP_NAME ) { +if (!qemu_get_counted_string (f, s->bitmap_name)) { +error_report ("Unable to read node name string" ); +return -EINVAL ; + } + s->bitmap =bdrv_find_dirty_bitmap (s->bs, s->bitmap_name); + +/* bitmap may be NULL here, it wouldn't be an error if it is the +* first occurrence of the bitmap */ +if (!s->bitmap && !(s->flags &DIRTY_BITMAP_MIG_FLAG_START )) { +error_report ("Error: unknown dirty bitmap " +"'%s' for block device '%s'" , + s->bitmap_name, s->node_name);migration/block-dirty-bitmap.c line 648
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+return -EINVAL ; + } + }else if (!s->bitmap) { +error_report ("Error: block device name is not set" ); +return -EINVAL ; + } + +return 0 ; +} +ok
Quoted 24 lines
migration/block-dirty-bitmap.c new file +24
-0+static int dirty_bitmap_load (QEMUFile *f,void *opaque,int version_id) +{ +static DirtyBitmapLoadState s; +int ret =0 ; + +trace_dirty_bitmap_load_enter (); + +if (version_id !=1 ) { +return -EINVAL ; + } + + do { + dirty_bitmap_load_header(f, &s); + + if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { + ret = dirty_bitmap_load_start(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_COMPLETE) { + dirty_bitmap_load_complete(f, &s); + } else if (s.flags & DIRTY_BITMAP_MIG_FLAG_BITS) { + ret = dirty_bitmap_load_bits(f, &s); + } + + if (!ret) { + ret = qemu_file_get_error(f);migration/block-dirty-bitmap.c line 682
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + +if (ret) { +return ret; + } + }while (!(s.flags &DIRTY_BITMAP_MIG_FLAG_EOS )); + +trace_dirty_bitmap_load_success (); +return 0 ; +}OK
Quoted 6 lines
migration/block-dirty-bitmap.c new file +6
-0+ +static int dirty_bitmap_save_setup (QEMUFile *f,void *opaque) +{ +DirtyBitmapMigBitmapState *dbms =NULL ; +if (init_dirty_bitmap_migration () <0 ) { +return -1 ;migration/block-dirty-bitmap.c line 698
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+ } + + QSIMPLEQ_FOREACH(dbms, &dirty_bitmap_mig_state.dbms_list, entry) { +send_bitmap_start (f, dbms); + } +qemu_put_bitmap_flags (f,DIRTY_BITMAP_MIG_FLAG_EOS ); + +return 0 ; +} +ok
migration/block-dirty-bitmap.c line 703
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active (void *opaque) +{ +return migrate_dirty_bitmaps (); +} +ok
migration/block-dirty-bitmap.c line 708
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_is_active_iterate (void *opaque) +{ +return dirty_bitmap_is_active (opaque) && !runstate_is_running (); +} +On second thought, in patch 9, can you add a little tiny bit of documentation text explaining the exact nature of this callback?
Is the second portion of the conditional here so that once we reach the postcopy state that .is_active_iterate starts returning true?
"ok" if I'm reading this right, but it might be helped along by a little comment.
migration/block-dirty-bitmap.c line 713
Quoted 5 lines
migration/block-dirty-bitmap.c new file +5
-0+static bool dirty_bitmap_has_postcopy (void *opaque) +{ +return true; +} +ok! :)
Quoted 11 lines
migration/block-dirty-bitmap.c new file +11
-0+static SaveVMHandlers savevm_dirty_bitmap_handlers = { + .save_setup = dirty_bitmap_save_setup, + .save_live_complete_postcopy = dirty_bitmap_save_complete, + .save_live_complete_precopy = dirty_bitmap_save_complete, + .has_postcopy = dirty_bitmap_has_postcopy, + .save_live_pending = dirty_bitmap_save_pending, + .save_live_iterate = dirty_bitmap_save_iterate, + .is_active_iterate = dirty_bitmap_is_active_iterate, + .load_state = dirty_bitmap_load, + .save_cleanup = dirty_bitmap_save_cleanup, + .is_active = dirty_bitmap_is_active,migration/block-dirty-bitmap.c line 734
Quoted 10 lines
migration/block-dirty-bitmap.c new file +10
-0+}; + +void dirty_bitmap_mig_init (void ) +{ +QSIMPLEQ_INIT (&dirty_bitmap_mig_state.dbms_list); + +register_savevm_live (NULL ,"dirty-bitmap" ,0 ,1 , + &savevm_dirty_bitmap_handlers, + &dirty_bitmap_mig_state); +}ok
Quoted 9 lines
Quoted 4 lines
dgilbert, would it be worth registering a block-driver-like registration trick that automatically invokes these functions instead of having to hook them up in
vl.c? the more we add, the more hacky it looks to not have some subsystem-wide registration hook.Maybe it's just simpler to put a
mig_initinmigration/migration.cand make one call invl.c; I'd rather keep a simple function than a whole registration mechanism.
Yup. I just sometimes think about if vl.c could be ... prettied up to any acceptable level. It's kind of a wilderness up there.
Quoted 80 lines
Quoted 80 lines
Quoted 64 lines
migration/migration.c +3
-0@@ -150,6 +150,9 @@ MigrationIncomingState *migration_incoming_get_current(void)memset (&mis_current,0 ,sizeof (MigrationIncomingState));qemu_mutex_init (&mis_current.rp_mutex);qemu_event_init (&mis_current.main_thread_load_event, false); + +init_dirty_bitmap_incoming_migration (); + once = true; }return &mis_current;migration/savevm.c +2
-0@@ -1673,6 +1673,8 @@ static void loadvm_postcopy_handle_run_bh(void *opaque)trace_loadvm_postcopy_handle_run_vmstart (); +dirty_bitmap_mig_before_vm_start (); +if (autostart) {/* Hold onto your hats, starting the CPU */ vm_start ();vl.c +1
-0@@ -4642,6 +4642,7 @@ int main(int argc, char **argv, char **envp)blk_mig_init ();ram_mig_init (); +dirty_bitmap_mig_init ();/* If the currently selected machine wishes to override the units-per-bus * property of its default HBA interface type, do so now. */ migration/Makefile.objs +1
-0@@ -6,6 +6,7 @@ common-obj-y += qemu-file.o global_state.o common-obj-y += qemu-file-channel.o common-obj-y += xbzrle.o postcopy-ram.o common-obj-y += qjson.o +common-obj-y += block-dirty-bitmap.o common-obj-$(CONFIG_RDMA) += rdma.omigration/trace-events +4
-0@@ -227,3 +227,17 @@ colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" colo_send_message(const char *msg) "Send '%s' message" colo_receive_message(const char *msg) "Receive '%s' message" colo_failover_set_state(const char *new_state) "new state %s" + +# migration/block-dirty-bitmap.c +send_bitmap_header_enter(void) "" +send_bitmap_bits(uint32_t flags, uint64_t start_sector, uint32_t nr_sectors, uint64_t data_size) "\n flags: 0x%x\n start_sector: %" PRIu64 "\n nr_sectors: %" PRIu32 "\n data_size: %" PRIu64 "\n"migration/trace-events colo_vm_state_change(const char *old, const char *new) "Change '%s' => '%s'" · line 243
Quoted 10 lines
migration/trace-events +10
-0+dirty_bitmap_save_iterate(int in_postcopy) "in postcopy: %d" +dirty_bitmap_save_complete_enter(void) "" +dirty_bitmap_save_complete_finish(void) "" +dirty_bitmap_save_pending(uint64_t pending, uint64_t max_size) "pending %" PRIu64 " max: %" PRIu64 +dirty_bitmap_load_complete(void) "" +dirty_bitmap_load_bits_enter(uint64_t first_sector, uint32_t nr_sectors) "chunk: %" PRIu64 " %" PRIu32 +dirty_bitmap_load_bits_zeroes(void) "" +dirty_bitmap_load_header(uint32_t flags) "flags 0x%x" +dirty_bitmap_load_enter(void) "" +dirty_bitmap_load_success(void) ""OK, I think everything here is probably in order, and it's only my understanding that is a barrier at this point. Help me understand the rest of this patch and I'll re-pester migration to get this staged for qemu-next.
Quoted 7 lines
Quoted 1 line
--js
Dave
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Thanks for taking a peek, David.
--js
PATCH v8 11/14 iotests: add default node-name
In reply to Vladimir Sementsov-OgievskiyWhen testing migration, auto-generated by qemu node-names differs in source and destination qemu and migration fails. After this patch, auto-generated by iotest nodenames will be the same.
--- tests/qemu-iotests/iotests.py | 2 ++ 1 file changed, 2 insertions(+)
tests/qemu-iotests/iotests.py +2 -0
@@ -216,6 +216,8 @@ class VM(qtest.QEMUQtestMachine): options.append('file=%s' % path) options.append('format=%s' % format) options.append('cache=%s' % cachemode) + if 'node-name' not in opts: + options.append('node-name=drivenode%d' % self._num_drives) if opts: options.append(opts)
Signature · 1 line
2.11.1
PATCH v8 12/14 iotests: add dirty bitmap migration test
In reply to Vladimir Sementsov-OgievskiyThe test starts two vms (vm_a, vm_b), create dirty bitmap in the first one, do several writes to corresponding device and then migrate vm_a to vm_b with dirty bitmaps.
--- tests/qemu-iotests/169 | 86 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/169.out | 5 +++ tests/qemu-iotests/group | 1 + 3 files changed, 92 insertions(+) create mode 100755 tests/qemu-iotests/169 create mode 100644 tests/qemu-iotests/169.out
tests/qemu-iotests/169 new file +86 -0
@@ -0,0 +1,86 @@ +#!/usr/bin/env python +# +# Tests for dirty bitmaps migration. +# +# Copyright (C) Vladimir Sementsov-Ogievskiy 2015-2016 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +import os +import iotests +import time +from iotests import qemu_img + +disk_a = os.path.join(iotests.test_dir, 'disk_a') +disk_b = os.path.join(iotests.test_dir, 'disk_b') +fifo = os.path.join(iotests.test_dir, 'mig_fifo') + +class TestDirtyBitmapMigration(iotests.QMPTestCase): + + def setUp(self): + size = 0x400000000 # 1G + os.mkfifo(fifo) + qemu_img('create', '-f', iotests.imgfmt, disk_a, str(size)) + qemu_img('create', '-f', iotests.imgfmt, disk_b, str(size)) + self.vm_a = iotests.VM(path_suffix='a').add_drive(disk_a) + self.vm_b = iotests.VM(path_suffix='b').add_drive(disk_b) + self.vm_b.add_incoming("exec: cat '" + fifo + "'") + self.vm_a.launch() + self.vm_b.launch() + + def tearDown(self): + self.vm_a.shutdown() + self.vm_b.shutdown() + os.remove(disk_a) + os.remove(disk_b) + os.remove(fifo) + + def test_migration(self): + granularity = 512 + regions = [ + { 'start': 0, 'count': 0x100000 }, + { 'start': 0x100000000, 'count': 0x200000 }, + { 'start': 0x399900000, 'count': 0x100000 } + ] + + result = self.vm_a.qmp('block-dirty-bitmap-add', node='drive0', + name='bitmap', granularity=granularity) + self.assert_qmp(result, 'return', {}); + + for r in regions: + self.vm_a.hmp_qemu_io('drive0', + 'write %d %d' % (r['start'], r['count'])) + + result = self.vm_a.qmp('x-debug-block-dirty-bitmap-sha256', + node='drive0', name='bitmap') + sha256 = result['return']['sha256'] + + result = self.vm_a.qmp('migrate-set-capabilities', + capabilities=[{'capability': 'dirty-bitmaps', + 'state': True}]) + self.assert_qmp(result, 'return', {}) + + result = self.vm_a.qmp('migrate', uri='exec:cat>' + fifo) + self.assertNotEqual(self.vm_a.event_wait("STOP"), None) + self.assertNotEqual(self.vm_b.event_wait("RESUME"), None) + time.sleep(2) + + result = self.vm_b.qmp('x-debug-block-dirty-bitmap-sha256', + node='drive0', name='bitmap') + self.assert_qmp(result, 'return/sha256', sha256); + + +if __name__ == '__main__': + iotests.main()
tests/qemu-iotests/169.out new file +5 -0
@@ -0,0 +1,5 @@ +. +---------------------------------------------------------------------- +Ran 1 tests + +OK
tests/qemu-iotests/group +1 -0
@@ -169,6 +169,7 @@ 162 auto quick 163 rw auto quick 165 rw auto quick +169 rw auto quick 170 rw auto quick 171 rw auto quick 172 auto
Signature · 1 line
2.11.1
PATCH v8 13/14 iotests: add dirty bitmap postcopy test
In reply to Vladimir Sementsov-OgievskiyTest
- start two vms (vm_a, vm_b)
- in a
- do writes from set A
- do writes from set B
- fix bitmap sha256
- clear bitmap
- do writes from set A
- start migration
- than, in b
- wait vm start (postcopy should start)
- do writes from set B
- check bitmap sha256
The test should verify postcopy migration and then merging with delta (changes in target, during postcopy process).
Reduce supported cache modes to only 'none', because with cache on time from source.STOP to target.RESUME is unpredictable and we can fail with timout while waiting for target.RESUME.
--- tests/qemu-iotests/169 | 74 +++++++++++++++++++++++++++++++++++++------ tests/qemu-iotests/169.out | 4 +-- tests/qemu-iotests/iotests.py | 7 +++- 3 files changed, 72 insertions(+), 13 deletions(-)
tests/qemu-iotests/169 +64 -10
@@ -29,8 +29,14 @@ fifo = os.path.join(iotests.test_dir, 'mig_fifo') class TestDirtyBitmapMigration(iotests.QMPTestCase): - def setUp(self): - size = 0x400000000 # 1G + def tearDown(self): + self.vm_a.shutdown() + self.vm_b.shutdown() + os.remove(disk_a) + os.remove(disk_b) + os.remove(fifo) + + def init(self, size): os.mkfifo(fifo) qemu_img('create', '-f', iotests.imgfmt, disk_a, str(size)) qemu_img('create', '-f', iotests.imgfmt, disk_b, str(size))
@@ -40,14 +46,8 @@ class TestDirtyBitmapMigration(iotests.QMPTestCase): self.vm_a.launch() self.vm_b.launch() - def tearDown(self): - self.vm_a.shutdown() - self.vm_b.shutdown() - os.remove(disk_a) - os.remove(disk_b) - os.remove(fifo) - def test_migration(self): + self.init(0x400000000) # 1G granularity = 512 regions = [ { 'start': 0, 'count': 0x100000 },
@@ -81,6 +81,60 @@ class TestDirtyBitmapMigration(iotests.QMPTestCase): node='drive0', name='bitmap') self.assert_qmp(result, 'return/sha256', sha256); + def test_postcopy(self): + self.init(0x4000000000) # 256G + write_size = 0x40000000 + granularity = 512 + chunk = 4096 + + result = self.vm_a.qmp('block-dirty-bitmap-add', node='drive0', + name='bitmap', granularity=granularity) + self.assert_qmp(result, 'return', {}); + + s = 0 + while s < write_size: + self.vm_a.hmp_qemu_io('drive0', 'write %d %d' % (s, chunk)) + s += 0x10000 + s = 0x8000 + while s < write_size: + self.vm_a.hmp_qemu_io('drive0', 'write %d %d' % (s, chunk)) + s += 0x10000 + + result = self.vm_a.qmp('x-debug-block-dirty-bitmap-sha256', + node='drive0', name='bitmap') + sha256 = result['return']['sha256'] + + result = self.vm_a.qmp('block-dirty-bitmap-clear', node='drive0', + name='bitmap') + self.assert_qmp(result, 'return', {}); + s = 0 + while s < write_size: + self.vm_a.hmp_qemu_io('drive0', 'write %d %d' % (s, chunk)) + s += 0x10000 + + result = self.vm_a.qmp('migrate-set-capabilities', + capabilities=[{'capability': 'dirty-bitmaps', + 'state': True}]) + self.assert_qmp(result, 'return', {}) + + result = self.vm_a.qmp('migrate', uri='exec:cat>' + fifo) + self.assertNotEqual(self.vm_a.event_wait("STOP"), None) + self.assertNotEqual(self.vm_b.event_wait("RESUME"), None) + + s = 0x8000 + while s < write_size: + self.vm_b.hmp_qemu_io('drive0', 'write %d %d' % (s, chunk)) + s += 0x10000 + + result = self.vm_b.qmp('query-block'); + while len(result['return'][0]['dirty-bitmaps']) > 1: + time.sleep(2) + result = self.vm_b.qmp('query-block'); + + result = self.vm_b.qmp('x-debug-block-dirty-bitmap-sha256', + node='drive0', name='bitmap') + + self.assert_qmp(result, 'return/sha256', sha256); if __name__ == '__main__': - iotests.main() + iotests.main(supported_fmts=['qcow2'], supported_cache_modes=['none'])
tests/qemu-iotests/169.out +2 -2
@@ -1,5 +1,5 @@ -. +.. ---------------------------------------------------------------------- -Ran 1 tests +Ran 2 tests OK
tests/qemu-iotests/iotests.py +6 -1
@@ -432,6 +432,10 @@ def verify_platform(supported_oses=['linux']): if True not in [sys.platform.startswith(x) for x in supported_oses]: notrun('not suitable for this OS: %s' % sys.platform) +def verify_cache_mode(supported_cache_modes=[]): + if supported_cache_modes and (cachemode not in supported_cache_modes): + notrun('not suitable for this cache mode: %s' % cachemode) + def supports_quorum(): return 'quorum' in qemu_img_pipe('--help')
@@ -440,7 +444,7 @@ def verify_quorum(): if not supports_quorum(): notrun('quorum support missing') -def main(supported_fmts=[], supported_oses=['linux']): +def main(supported_fmts=[], supported_oses=['linux'], supported_cache_modes=[]): '''Run tests''' global debug
@@ -457,6 +461,7 @@ def main(supported_fmts=[], supported_oses=['linux']): verbosity = 1 verify_image_format(supported_fmts) verify_platform(supported_oses) + verify_cache_mode(supported_cache_modes) # We need to filter out the time taken from the output so that qemu-iotest # can reliably diff the results against master output.
Signature · 1 line
2.11.1
PATCH v8 14/14 iotests: add persistent bitmap migration test
In reply to Vladimir Sementsov-OgievskiyTest that persistent bitmap migrates and its persistance property migrates too.
--- tests/qemu-iotests/169 | 21 ++++++++++++++++++--- tests/qemu-iotests/169.out | 4 ++-- 2 files changed, 20 insertions(+), 5 deletions(-)
tests/qemu-iotests/169 +18 -3
@@ -46,7 +46,7 @@ class TestDirtyBitmapMigration(iotests.QMPTestCase): self.vm_a.launch() self.vm_b.launch() - def test_migration(self): + def do_test_migration(self, persistent=False): self.init(0x400000000) # 1G granularity = 512 regions = [
@@ -55,8 +55,13 @@ class TestDirtyBitmapMigration(iotests.QMPTestCase): { 'start': 0x399900000, 'count': 0x100000 } ] - result = self.vm_a.qmp('block-dirty-bitmap-add', node='drive0', - name='bitmap', granularity=granularity) + if persistent: + result = self.vm_a.qmp('block-dirty-bitmap-add', node='drive0', + name='bitmap', granularity=granularity, + persistent=True, autoload=True) + else: + result = self.vm_a.qmp('block-dirty-bitmap-add', node='drive0', + name='bitmap', granularity=granularity) self.assert_qmp(result, 'return', {}); for r in regions:
@@ -77,10 +82,20 @@ class TestDirtyBitmapMigration(iotests.QMPTestCase): self.assertNotEqual(self.vm_b.event_wait("RESUME"), None) time.sleep(2) + if persistent: + self.vm_b.shutdown() + self.vm_b.launch() + result = self.vm_b.qmp('x-debug-block-dirty-bitmap-sha256', node='drive0', name='bitmap') self.assert_qmp(result, 'return/sha256', sha256); + def test_migration(self): + self.do_test_migration() + + def test_migration_persistent(self): + self.do_test_migration(persistent=True) + def test_postcopy(self): self.init(0x4000000000) # 256G write_size = 0x40000000
tests/qemu-iotests/169.out +2 -2
@@ -1,5 +1,5 @@ -.. +... ---------------------------------------------------------------------- -Ran 2 tests +Ran 3 tests OK
Signature · 1 line
2.11.1
This series failed build test on s390x host. Please find the details below.
Hi,
This series failed build test on s390x host. Please find the details below.
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH v8 00/14] Dirty bitmaps postcopy migration
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
# Testing script will be invoked under the git checkout with # HEAD pointing to a commit that has the patches applied on top of "base"
# branch set -e echo "=== ENV ===" env echo "=== PACKAGES ===" rpm -qa echo "=== TEST BEGIN ===" CC=$HOME/bin/cc INSTALL=$PWD/install BUILD=$PWD/build echo -n "Using CC: " realpath $CC mkdir -p $BUILD $INSTALL SRC=$PWD cd $BUILD $SRC/configure --cc=$CC --prefix=$INSTALL make -j4 # XXX: we need reliable clean up # make check -j4 V=1 make install === TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] - [tag update] patchew/[email protected] -> patchew/[email protected] * [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
b200358 iotests: add persistent bitmap migration test
2bc0dad iotests: add dirty bitmap postcopy test
a572a25 iotests: add dirty bitmap migration test
012af82 iotests: add default node-name
d0573d2 migration: add postcopy migration of dirty bitmaps 1c5318d migration: add is_active_iterate handler
7697c9a migration/qemu-file: add qemu_put_counted_string() b4e20bb migration: include migrate_dirty_bitmaps in migrate_postcopy 272f21c qapi: add dirty-bitmaps migration capability
7f3bb03 migration: introduce postcopy-only pending
c8f365f block/dirty-bitmap: add bdrv_dirty_bitmap_set_frozen 93cb6f1 block/dirty-bitmap: add bdrv_dirty_bitmap_release_successor 92ce534 block/dirty-bitmap: add locked version of bdrv_release_dirty_bitmap abf3538 block/dirty-bitmap: add bdrv_dirty_bitmap_enable_successor()
=== OUTPUT BEGIN ===
=== ENV ===
XDG_SESSION_ID=69560
SHELL=/bin/sh
USER=fam
PATCHEW=/home/fam/patchew/patchew-cli -s http://patchew.org --nodebug PATH=/usr/bin:/bin PWD=/var/tmp/patchew-tester-tmp-30ljxus4/src LANG=en_US.UTF-8
HOME=/home/fam
SHLVL=2
LOGNAME=fam DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus XDG_RUNTIME_DIR=/run/user/1012
_=/usr/bin/env
=== PACKAGES ===
gpg-pubkey-873529b8-54e386ff
xz-libs-5.2.2-2.fc24.s390x
libxshmfence-1.2-3.fc24.s390x
giflib-4.1.6-15.fc24.s390x
trousers-lib-0.3.13-6.fc24.s390x ncurses-base-6.0-6.20160709.fc25.noarch gmp-6.1.1-1.fc25.s390x
libidn-1.33-1.fc25.s390x
slang-2.3.0-7.fc25.s390x
pkgconfig-0.29.1-1.fc25.s390x
alsa-lib-1.1.1-2.fc25.s390x yum-metadata-parser-1.1.4-17.fc25.s390x python3-slip-dbus-0.6.4-4.fc25.noarch python2-cssselect-0.9.2-1.fc25.noarch createrepo_c-libs-0.10.0-6.fc25.s390x initscripts-9.69-1.fc25.s390x
parted-3.2-21.fc25.s390x
flex-2.6.0-3.fc25.s390x
colord-libs-1.3.4-1.fc25.s390x python-osbs-client-0.33-3.fc25.noarch perl-Pod-Simple-3.35-1.fc25.noarch python2-simplejson-3.10.0-1.fc25.s390x brltty-5.4-2.fc25.s390x
librados2-10.2.4-2.fc25.s390x
tcp_wrappers-7.6-83.fc25.s390x libcephfs_jni1-10.2.4-2.fc25.s390x nettle-devel-3.3-1.fc25.s390x bzip2-devel-1.0.6-21.fc25.s390x
libuuid-2.28.2-2.fc25.s390x
python3-dnf-1.1.10-6.fc25.noarch texlive-kpathsea-doc-svn41139-33.fc25.1.noarch openssh-7.4p1-4.fc25.s390x texlive-kpathsea-bin-svn40473-33.20160520.fc25.1.s390x texlive-graphics-svn41015-33.fc25.1.noarch texlive-dvipdfmx-def-svn40328-33.fc25.1.noarch texlive-mfware-svn40768-33.fc25.1.noarch texlive-texlive-scripts-svn41433-33.fc25.1.noarch texlive-euro-svn22191.1.1-33.fc25.1.noarch texlive-etex-svn37057.0-33.fc25.1.noarch texlive-iftex-svn29654.0.2-33.fc25.1.noarch texlive-palatino-svn31835.0-33.fc25.1.noarch texlive-texlive-docindex-svn41430-33.fc25.1.noarch texlive-xunicode-svn30466.0.981-33.fc25.1.noarch texlive-koma-script-svn41508-33.fc25.1.noarch texlive-pst-grad-svn15878.1.06-33.fc25.1.noarch texlive-pst-blur-svn15878.2.0-33.fc25.1.noarch texlive-jknapltx-svn19440.0-33.fc25.1.noarch texinfo-6.1-4.fc25.s390x
openssl-devel-1.0.2k-1.fc25.s390x
jansson-2.10-2.fc25.s390x
fedora-repos-25-4.noarch
perl-Errno-1.25-387.fc25.s390x
acl-2.2.52-13.fc25.s390x
systemd-pam-231-17.fc25.s390x NetworkManager-libnm-1.4.4-5.fc25.s390x poppler-0.45.0-5.fc25.s390x
ccache-3.3.4-1.fc25.s390x
valgrind-3.12.0-9.fc25.s390x
perl-open-1.10-387.fc25.noarch
libgcc-6.4.1-1.fc25.s390x
libsoup-2.56.1-1.fc25.s390x libstdc++-devel-6.4.1-1.fc25.s390x libobjc-6.4.1-1.fc25.s390x
python2-rpm-4.13.0.1-2.fc25.s390x python2-gluster-3.10.5-1.fc25.s390x rpm-build-4.13.0.1-2.fc25.s390x glibc-static-2.24-10.fc25.s390x
lz4-1.8.0-1.fc25.s390x
xapian-core-libs-1.2.24-1.fc25.s390x elfutils-libelf-devel-0.169-1.fc25.s390x nss-softokn-3.32.0-1.2.fc25.s390x
pango-1.40.9-1.fc25.s390x glibc-debuginfo-common-2.24-10.fc25.s390x libaio-0.3.110-6.fc24.s390x
libfontenc-1.1.3-3.fc24.s390x
lzo-2.08-8.fc24.s390x
isl-0.14-5.fc24.s390x
libXau-1.0.8-6.fc24.s390x
linux-atm-libs-2.5.1-14.fc24.s390x libXext-1.3.3-4.fc24.s390x
libXxf86vm-1.1.4-3.fc24.s390x
bison-3.0.4-4.fc24.s390x
perl-srpm-macros-1-20.fc25.noarch
gawk-4.1.3-8.fc25.s390x libwayland-client-1.12.0-1.fc25.s390x perl-Exporter-5.72-366.fc25.noarch perl-version-0.99.17-1.fc25.s390x fftw-libs-double-3.3.5-3.fc25.s390x libssh2-1.8.0-1.fc25.s390x ModemManager-glib-1.6.4-1.fc25.s390x newt-python3-0.52.19-2.fc25.s390x python-munch-2.0.4-3.fc25.noarch python-bugzilla-1.2.2-4.fc25.noarch libedit-3.1-16.20160618cvs.fc25.s390x createrepo_c-0.10.0-6.fc25.s390x device-mapper-multipath-libs-0.4.9-83.fc25.s390x yum-3.4.3-510.fc25.noarch
mozjs17-17.0.0-16.fc25.s390x
libselinux-2.5-13.fc25.s390x python2-pyparsing-2.1.10-1.fc25.noarch cairo-gobject-1.14.8-1.fc25.s390x xorg-x11-proto-devel-7.7-20.fc25.noarch brlapi-0.6.5-2.fc25.s390x
librados-devel-10.2.4-2.fc25.s390x libXinerama-devel-1.1.3-6.fc24.s390x lua-posix-33.3.1-3.fc25.s390x usbredir-devel-0.7.1-2.fc24.s390x python3-dnf-plugins-core-0.1.21-5.fc25.noarch texlive-pdftex-doc-svn41149-33.fc25.1.noarch openssh-clients-7.4p1-4.fc25.s390x iptables-1.6.0-3.fc25.s390x texlive-texlive.infra-svn41280-33.fc25.1.noarch texlive-graphics-cfg-svn40269-33.fc25.1.noarch texlive-bibtex-svn40768-33.fc25.1.noarch texlive-mfware-bin-svn40473-33.20160520.fc25.1.s390x texlive-texlive-scripts-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-sauerj-svn15878.0-33.fc25.1.noarch texlive-enctex-svn34957.0-33.fc25.1.noarch texlive-ifetex-svn24853.1.2-33.fc25.1.noarch texlive-ntgclass-svn15878.2.1a-33.fc25.1.noarch texlive-tex-gyre-math-svn41264-33.fc25.1.noarch texlive-bera-svn20031.0-33.fc25.1.noarch texlive-ms-svn29849.0-33.fc25.1.noarch texlive-pst-fill-svn15878.1.01-33.fc25.1.noarch texlive-ctable-svn38672-33.fc25.1.noarch texlive-extsizes-svn17263.1.4a-33.fc25.1.noarch texlive-collection-latexrecommended-svn35765.0-33.20160520.fc25.1.noarch perl-Filter-1.57-1.fc25.s390x python2-rpm-macros-3-12.fc25.noarch
gdbm-1.13-1.fc25.s390x
libtasn1-4.12-1.fc25.s390x
fedora-release-25-2.noarch
gdb-headless-7.12.1-48.fc25.s390x perl-macros-5.24.2-387.fc25.s390x pcre-devel-8.41-1.fc25.s390x
libX11-1.6.5-1.fc25.s390x
coreutils-8.25-17.fc25.s390x python2-openidc-client-0-3.20170523git77cb3ee.fc25.noarch systemtap-client-3.1-5.fc25.s390x firewalld-0.4.4.5-1.fc25.noarch
glibc-2.24-10.fc25.s390x libglvnd-egl-0.2.999-24.20170818git8d4d03f.fc25.s390x libkadm5-1.14.4-8.fc25.s390x glusterfs-fuse-3.10.5-1.fc25.s390x libgfortran-6.4.1-1.fc25.s390x python3-rpm-4.13.0.1-2.fc25.s390x glusterfs-extra-xlators-3.10.5-1.fc25.s390x dracut-config-rescue-046-2.git20170811.fc25.s390x python2-sphinx-theme-alabaster-0.7.9-1.fc25.noarch elfutils-devel-0.169-1.fc25.s390x
nss-3.32.0-1.1.fc25.s390x
pango-devel-1.40.9-1.fc25.s390x glibc-debuginfo-2.24-10.fc25.s390x gpg-pubkey-efe550f5-5220ba41
gpg-pubkey-81b46521-55b3ca9a
filesystem-3.2-37.fc24.s390x
libffi-3.1-9.fc24.s390x
keyutils-libs-1.5.9-8.fc24.s390x libnfnetlink-1.0.1-8.fc24.s390x libtheora-1.1.1-14.fc24.s390x xml-common-0.6.3-44.fc24.noarch
autoconf-2.69-22.fc24.noarch
libXt-1.1.5-3.fc24.s390x
kbd-legacy-2.0.3-3.fc24.noarch ghostscript-fonts-5.50-35.fc24.noarch libXevie-1.0.3-11.fc24.s390x
libcap-2.25-2.fc25.s390x
mpfr-3.1.5-1.fc25.s390x
perl-Carp-1.40-365.fc25.noarch
libmnl-1.0.4-1.fc25.s390x perl-Unicode-EastAsianWidth-1.33-8.fc25.noarch libwayland-cursor-1.12.0-1.fc25.s390x python-krbV-1.0.90-12.fc25.s390x python2-urllib3-1.15.1-3.fc25.noarch fipscheck-1.4.1-11.fc25.s390x
libndp-1.6-1.fc25.s390x
gnupg2-2.1.13-2.fc25.s390x
libXfixes-5.0.3-1.fc25.s390x adwaita-icon-theme-3.22.0-1.fc25.noarch dconf-0.26.0-1.fc25.s390x ncurses-devel-6.0-6.20160709.fc25.s390x dejagnu-1.6-1.fc25.noarch device-mapper-1.02.136-3.fc25.s390x libevent-2.0.22-1.fc25.s390x
atk-devel-2.22.0-1.fc25.s390x
libev-4.24-1.fc25.s390x xorg-x11-fonts-Type1-7.5-16.fc24.noarch brlapi-devel-0.6.5-2.fc25.s390x pulseaudio-libs-10.0-2.fc25.s390x
glib2-2.50.3-1.fc25.s390x
dnf-1.1.10-6.fc25.noarch texlive-metafont-bin-svn40987-33.20160520.fc25.1.s390x texlive-xkeyval-svn35741.2.7a-33.fc25.1.noarch texlive-euler-svn17261.2.5-33.fc25.1.noarch texlive-mptopdf-svn41282-33.fc25.1.noarch texlive-wasy-svn35831.0-33.fc25.1.noarch texlive-avantgar-svn31835.0-33.fc25.1.noarch texlive-eurosym-svn17265.1.4_subrfix-33.fc25.1.noarch texlive-knuth-lib-svn35820.0-33.fc25.1.noarch texlive-parallel-svn15878.0-33.fc25.1.noarch texlive-texlive-msg-translations-svn41431-33.fc25.1.noarch texlive-latex-svn40218-33.fc25.1.noarch texlive-lualatex-math-svn40621-33.fc25.1.noarch texlive-auto-pst-pdf-svn23723.0.6-33.fc25.1.noarch texlive-powerdot-svn38984-33.fc25.1.noarch texlive-wasysym-svn15878.2.0-33.fc25.1.noarch ImageMagick-libs-6.9.3.0-6.fc25.s390x geoclue2-2.4.5-1.fc25.s390x perl-IO-Socket-IP-0.39-1.fc25.noarch python2-pyasn1-0.2.3-1.fc25.noarch at-spi2-core-devel-2.22.1-1.fc25.s390x libacl-2.2.52-13.fc25.s390x
perl-libs-5.24.2-387.fc25.s390x mesa-libglapi-17.0.5-3.fc25.s390x python3-rpmconf-1.0.19-1.fc25.noarch pcre-utf32-8.41-1.fc25.s390x libX11-common-1.6.5-1.fc25.noarch coreutils-common-8.25-17.fc25.s390x mesa-libEGL-17.0.5-3.fc25.s390x systemtap-runtime-3.1-5.fc25.s390x NetworkManager-glib-1.4.4-5.fc25.s390x audit-2.7.7-1.fc25.s390x glibc-all-langpacks-2.24-10.fc25.s390x libglvnd-glx-0.2.999-24.20170818git8d4d03f.fc25.s390x glusterfs-api-3.10.5-1.fc25.s390x libepoxy-devel-1.4.3-1.fc25.1.s390x gtk3-3.22.17-2.fc25.s390x
rpm-4.13.0.1-2.fc25.s390x net-snmp-agent-libs-5.7.3-15.fc25.s390x pcre2-devel-10.23-9.fc25.s390x
subversion-1.9.7-1.fc25.s390x
libsndfile-1.0.28-6.fc25.s390x
lasi-1.1.2-6.fc24.s390x python2-snowballstemmer-1.2.1-1.fc25.noarch nss-util-devel-3.32.0-1.0.fc25.s390x vim-common-8.0.1030-1.fc25.s390x
gd-2.2.5-1.fc25.s390x
gpg-pubkey-34ec9cba-54e38751
gpg-pubkey-030d5aed-55b577f0
basesystem-11-2.fc24.noarch
libmpc-1.0.2-5.fc24.s390x
libunistring-0.9.4-3.fc24.s390x libmodman-2.0.1-12.fc24.s390x
lsscsi-0.28-3.fc24.s390x
kbd-misc-2.0.3-3.fc24.noarch
kmod-23-1.fc25.s390x
newt-0.52.19-2.fc25.s390x perl-Text-Unidecode-1.27-3.fc25.noarch plymouth-core-libs-0.9.3-0.6.20160620git0e65b86c.fc25.s390x which-2.21-1.fc25.s390x
python3-slip-0.6.4-4.fc25.noarch python3-systemd-232-1.fc25.s390x python-lockfile-0.11.0-4.fc25.noarch python2-requests-2.10.0-4.fc25.noarch libnghttp2-1.13.0-2.fc25.s390x python-urlgrabber-3.10.1-9.fc25.noarch iputils-20161105-1.fc25.s390x
rest-0.8.0-1.fc25.s390x adwaita-cursor-theme-3.22.0-1.fc25.noarch authconfig-6.2.10-14.fc25.s390x
automake-1.15-7.fc25.noarch shared-mime-info-1.8-1.fc25.s390x
pigz-2.3.4-1.fc25.s390x device-mapper-libs-1.02.136-3.fc25.s390x dnsmasq-2.76-2.fc25.s390x fedora-packager-0.6.0.1-1.fc25.noarch libwebp-0.5.2-1.fc25.s390x
boost-system-1.60.0-10.fc25.s390x libasyncns-0.8-10.fc24.s390x
libXau-devel-1.0.8-6.fc24.s390x libverto-libev-0.2.6-6.fc24.s390x python3-html5lib-0.999-9.fc25.noarch ttmkfdir-3.0.9-48.fc24.s390x pulseaudio-libs-glib2-10.0-2.fc25.s390x texlive-lib-2016-33.20160520.fc25.s390x libXi-devel-1.7.9-1.fc25.s390x python3-distro-1.0.3-1.fc25.noarch texlive-texlive-common-doc-svn40682-33.fc25.1.noarch packagedb-cli-2.14.1-1.fc25.noarch texlive-metafont-svn40793-33.fc25.1.noarch texlive-tools-svn40934-33.fc25.1.noarch texlive-enumitem-svn24146.3.5.2-33.fc25.1.noarch texlive-mptopdf-bin-svn18674.0-33.20160520.fc25.1.noarch texlive-underscore-svn18261.0-33.fc25.1.noarch texlive-anysize-svn15878.0-33.fc25.1.noarch texlive-euenc-svn19795.0.1h-33.fc25.1.noarch texlive-kastrup-svn15878.0-33.fc25.1.noarch texlive-paralist-svn39247-33.fc25.1.noarch texlive-texlive-en-svn41185-33.fc25.1.noarch texlive-tipa-svn29349.1.3-33.fc25.1.noarch texlive-currfile-svn40725-33.fc25.1.noarch texlive-pst-node-svn40743-33.fc25.1.noarch texlive-pst-slpe-svn24391.1.31-33.fc25.1.noarch texlive-typehtml-svn17134.0-33.fc25.1.noarch SDL2-devel-2.0.5-3.fc25.s390x
libcroco-0.6.11-3.fc25.s390x bluez-libs-devel-5.44-1.fc25.s390x firewalld-filesystem-0.4.4.5-1.fc25.noarch pcre-cpp-8.41-1.fc25.s390x python3-firewall-0.4.4.5-1.fc25.noarch freetype-devel-2.6.5-9.fc25.s390x pcre-utf16-8.41-1.fc25.s390x linux-firmware-20170605-74.git37857004.fc25.noarch kernel-modules-4.11.10-200.fc25.s390x systemtap-devel-3.1-5.fc25.s390x
polkit-0.113-8.fc25.s390x perl-SelfLoader-1.23-387.fc25.noarch libdb-utils-5.3.28-24.fc25.s390x glibc-common-2.24-10.fc25.s390x libglvnd-0.2.999-24.20170818git8d4d03f.fc25.s390x webkitgtk4-2.16.6-1.fc25.s390x rpm-build-libs-4.13.0.1-2.fc25.s390x libglvnd-core-devel-0.2.999-24.20170818git8d4d03f.fc25.s390x rpm-devel-4.13.0.1-2.fc25.s390x
kernel-4.12.9-200.fc25.s390x libtool-ltdl-2.4.6-14.fc25.s390x gts-0.7.6-29.20121130.fc24.s390x python2-imagesize-0.7.1-2.fc25.noarch nss-softokn-freebl-3.32.0-1.2.fc25.s390x selinux-policy-3.13.1-225.22.fc25.noarch kernel-devel-4.12.11-200.fc25.s390x fontpackages-filesystem-1.44-17.fc24.noarch groff-base-1.22.3-8.fc24.s390x
ilmbase-2.2.0-5.fc24.s390x
OpenEXR-libs-2.2.0-5.fc24.s390x
hesiod-3.2.1-6.fc24.s390x
sysfsutils-2.1.0-19.fc24.s390x ocaml-srpm-macros-2-4.fc24.noarch
mailx-12.5-19.fc24.s390x ncurses-libs-6.0-6.20160709.fc25.s390x ipset-libs-6.29-1.fc25.s390x
gmp-devel-6.1.1-1.fc25.s390x
python-pip-8.1.2-2.fc25.noarch
harfbuzz-1.3.2-1.fc25.s390x python2-iniparse-0.4-20.fc25.noarch python3-iniparse-0.4-20.fc25.noarch python3-kickstart-2.32-1.fc25.noarch perl-Net-SSLeay-1.78-1.fc25.s390x
drpm-0.3.0-3.fc25.s390x
glib-networking-2.50.0-1.fc25.s390x webkitgtk3-2.4.11-3.fc25.s390x
libXaw-1.0.13-4.fc25.s390x xorg-x11-font-utils-7.5-32.fc25.s390x hardlink-1.1-1.fc25.s390x
libcom_err-1.43.3-1.fc25.s390x python2-dateutil-2.6.0-1.fc25.noarch libXpm-3.5.12-1.fc25.s390x
poppler-data-0.4.7-6.fc25.noarch
librbd1-10.2.4-2.fc25.s390x perl-Digest-MD5-2.55-2.fc25.s390x wayland-protocols-devel-1.7-1.fc25.noarch texi2html-5.0-4.fc24.noarch
libxkbcommon-0.7.1-1.fc25.s390x libuuid-devel-2.28.2-2.fc25.s390x libcacard-2.5.3-1.fc25.s390x libwmf-lite-0.2.8.4-50.fc25.s390x texlive-tetex-svn41059-33.fc25.1.noarch texlive-thumbpdf-svn34621.3.16-33.fc25.1.noarch texlive-carlisle-svn18258.0-33.fc25.1.noarch texlive-makeindex-bin-svn40473-33.20160520.fc25.1.s390x texlive-pdftex-svn41149-33.fc25.1.noarch texlive-csquotes-svn39538-33.fc25.1.noarch texlive-courier-svn35058.0-33.fc25.1.noarch texlive-helvetic-svn31835.0-33.fc25.1.noarch texlive-mfnfss-svn19410.0-33.fc25.1.noarch texlive-sepnum-svn20186.2.0-33.fc25.1.noarch texlive-utopia-svn15878.0-33.fc25.1.noarch texlive-luatexbase-svn38550-33.fc25.1.noarch texlive-pst-3d-svn17257.1.10-33.fc25.1.noarch texlive-latex-bin-bin-svn14050.0-33.20160520.fc25.1.noarch texlive-l3experimental-svn41163-33.fc25.1.noarch net-tools-2.0-0.40.20160329git.fc25.s390x perl-Pod-Perldoc-3.28-1.fc25.noarch openssl-1.0.2k-1.fc25.s390x
man-pages-4.06-4.fc25.noarch
libxml2-2.9.4-2.fc25.s390x python3-dateutil-2.6.0-1.fc25.noarch perl-threads-shared-1.57-1.fc25.s390x libnotify-0.7.7-1.fc25.s390x
unzip-6.0-32.fc25.s390x python-beautifulsoup4-4.6.0-1.fc25.noarch dhcp-client-4.3.5-3.fc25.s390x python2-fedora-0.9.0-6.fc25.noarch
gdb-7.12.1-48.fc25.s390x
sqlite-libs-3.14.2-3.fc25.s390x webkitgtk4-jsc-2.16.6-1.fc25.s390x libgomp-6.4.1-1.fc25.s390x
p11-kit-trust-0.23.8-1.fc25.s390x gdk-pixbuf2-devel-2.36.9-1.fc25.s390x rpm-plugin-selinux-4.13.0.1-2.fc25.s390x mariadb-common-10.1.25-1.fc25.s390x dbus-devel-1.11.16-1.fc25.s390x
lz4-libs-1.8.0-1.fc25.s390x python2-jinja2-2.8.1-1.fc25.noarch system-python-libs-3.5.4-1.fc25.s390x python2-rpkg-1.50-2.fc25.noarch
libsolv-0.6.29-1.fc25.s390x
gpg-pubkey-95a43f54-5284415a dejavu-fonts-common-2.35-3.fc24.noarch libSM-1.2.2-4.fc24.s390x
diffutils-3.3-13.fc24.s390x
libogg-1.3.2-5.fc24.s390x hunspell-en-US-0.20140811.1-5.fc24.noarch libdaemon-0.14-10.fc24.s390x
patch-2.7.5-3.fc24.s390x
libsysfs-2.1.0-19.fc24.s390x
procmail-3.22-39.fc24.s390x
libXdamage-1.1.4-8.fc24.s390x
libotf-0.9.13-7.fc24.s390x
urw-fonts-2.4-22.fc24.noarch crontabs-1.11-12.20150630git.fc24.noarch ppp-2.4.7-9.fc24.s390x
cyrus-sasl-2.1.26-26.2.fc24.s390x zlib-devel-1.2.8-10.fc24.s390x
time-1.7-49.fc24.s390x
gpg-pubkey-fdb19c98-56fd6333
libcap-ng-0.7.8-1.fc25.s390x
binutils-2.26.1-1.fc25.s390x
lcms2-2.8-2.fc25.s390x
libcomps-0.1.7-5.fc25.s390x perl-constant-1.33-367.fc25.noarch perl-Data-Dumper-2.161-1.fc25.s390x ipcalc-0.1.8-1.fc25.s390x
gmp-c++-6.1.1-1.fc25.s390x
fontconfig-2.12.1-1.fc25.s390x
enchant-1.6.0-14.fc25.s390x
pyliblzma-0.5.3-16.fc25.s390x libsepol-devel-2.5-10.fc25.s390x python3-ordered-set-2.0.0-4.fc25.noarch python-ipaddress-1.0.16-3.fc25.noarch python2-kerberos-1.2.5-1.fc25.s390x python2-pysocks-1.5.6-5.fc25.noarch fipscheck-lib-1.4.1-11.fc25.s390x libatomic_ops-7.4.4-1.fc25.s390x python2-pygpgme-0.3-18.fc25.s390x
orc-0.4.26-1.fc25.s390x
yum-utils-1.1.31-511.fc25.noarch libXrender-0.9.10-1.fc25.s390x
libXrandr-1.5.1-1.fc25.s390x
go-srpm-macros-2-7.fc25.noarch gnupg2-smime-2.1.13-2.fc25.s390x guile-devel-2.0.13-1.fc25.s390x uboot-tools-2016.09.01-2.fc25.s390x pykickstart-2.32-1.fc25.noarch python-bunch-1.0.1-9.fc25.noarch perl-generators-1.10-1.fc25.noarch perl-Mozilla-CA-20160104-3.fc25.noarch bzip2-libs-1.0.6-21.fc25.s390x
libpng-1.6.27-1.fc25.s390x desktop-file-utils-0.23-2.fc25.s390x python2-cccolutils-1.4-1.fc25.s390x python2-lxml-3.7.2-1.fc25.s390x redhat-rpm-config-45-1.fc25.noarch device-mapper-event-libs-1.02.136-3.fc25.s390x lvm2-libs-2.02.167-3.fc25.s390x libselinux-python-2.5-13.fc25.s390x boost-thread-1.60.0-10.fc25.s390x librbd-devel-10.2.4-2.fc25.s390x libXcursor-devel-1.1.14-6.fc24.s390x latex2html-2012-7.fc24.noarch lksctp-tools-1.0.16-5.fc24.s390x
libfdt-1.4.2-1.fc25.s390x
libXft-devel-2.3.2-4.fc24.s390x libattr-devel-2.4.47-16.fc24.s390x libiscsi-devel-1.15.0-2.fc24.s390x gettext-0.19.8.1-3.fc25.s390x libjpeg-turbo-devel-1.5.1-0.fc25.s390x pulseaudio-libs-devel-10.0-2.fc25.s390x libmount-2.28.2-2.fc25.s390x python3-decorator-4.0.11-1.fc25.noarch tzdata-java-2017b-1.fc25.noarch python-srpm-macros-3-12.fc25.noarch libsmartcols-2.28.2-2.fc25.s390x texlive-kpathsea-svn41139-33.fc25.1.noarch texlive-amsmath-svn41561-33.fc25.1.noarch texlive-thumbpdf-bin-svn6898.0-33.20160520.fc25.1.noarch texlive-psnfss-svn33946.9.2a-33.fc25.1.noarch texlive-subfig-svn15878.1.3-33.fc25.1.noarch texlive-fancybox-svn18304.1.4-33.fc25.1.noarch texlive-lua-alt-getopt-svn29349.0.7.0-33.fc25.1.noarch texlive-natbib-svn20668.8.31b-33.fc25.1.noarch texlive-pdftex-bin-svn40987-33.20160520.fc25.1.s390x texlive-xdvi-svn40768-33.fc25.1.noarch texlive-crop-svn15878.1.5-33.fc25.1.noarch texlive-babel-english-svn30264.3.3p-33.fc25.1.noarch texlive-cmextra-svn32831.0-33.fc25.1.noarch texlive-fancyhdr-svn15878.3.1-33.fc25.1.noarch texlive-luatex-svn40963-33.fc25.1.noarch texlive-knuth-local-svn38627-33.fc25.1.noarch texlive-mflogo-font-svn36898.1.002-33.fc25.1.noarch texlive-parskip-svn19963.2.0-33.fc25.1.noarch texlive-section-svn20180.0-33.fc25.1.noarch texlive-textcase-svn15878.0-33.fc25.1.noarch texlive-updmap-map-svn41159-33.fc25.1.noarch texlive-attachfile-svn38830-33.fc25.1.noarch libtiff-4.0.8-1.fc25.s390x
libdb-5.3.28-24.fc25.s390x bind-license-9.10.5-2.P2.fc25.noarch mesa-libGLES-17.0.5-3.fc25.s390x python3-requests-kerberos-0.10.0-2.fc25.noarch python3-pyOpenSSL-16.2.0-1.fc25.noarch perl-threads-2.16-1.fc25.s390x cryptsetup-libs-1.7.5-1.fc25.s390x netpbm-10.79.00-1.fc25.s390x qrencode-libs-3.4.4-1.fc25.s390x gstreamer1-plugins-base-1.10.5-1.fc25.s390x elfutils-default-yama-scope-0.169-1.fc25.noarch systemd-udev-231-17.fc25.s390x python2-koji-1.13.0-2.fc25.noarch unbound-libs-1.6.3-1.fc25.s390x openldap-2.4.44-11.fc25.s390x
koji-1.13.0-2.fc25.noarch
bind99-libs-9.9.10-2.P3.fc25.s390x mesa-libGL-devel-17.0.5-3.fc25.s390x graphite2-devel-1.3.10-1.fc25.s390x systemtap-sdt-devel-3.1-5.fc25.s390x iproute-tc-4.11.0-1.fc25.s390x
libarchive-3.2.2-2.fc25.s390x publicsuffix-list-dafsa-20170424-1.fc25.noarch expat-2.2.3-1.fc25.s390x
p11-kit-0.23.8-1.fc25.s390x kernel-core-4.12.9-200.fc25.s390x emacs-filesystem-25.2-3.fc25.noarch ca-certificates-2017.2.16-1.0.fc25.noarch librsvg2-2.40.18-1.fc25.s390x gtk-update-icon-cache-3.22.17-2.fc25.s390x libidn2-2.0.4-1.fc25.s390x
rpm-libs-4.13.0.1-2.fc25.s390x mariadb-libs-10.1.25-1.fc25.s390x java-1.8.0-openjdk-headless-1.8.0.144-5.b01.fc25.s390x gcc-objc-6.4.1-1.fc25.s390x p11-kit-devel-0.23.8-1.fc25.s390x
ethtool-4.11-1.fc25.s390x python2-sssdconfig-1.15.3-1.fc25.noarch xorg-x11-fonts-ISO8859-1-100dpi-7.5-16.fc24.noarch lato-fonts-2.015-2.fc24.noarch python-sphinx-locale-1.5.2-2.fc25.noarch dpkg-1.17.27-1.fc25.s390x
gnutls-3.5.15-1.fc25.s390x nss-softokn-freebl-devel-3.32.0-1.2.fc25.s390x vim-filesystem-8.0.1030-1.fc25.s390x gnutls-devel-3.5.15-1.fc25.s390x kernel-headers-4.12.11-200.fc25.s390x texlive-luaotfload-svn40902-33.fc25.1.noarch texlive-unicode-math-svn38462-33.fc25.1.noarch texlive-fancyvrb-svn18492.2.8-33.fc25.1.noarch texlive-pst-pdf-bin-svn7838.0-33.20160520.fc25.1.noarch texlive-amscls-svn36804.0-33.fc25.1.noarch texlive-ltxmisc-svn21927.0-33.fc25.1.noarch texlive-breqn-svn38099.0.98d-33.fc25.1.noarch texlive-xetex-def-svn40327-33.fc25.1.noarch openssh-server-7.4p1-4.fc25.s390x sendmail-8.15.2-8.fc25.s390x
tzdata-2017b-1.fc25.noarch
hunspell-1.4.1-2.fc25.s390x
gpg-pubkey-8e1431d5-53bcbac7
zlib-1.2.8-10.fc24.s390x
sed-4.2.2-15.fc24.s390x
psmisc-22.21-8.fc24.s390x
gpm-libs-1.20.7-9.fc24.s390x
zip-3.0-16.fc24.s390x
libyubikey-1.13-2.fc24.s390x sg3_utils-libs-1.41-3.fc24.s390x polkit-pkla-compat-0.1-7.fc24.s390x
passwd-0.79-8.fc24.s390x
trousers-0.3.13-6.fc24.s390x
grubby-8.40-3.fc24.s390x
rootfiles-8.1-19.fc24.noarch
nettle-3.3-1.fc25.s390x
libksba-1.3.5-1.fc25.s390x perl-Text-ParseWords-3.30-365.fc25.noarch perl-PathTools-3.63-366.fc25.s390x perl-File-Temp-0.23.04-365.fc25.noarch fuse-libs-2.9.7-1.fc25.s390x perl-Pod-Escapes-1.07-365.fc25.noarch perl-Term-ANSIColor-4.05-2.fc25.noarch perl-URI-1.71-5.fc25.noarch
libXfont-1.5.2-1.fc25.s390x
python-six-1.10.0-3.fc25.noarch
dbus-glib-0.108-1.fc25.s390x gobject-introspection-1.50.0-1.fc25.s390x libpwquality-1.3.0-6.fc25.s390x python-gobject-base-3.22.0-1.fc25.s390x python-html5lib-0.999-9.fc25.noarch python3-dbus-1.2.4-2.fc25.s390x python3-chardet-2.3.0-1.fc25.noarch python3-urllib3-1.15.1-3.fc25.noarch python-offtrac-0.1.0-7.fc25.noarch python2-cryptography-1.5.3-3.fc25.s390x python2-requests-kerberos-0.10.0-2.fc25.noarch libserf-1.3.9-1.fc25.s390x
libdatrie-0.2.9-3.fc25.s390x s390utils-base-1.36.0-1.fc25.s390x kpartx-0.4.9-83.fc25.s390x s390utils-cpuplugd-1.36.0-1.fc25.s390x s390utils-osasnmpd-1.36.0-1.fc25.s390x python-dnf-plugins-extras-common-0.0.12-4.fc25.noarch fpc-srpm-macros-1.0-1.fc25.noarch
libuser-0.62-4.fc25.s390x
man-db-2.7.5-3.fc25.s390x python-systemd-doc-232-1.fc25.s390x bodhi-client-0.9.12.2-6.fc25.noarch cairo-1.14.8-1.fc25.s390x
cracklib-dicts-2.9.6-4.fc25.s390x libselinux-python3-2.5-13.fc25.s390x python2-enchant-1.6.8-1.fc25.noarch boost-iostreams-1.60.0-10.fc25.s390x userspace-rcu-0.9.2-2.fc25.s390x libXext-devel-1.3.3-4.fc24.s390x libXrandr-devel-1.5.1-1.fc25.s390x python3-lxml-3.7.2-1.fc25.s390x
libiscsi-1.15.0-2.fc24.s390x fontconfig-devel-2.12.1-1.fc25.s390x libfdt-devel-1.4.2-1.fc25.s390x ceph-devel-compat-10.2.4-2.fc25.s390x zlib-static-1.2.8-10.fc24.s390x
chrpath-0.16-3.fc24.s390x
info-6.1-4.fc25.s390x
iptables-libs-1.6.0-3.fc25.s390x libfdisk-2.28.2-2.fc25.s390x dnf-plugins-core-0.1.21-5.fc25.noarch perl-Storable-2.56-368.fc25.s390x python2-decorator-4.0.11-1.fc25.noarch libnetfilter_conntrack-1.0.6-2.fc25.s390x texlive-texlive.infra-bin-svn40312-33.20160520.fc25.1.s390x texlive-ifluatex-svn41346-33.fc25.1.noarch texlive-fp-svn15878.0-33.fc25.1.noarch texlive-latex-fonts-svn28888.0-33.fc25.1.noarch texlive-bibtex-bin-svn40473-33.20160520.fc25.1.s390x texlive-glyphlist-svn28576.0-33.fc25.1.noarch texlive-marvosym-svn29349.2.2a-33.fc25.1.noarch texlive-tex-bin-svn40987-33.20160520.fc25.1.s390x texlive-texconfig-svn40768-33.fc25.1.noarch texlive-wasy2-ps-svn35830.0-33.fc25.1.noarch texlive-psfrag-svn15878.3.04-33.fc25.1.noarch texlive-charter-svn15878.0-33.fc25.1.noarch texlive-ec-svn25033.1.0-33.fc25.1.noarch texlive-lineno-svn21442.4.41-33.fc25.1.noarch texlive-hyphen-base-svn41138-33.fc25.1.noarch texlive-manfnt-font-svn35799.0-33.fc25.1.noarch texlive-ncntrsbk-svn31835.0-33.fc25.1.noarch texlive-pst-math-svn34786.0.63-33.fc25.1.noarch texlive-symbol-svn31835.0-33.fc25.1.noarch texlive-environ-svn33821.0.3-33.fc25.1.noarch texlive-algorithms-svn38085.0.1-33.fc25.1.noarch python3-hawkey-0.6.4-3.fc25.s390x freetype-2.6.5-9.fc25.s390x mesa-libwayland-egl-17.0.5-3.fc25.s390x libicu-57.1-5.fc25.s390x
libnl3-cli-3.2.29-3.fc25.s390x
cups-libs-2.2.0-9.fc25.s390x bind-libs-lite-9.10.5-2.P2.fc25.s390x python3-kerberos-1.2.5-1.fc25.s390x python3-cryptography-1.5.3-3.fc25.s390x perl-IO-1.36-387.fc25.s390x
dhcp-libs-4.3.5-3.fc25.s390x
rsync-3.1.2-4.fc25.s390x
make-4.1-6.fc25.s390x
quota-4.03-8.fc25.s390x
libX11-devel-1.6.5-1.fc25.s390x ghostscript-9.20-9.fc25.s390x
rpcbind-0.2.4-6.rc2.fc25.s390x pyOpenSSL-16.2.0-1.fc25.noarch python3-pycurl-7.43.0-6.fc25.s390x bind99-license-9.9.10-2.P3.fc25.noarch python-firewall-0.4.4.5-1.fc25.noarch netpbm-progs-10.79.00-1.fc25.s390x
wget-1.18-3.fc25.s390x
libsemanage-2.5-9.fc25.s390x
telnet-0.17-68.fc25.s390x
gdk-pixbuf2-2.36.9-1.fc25.s390x dbus-libs-1.11.16-1.fc25.s390x glusterfs-client-xlators-3.10.5-1.fc25.s390x libepoxy-1.4.3-1.fc25.1.s390x dracut-046-2.git20170811.fc25.s390x net-snmp-libs-5.7.3-15.fc25.s390x libgo-devel-6.4.1-1.fc25.s390x libglvnd-opengl-0.2.999-24.20170818git8d4d03f.fc25.s390x sqlite-devel-3.14.2-3.fc25.s390x
cpp-6.4.1-1.fc25.s390x
git-2.9.5-1.fc25.s390x
pcre2-10.23-9.fc25.s390x python2-GitPython-2.1.5-1.fc25.noarch glusterfs-devel-3.10.5-1.fc25.s390x net-snmp-5.7.3-15.fc25.s390x rpm-plugin-systemd-inhibit-4.13.0.1-2.fc25.s390x emacs-25.2-3.fc25.s390x
libstdc++-static-6.4.1-1.fc25.s390x expat-devel-2.2.3-1.fc25.s390x perl-Time-HiRes-1.9744-1.fc25.s390x fontawesome-fonts-4.7.0-1.fc25.noarch python-markupsafe-0.23-10.fc25.s390x pytz-2016.6.1-1.fc25.noarch python2-sphinx-1.5.2-2.fc25.noarch nss-util-3.32.0-1.0.fc25.s390x nss-sysinit-3.32.0-1.1.fc25.s390x
python3-3.5.4-1.fc25.s390x selinux-policy-targeted-3.13.1-225.22.fc25.noarch vim-minimal-8.0.1030-1.fc25.s390x texlive-ifplatform-svn21156.0.4-33.fc25.1.noarch texlive-eso-pic-svn37925.2.0g-33.fc25.1.noarch texlive-xcolor-svn41044-33.fc25.1.noarch texlive-pst-eps-svn15878.1.0-33.fc25.1.noarch texlive-pst-text-svn15878.1.00-33.fc25.1.noarch texlive-rotating-svn16832.2.16b-33.fc25.1.noarch texlive-pdfpages-svn40638-33.fc25.1.noarch texlive-cm-super-svn15878.0-33.fc25.1.noarch texlive-xetex-svn41438-33.fc25.1.noarch dnf-yum-1.1.10-6.fc25.noarch libseccomp-devel-2.3.2-1.fc25.s390x gpgme-1.8.0-10.fc25.s390x
apr-util-1.5.4-3.fc24.s390x
jbigkit-libs-2.1-5.fc24.s390x
pixman-0.34.0-2.fc24.s390x
dwz-0.12-2.fc24.s390x
expect-5.45-22.fc24.s390x
libsigsegv-2.10-10.fc24.s390x fakeroot-libs-1.20.2-4.fc24.s390x m17n-lib-1.7.0-5.fc24.s390x
libverto-0.2.6-6.fc24.s390x
libXmu-1.1.2-4.fc24.s390x
libXcursor-1.1.14-6.fc24.s390x python-kitchen-1.2.4-2.fc24.noarch fakeroot-1.20.2-4.fc24.s390x
blktrace-1.1.0-3.fc24.s390x
usermode-1.111-8.fc24.s390x
kbd-2.0.3-3.fc24.s390x
libaio-devel-0.3.110-6.fc24.s390x web-assets-filesystem-5-4.fc24.noarch libgpg-error-1.24-1.fc25.s390x
findutils-4.6.0-8.fc25.s390x
libassuan-2.4.3-1.fc25.s390x
libusbx-1.0.21-1.fc25.s390x
libxslt-1.1.28-13.fc25.s390x
libmetalink-0.1.3-1.fc25.s390x perl-MIME-Base64-3.15-365.fc25.s390x ncurses-6.0-6.20160709.fc25.s390x libwayland-server-1.12.0-1.fc25.s390x perl-Fedora-VSP-0.001-4.fc25.noarch perl-libintl-perl-1.26-1.fc25.s390x shadow-utils-4.2.1-11.fc25.s390x
atk-2.22.0-1.fc25.s390x
pam-1.3.0-1.fc25.s390x
harfbuzz-icu-1.3.2-1.fc25.s390x libsecret-0.18.5-2.fc25.s390x s390utils-iucvterm-1.36.0-1.fc25.s390x python3-requests-2.10.0-4.fc25.noarch pyusb-1.0.0-2.fc25.noarch
python-enum34-1.0.4-6.fc25.noarch
pyxattr-0.5.3-8.fc25.s390x
libbabeltrace-1.4.0-3.fc25.s390x
libthai-0.1.25-1.fc25.s390x
deltarpm-3.6-17.fc25.s390x s390utils-mon_statd-1.36.0-1.fc25.s390x device-mapper-multipath-0.4.9-83.fc25.s390x python3-pygpgme-0.3-18.fc25.s390x libreport-filesystem-2.8.0-1.fc25.s390x ghc-srpm-macros-1.4.2-4.fc25.noarch rpmdevtools-8.9-1.fc25.noarch python-dnf-plugins-extras-migrate-0.0.12-4.fc25.noarch perl-IO-Socket-SSL-2.038-1.fc25.noarch perl-File-ShareDir-1.102-7.fc25.noarch tcl-8.6.6-1.fc25.s390x
bzip2-1.0.6-21.fc25.s390x
libss-1.43.3-1.fc25.s390x
libselinux-utils-2.5-13.fc25.s390x python3-enchant-1.6.8-1.fc25.noarch python2-dockerfile-parse-0.0.5-7.fc25.noarch systemd-bootchart-231-2.fc25.s390x e2fsprogs-1.43.3-1.fc25.s390x libpng-devel-1.6.27-1.fc25.s390x perl-XML-Parser-2.44-5.fc25.s390x lttng-ust-2.8.1-2.fc25.s390x libXfixes-devel-5.0.3-1.fc25.s390x libXcomposite-devel-0.4.4-8.fc24.s390x python3-javapackages-4.7.0-6.1.fc25.noarch libcephfs_jni-devel-10.2.4-2.fc25.s390x keyutils-libs-devel-1.5.9-8.fc24.s390x harfbuzz-devel-1.3.2-1.fc25.s390x libidn-devel-1.33-1.fc25.s390x
libnfs-1.9.8-2.fc24.s390x
libssh2-devel-1.8.0-1.fc25.s390x qemu-sanity-check-nodeps-1.1.5-5.fc24.s390x alsa-lib-devel-1.1.1-2.fc25.s390x
libpsl-0.17.0-1.fc25.s390x
libseccomp-2.3.2-1.fc25.s390x
json-glib-1.2.6-1.fc25.s390x python2-dnf-1.1.10-6.fc25.noarch texlive-tetex-bin-svn36770.0-33.20160520.fc25.1.noarch texlive-amsfonts-svn29208.3.04-33.fc25.1.noarch texlive-babel-svn40706-33.fc25.1.noarch texlive-colortbl-svn29803.v1.0a-33.fc25.1.noarch texlive-babelbib-svn25245.1.31-33.fc25.1.noarch texlive-footmisc-svn23330.5.5b-33.fc25.1.noarch texlive-makeindex-svn40768-33.fc25.1.noarch texlive-plain-svn40274-33.fc25.1.noarch texlive-texconfig-bin-svn29741.0-33.20160520.fc25.1.noarch texlive-zapfding-svn31835.0-33.fc25.1.noarch texlive-microtype-svn41127-33.fc25.1.noarch texlive-bookman-svn31835.0-33.fc25.1.noarch texlive-dvisvgm-def-svn41011-33.fc25.1.noarch texlive-finstrut-svn21719.0.5-33.fc25.1.noarch texlive-hyph-utf8-svn41189-33.fc25.1.noarch texlive-lualibs-svn40370-33.fc25.1.noarch python2-hawkey-0.6.4-3.fc25.s390x elfutils-libelf-0.169-1.fc25.s390x libnl3-3.2.29-3.fc25.s390x
gstreamer1-1.10.5-1.fc25.s390x polkit-libs-0.113-8.fc25.s390x
libtirpc-1.0.2-0.fc25.s390x
libteam-1.27-1.fc25.s390x
python3-pyasn1-0.2.3-1.fc25.noarch perl-File-Path-2.12-366.fc25.noarch mesa-libwayland-egl-devel-17.0.5-3.fc25.s390x libacl-devel-2.2.52-13.fc25.s390x lua-libs-5.3.4-3.fc25.s390x
quota-nls-4.03-8.fc25.noarch ghostscript-x11-9.20-9.fc25.s390x
systemd-231-17.fc25.s390x
dhcp-common-4.3.5-3.fc25.noarch vte291-devel-0.46.2-1.fc25.s390x python-devel-2.7.13-2.fc25.s390x
elfutils-0.169-1.fc25.s390x
lua-5.3.4-3.fc25.s390x python3-beautifulsoup4-4.6.0-1.fc25.noarch libmicrohttpd-0.9.55-1.fc25.s390x
screen-4.6.1-1.fc25.s390x
strace-4.18-1.fc25.s390x
libstdc++-6.4.1-1.fc25.s390x
glusterfs-3.10.5-1.fc25.s390x
file-5.29-9.fc25.s390x
libgo-6.4.1-1.fc25.s390x
tar-1.29-4.fc25.s390x
subversion-libs-1.9.7-1.fc25.s390x libglvnd-gles-0.2.999-24.20170818git8d4d03f.fc25.s390x gdk-pixbuf2-modules-2.36.9-1.fc25.s390x gcc-6.4.1-1.fc25.s390x
curl-7.51.0-9.fc25.s390x
pcre2-utf16-10.23-9.fc25.s390x mariadb-config-10.1.25-1.fc25.s390x distribution-gpg-keys-1.14-1.fc25.noarch libcurl-devel-7.51.0-9.fc25.s390x gtk3-devel-3.22.17-2.fc25.s390x krb5-devel-1.14.4-8.fc25.s390x wpa_supplicant-2.6-3.fc25.s390x fontawesome-fonts-web-4.7.0-1.fc25.noarch python2-pygments-2.2.0-7.fc25.noarch python2-babel-2.3.4-2.fc25.noarch doxygen-1.8.13-9.fc25.s390x
nspr-devel-4.16.0-1.fc25.s390x kernel-core-4.12.11-200.fc25.s390x rpmlint-1.10-3.fc25.noarch vim-enhanced-8.0.1030-1.fc25.s390x openjpeg2-2.2.0-3.fc25.s390x texlive-mparhack-svn15878.1.4-33.fc25.1.noarch texlive-pspicture-svn15878.0-33.fc25.1.noarch texlive-soul-svn15878.2.4-33.fc25.1.noarch texlive-trimspaces-svn15878.1.1-33.fc25.1.noarch texlive-varwidth-svn24104.0.92-33.fc25.1.noarch texlive-geometry-svn19716.5.6-33.fc25.1.noarch texlive-memoir-svn41203-33.fc25.1.noarch texlive-pgf-svn40966-33.fc25.1.noarch texlive-pst-coil-svn37377.1.07-33.fc25.1.noarch texlive-pst-plot-svn41242-33.fc25.1.noarch texlive-latex-bin-svn41438-33.fc25.1.noarch texlive-ucs-svn35853.2.2-33.fc25.1.noarch texlive-ae-svn15878.1.4-33.fc25.1.noarch texlive-xetex-bin-svn41091-33.20160520.fc25.1.s390x fedora-upgrade-26.1-1.fc25.noarch perl-Thread-Queue-3.12-1.fc25.noarch cdparanoia-libs-10.2-21.fc24.s390x
ustr-1.0.4-21.fc24.s390x
libusb-0.1.5-7.fc24.s390x
readline-devel-6.3-8.fc24.s390x
chkconfig-1.8-1.fc25.s390x
avahi-libs-0.6.32-4.fc25.s390x perl-Unicode-Normalize-1.25-365.fc25.s390x perl-libnet-3.10-1.fc25.noarch perl-podlators-4.09-1.fc25.noarch dbus-python-1.2.4-2.fc25.s390x libgnome-keyring-3.12.0-7.fc25.s390x python-backports-1.0-8.fc25.s390x python-pycparser-2.14-7.fc25.noarch plymouth-scripts-0.9.3-0.6.20160620git0e65b86c.fc25.s390x cronie-1.5.1-2.fc25.s390x python2-librepo-1.7.18-3.fc25.s390x libXv-1.0.11-1.fc25.s390x python2-ndg_httpsclient-0.4.0-4.fc25.noarch btrfs-progs-4.6.1-1.fc25.s390x
perl-Encode-2.88-5.fc25.s390x
cracklib-2.9.6-4.fc25.s390x python3-dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch boost-random-1.60.0-10.fc25.s390x libref_array-0.1.5-29.fc25.s390x libXrender-devel-0.9.10-1.fc25.s390x javapackages-tools-4.7.0-6.1.fc25.noarch keyutils-1.5.9-8.fc24.s390x libcom_err-devel-1.43.3-1.fc25.s390x lzo-minilzo-2.08-8.fc24.s390x libusbx-devel-1.0.21-1.fc25.s390x virglrenderer-devel-0.5.0-1.20160411git61846f92f.fc25.s390x acpica-tools-20160831-1.fc25.s390x
grep-2.27-2.fc25.s390x
dnf-conf-1.1.10-6.fc25.noarch crypto-policies-20160921-4.gitf3018dd.fc25.noarch libnfsidmap-0.27-1.fc25.s390x
SDL2-2.0.5-3.fc25.s390x texlive-etex-pkg-svn39355-33.fc25.1.noarch texlive-multido-svn18302.1.42-33.fc25.1.noarch texlive-gsftopk-svn40768-33.fc25.1.noarch texlive-pst-ovl-svn40873-33.fc25.1.noarch texlive-ltabptch-svn17533.1.74d-33.fc25.1.noarch texlive-cite-svn36428.5.5-33.fc25.1.noarch texlive-fpl-svn15878.1.002-33.fc25.1.noarch texlive-mathpazo-svn15878.1.003-33.fc25.1.noarch texlive-rcs-svn15878.0-33.fc25.1.noarch texlive-type1cm-svn21820.0-33.fc25.1.noarch texlive-l3kernel-svn41246-33.fc25.1.noarch texlive-hyperref-svn41396-33.fc25.1.noarch texlive-pst-tree-svn24142.1.12-33.fc25.1.noarch texlive-sansmathaccent-svn30187.0-33.fc25.1.noarch texlive-dvipdfmx-bin-svn40273-33.20160520.fc25.1.s390x texlive-zapfchan-svn31835.0-33.fc25.1.noarch glib2-static-2.50.3-1.fc25.s390x bash-completion-2.5-1.fc25.noarch
hyphen-2.8.8-4.fc24.s390x
python3-idna-2.5-1.fc25.noarch
less-481-7.fc25.s390x
rpmconf-base-1.0.19-1.fc25.noarch
gtk2-2.24.31-2.fc25.s390x
mesa-libgbm-17.0.5-3.fc25.s390x nfs-utils-2.1.1-5.rc4.fc25.s390x
mc-4.8.19-5.fc25.s390x
pcre-static-8.41-1.fc25.s390x bind-libs-9.10.5-2.P2.fc25.s390x libproxy-0.4.15-2.fc25.s390x
file-libs-5.29-9.fc25.s390x
glibc-devel-2.24-10.fc25.s390x glusterfs-server-3.10.5-1.fc25.s390x git-core-doc-2.9.5-1.fc25.s390x python2-smmap-2.0.3-1.fc25.noarch glusterfs-api-devel-3.10.5-1.fc25.s390x gcc-gdb-plugin-6.4.1-1.fc25.s390x python3-magic-5.29-9.fc25.noarch GeoIP-GeoLite-data-2017.07-1.fc25.noarch python2-funcsigs-1.0.2-2.fc25.noarch dos2unix-7.3.4-1.fc25.s390x
gnutls-c++-3.5.15-1.fc25.s390x nss-tools-3.32.0-1.1.fc25.s390x
gpg-pubkey-a29cb19c-53bcbba6
m4-1.4.17-9.fc24.s390x
liblockfile-1.09-4.fc24.s390x
sg3_utils-1.41-3.fc24.s390x
libXinerama-1.1.3-6.fc24.s390x
libXft-2.3.2-4.fc24.s390x tcp_wrappers-libs-7.6-83.fc25.s390x perl-Text-Tabs+Wrap-2013.0523-365.fc25.noarch perl-Error-0.17024-7.fc25.noarch perl-Term-Cap-1.17-365.fc25.noarch perl-Pod-Usage-1.69-1.fc25.noarch device-mapper-persistent-data-0.6.3-1.fc25.s390x python3-six-1.10.0-3.fc25.noarch python3-pysocks-1.5.6-5.fc25.noarch python-chardet-2.3.0-1.fc25.noarch python2-cffi-1.7.0-2.fc25.s390x
gc-devel-7.4.4-1.fc25.s390x plymouth-0.9.3-0.6.20160620git0e65b86c.fc25.s390x ebtables-2.0.10-21.fc25.s390x python3-librepo-1.7.18-3.fc25.s390x at-spi2-atk-2.22.0-1.fc25.s390x avahi-autoipd-0.6.32-4.fc25.s390x pyparsing-2.1.10-1.fc25.noarch python3-pyparsing-2.1.10-1.fc25.noarch libcollection-0.7.0-29.fc25.s390x libcephfs-devel-10.2.4-2.fc25.s390x libXdamage-devel-1.1.4-8.fc24.s390x libverto-devel-0.2.6-6.fc24.s390x
snappy-1.1.3-2.fc24.s390x cairo-gobject-devel-1.14.8-1.fc25.s390x cyrus-sasl-devel-2.1.26-26.2.fc24.s390x libXi-1.7.9-1.fc25.s390x texlive-base-2016-33.20160520.fc25.noarch texlive-booktabs-svn40846-33.fc25.1.noarch texlive-lm-svn28119.2.004-33.fc25.1.noarch texlive-gsftopk-bin-svn40473-33.20160520.fc25.1.s390x texlive-tex-svn40793-33.fc25.1.noarch texlive-fancyref-svn15878.0.9c-33.fc25.1.noarch texlive-chngcntr-svn17157.1.0a-33.fc25.1.noarch texlive-fix2col-svn38770-33.fc25.1.noarch texlive-marginnote-svn41382-33.fc25.1.noarch texlive-pxfonts-svn15878.0-33.fc25.1.noarch texlive-txfonts-svn15878.0-33.fc25.1.noarch texlive-l3packages-svn41246-33.fc25.1.noarch texlive-oberdiek-svn41346-33.fc25.1.noarch texlive-pst-tools-svn34067.0.05-33.fc25.1.noarch texlive-tex-gyre-svn18651.2.004-33.fc25.1.noarch texlive-dvipdfmx-svn41149-33.fc25.1.noarch texlive-collection-fontsrecommended-svn35830.0-33.20160520.fc25.1.noarch libcacard-devel-2.5.3-1.fc25.s390x ykpers-1.18.0-2.fc25.s390x
python2-idna-2.5-1.fc25.noarch policycoreutils-2.5-20.fc25.s390x libgcrypt-1.7.8-1.fc25.s390x
pcre-8.41-1.fc25.s390x
GeoIP-1.6.11-1.fc25.s390x
ghostscript-core-9.20-9.fc25.s390x python3-cffi-1.7.0-2.fc25.s390x
json-c-0.12.1-2.fc25.s390x
vte291-0.46.2-1.fc25.s390x
gssproxy-0.7.0-9.fc25.s390x
systemtap-3.1-5.fc25.s390x mesa-libgbm-devel-17.0.5-3.fc25.s390x libgusb-0.2.10-1.fc25.s390x kernel-modules-4.12.9-200.fc25.s390x sqlite-3.14.2-3.fc25.s390x
perl-Git-2.9.5-1.fc25.noarch python2-gitdb-2.0.2-1.fc25.noarch libglvnd-devel-0.2.999-24.20170818git8d4d03f.fc25.s390x gcc-c++-6.4.1-1.fc25.s390x
python-magic-5.29-9.fc25.noarch kernel-devel-4.12.9-200.fc25.s390x python2-mock-2.0.0-2.fc25.noarch
nspr-4.16.0-1.fc25.s390x
python3-libs-3.5.4-1.fc25.s390x system-python-3.5.4-1.fc25.s390x python-async-0.6.1-9.fc22.s390x dejavu-sans-mono-fonts-2.35-3.fc24.noarch popt-1.16-7.fc24.s390x
cyrus-sasl-lib-2.1.26-26.2.fc24.s390x
xz-5.2.2-2.fc24.s390x
libpipeline-1.4.1-2.fc24.s390x
pinentry-0.9.7-2.fc24.s390x
pth-2.0.7-27.fc24.s390x
libsepol-2.5-10.fc25.s390x
libxcb-1.12-1.fc25.s390x perl-Getopt-Long-2.49.1-1.fc25.noarch avahi-glib-0.6.32-4.fc25.s390x python3-pip-8.1.2-2.fc25.noarch python3-libcomps-0.1.7-5.fc25.s390x python-slip-0.6.4-4.fc25.noarch python2-libcomps-0.1.7-5.fc25.s390x
gc-7.4.4-1.fc25.s390x
s390utils-cmsfs-1.36.0-1.fc25.s390x newt-python-0.52.19-2.fc25.s390x qt5-srpm-macros-5.7.1-1.fc25.noarch device-mapper-event-1.02.136-3.fc25.s390x perl-Class-Inspector-1.31-2.fc25.noarch libbasicobjects-0.1.1-29.fc25.s390x libradosstriper1-10.2.4-2.fc25.s390x libXxf86vm-devel-1.1.4-3.fc24.s390x zziplib-0.13.62-7.fc24.s390x
libpaper-1.1.24-12.fc24.s390x libini_config-1.3.0-29.fc25.s390x snappy-devel-1.1.3-2.fc24.s390x libcap-ng-devel-0.7.8-1.fc25.s390x libxkbcommon-devel-0.7.1-1.fc25.s390x openssl-libs-1.0.2k-1.fc25.s390x util-linux-2.28.2-2.fc25.s390x texlive-etoolbox-svn38031.2.2a-33.fc25.1.noarch texlive-dvips-svn41149-33.fc25.1.noarch texlive-latexconfig-svn40274-33.fc25.1.noarch texlive-tex-ini-files-svn40533-33.fc25.1.noarch texlive-qstest-svn15878.0-33.fc25.1.noarch texlive-cmap-svn41168-33.fc25.1.noarch texlive-luatex-bin-svn41091-33.20160520.fc25.1.s390x texlive-mflogo-svn38628-33.fc25.1.noarch texlive-sansmath-svn17997.1.1-33.fc25.1.noarch texlive-unicode-data-svn39808-33.fc25.1.noarch texlive-luaotfload-bin-svn34647.0-33.20160520.fc25.1.noarch texlive-listings-svn37534.1.6-33.fc25.1.noarch texlive-pstricks-svn41321-33.fc25.1.noarch texlive-metalogo-svn18611.0.12-33.fc25.1.noarch texlive-collection-latex-svn41011-33.20160520.fc25.1.noarch python2-dnf-plugins-core-0.1.21-5.fc25.noarch xkeyboard-config-2.20-2.fc25.noarch perl-Test-Harness-3.39-1.fc25.noarch systemd-libs-231-17.fc25.s390x python3-pycparser-2.14-7.fc25.noarch kernel-devel-4.11.10-200.fc25.s390x
gsm-1.0.17-1.fc25.s390x
python-2.7.13-2.fc25.s390x
kernel-4.11.10-200.fc25.s390x
rpmconf-1.0.19-1.fc25.noarch
teamd-1.27-1.fc25.s390x
jasper-libs-1.900.13-4.fc25.s390x glusterfs-libs-3.10.5-1.fc25.s390x libcrypt-nss-2.24-10.fc25.s390x emacs-common-25.2-3.fc25.s390x
libcurl-7.51.0-9.fc25.s390x java-1.8.0-openjdk-1.8.0.144-5.b01.fc25.s390x gcc-go-6.4.1-1.fc25.s390x
perl-XML-XPath-1.39-2.fc25.noarch python2-sphinx_rtd_theme-0.1.9-2.fc24.noarch libxml2-devel-2.9.4-2.fc25.s390x nss-softokn-devel-3.32.0-1.2.fc25.s390x nss-devel-3.32.0-1.1.fc25.s390x
libattr-2.4.47-16.fc24.s390x
libvisual-0.4.0-20.fc24.s390x
libpcap-1.7.4-2.fc24.s390x
libutempter-1.1.6-8.fc24.s390x
libgudev-230-3.fc24.s390x
popt-devel-1.16-7.fc24.s390x hicolor-icon-theme-0.15-3.fc24.noarch setup-2.10.4-1.fc25.noarch
bash-4.3.43-4.fc25.s390x
libjpeg-turbo-1.5.1-0.fc25.s390x perl-Socket-2.024-1.fc25.s390x perl-HTTP-Tiny-0.070-1.fc25.noarch
ipset-6.29-1.fc25.s390x python2-setuptools-25.1.1-1.fc25.noarch gsettings-desktop-schemas-3.22.0-1.fc25.s390x python3-setuptools-25.1.1-1.fc25.noarch python-slip-dbus-0.6.4-4.fc25.noarch python2-ply-3.8-2.fc25.noarch
dtc-1.4.2-1.fc25.s390x
guile-2.0.13-1.fc25.s390x
cronie-anacron-1.5.1-2.fc25.s390x
libXtst-1.2.3-1.fc25.s390x
iso-codes-3.70-1.fc25.noarch
s390utils-1.36.0-1.fc25.s390x python-backports-ssl_match_hostname-3.5.0.1-3.fc25.noarch fedora-cert-0.6.0.1-1.fc25.noarch dnf-plugin-system-upgrade-0.7.1-4.fc25.noarch lvm2-2.02.167-3.fc25.s390x libselinux-devel-2.5-13.fc25.s390x perl-Time-Local-1.250-1.fc25.noarch libradosstriper-devel-10.2.4-2.fc25.s390x flac-libs-1.3.2-1.fc25.s390x perl-Digest-1.17-366.fc25.noarch
teckit-2.5.1-15.fc24.s390x
libpath_utils-0.2.1-29.fc25.s390x
attr-2.4.47-16.fc24.s390x
usbredir-0.7.1-2.fc24.s390x
cairo-devel-1.14.8-1.fc25.s390x
lzo-devel-2.08-8.fc24.s390x
libcap-devel-2.25-2.fc25.s390x
libbsd-0.8.3-1.fc25.s390x texlive-url-svn32528.3.4-33.fc25.1.noarch texlive-dvips-bin-svn40987-33.20160520.fc25.1.s390x texlive-index-svn24099.4.1beta-33.fc25.1.noarch texlive-setspace-svn24881.6.7a-33.fc25.1.noarch texlive-mathtools-svn38833-33.fc25.1.noarch texlive-cm-svn32865.0-33.fc25.1.noarch texlive-graphics-def-svn41879-33.fc25.1.noarch texlive-mdwtools-svn15878.1.05.4-33.fc25.1.noarch texlive-rsfs-svn15878.0-33.fc25.1.noarch texlive-ucharcat-svn38907-33.fc25.1.noarch texlive-fontspec-svn41262-33.fc25.1.noarch texlive-showexpl-svn32737.v0.3l-33.fc25.1.noarch texlive-pstricks-add-svn40744-33.fc25.1.noarch texlive-beamer-svn36461.3.36-33.fc25.1.noarch texlive-collection-basic-svn41149-33.20160520.fc25.1.noarch xemacs-filesystem-21.5.34-20.20170124hgf412e9f093d4.fc25.noarch hawkey-0.6.4-3.fc25.s390x
bluez-libs-5.44-1.fc25.s390x
audit-libs-2.7.7-1.fc25.s390x
iproute-4.11.0-1.fc25.s390x
libICE-1.0.9-9.fc25.s390x
python3-ply-3.8-2.fc25.noarch
perl-5.24.2-387.fc25.s390x
graphite2-1.3.10-1.fc25.s390x vte-profile-0.46.2-1.fc25.s390x python-libs-2.7.13-2.fc25.s390x mesa-libGL-17.0.5-3.fc25.s390x python2-pycurl-7.43.0-6.fc25.s390x NetworkManager-1.4.4-5.fc25.s390x mesa-libEGL-devel-17.0.5-3.fc25.s390x mesa-libGLES-devel-17.0.5-3.fc25.s390x hostname-3.15-8.fc25.s390x
glibc-headers-2.24-10.fc25.s390x glusterfs-cli-3.10.5-1.fc25.s390x git-core-2.9.5-1.fc25.s390x
mock-1.4.3-1.fc25.noarch
gcc-gfortran-6.4.1-1.fc25.s390x webkitgtk4-plugin-process-gtk2-2.16.6-1.fc25.s390x perl-Module-CoreList-5.20170821-1.fc25.noarch python2-pbr-1.10.0-1.fc25.noarch
libtool-2.4.6-14.fc25.s390x
gnutls-dane-3.5.15-1.fc25.s390x kernel-4.12.11-200.fc25.s390x
gpg-pubkey-a0a7badb-52844296
readline-6.3-8.fc24.s390x
cpio-2.12-3.fc24.s390x
libXcomposite-0.4.4-8.fc24.s390x procps-ng-3.3.10-11.fc24.s390x
GConf2-3.2.6-16.fc24.s390x
xz-devel-5.2.2-2.fc24.s390x
fedora-logos-22.0.0-3.fc24.s390x gpg-pubkey-e372e838-56fd7943
kmod-libs-23-1.fc25.s390x
perl-parent-0.236-1.fc25.noarch perl-TermReadKey-2.37-1.fc25.s390x ncurses-c++-libs-6.0-6.20160709.fc25.s390x gzip-1.8-1.fc25.s390x python3-gobject-base-3.22.0-1.fc25.s390x python2-yubico-1.3.2-3.fc25.noarch s390utils-ziomon-1.36.0-1.fc25.s390x librepo-1.7.18-3.fc25.s390x
gnat-srpm-macros-4-1.fc25.noarch python-decoratortools-1.8-12.fc25.noarch m17n-db-1.7.0-7.fc25.noarch e2fsprogs-libs-1.43.3-1.fc25.s390x libvorbis-1.3.5-1.fc25.s390x
npth-1.3-1.fc25.s390x
libcephfs1-10.2.4-2.fc25.s390x wayland-devel-1.12.0-1.fc25.s390x libxcb-devel-1.12-1.fc25.s390x perl-encoding-2.19-5.fc25.s390x python3-cssselect-0.9.2-1.fc25.noarch gettext-libs-0.19.8.1-3.fc25.s390x at-spi2-atk-devel-2.22.0-1.fc25.s390x virglrenderer-0.5.0-1.20160411git61846f92f.fc25.s390x pixman-devel-0.34.0-2.fc24.s390x libnfs-devel-1.9.8-2.fc24.s390x
libblkid-2.28.2-2.fc25.s390x
glib2-devel-2.50.3-1.fc25.s390x texlive-ifxetex-svn19685.0.5-33.fc25.1.noarch texlive-caption-svn41409-33.fc25.1.noarch texlive-float-svn15878.1.3d-33.fc25.1.noarch texlive-pdftex-def-svn22653.0.06d-33.fc25.1.noarch texlive-xdvi-bin-svn40750-33.20160520.fc25.1.s390x texlive-beton-svn15878.0-33.fc25.1.noarch texlive-filecontents-svn24250.1.3-33.fc25.1.noarch texlive-lm-math-svn36915.1.959-33.fc25.1.noarch texlive-pslatex-svn16416.0-33.fc25.1.noarch texlive-times-svn35058.0-33.fc25.1.noarch texlive-breakurl-svn29901.1.40-33.fc25.1.noarch texlive-filehook-svn24280.0.5d-33.fc25.1.noarch texlive-pst-pdf-svn31660.1.1v-33.fc25.1.noarch texlive-seminar-svn34011.1.62-33.fc25.1.noarch texlive-xetexconfig-svn41133-33.fc25.1.noarch python-rpm-macros-3-12.fc25.noarch nss-pem-1.0.3-3.fc25.s390x
at-spi2-core-2.22.1-1.fc25.s390x perl-Scalar-List-Utils-1.48-1.fc25.s390x libtasn1-devel-4.12-1.fc25.s390x python3-koji-1.13.0-2.fc25.noarch
opus-1.1.5-1.fc25.s390x
elfutils-libs-0.169-1.fc25.s390x kernel-core-4.11.10-200.fc25.s390x systemd-container-231-17.fc25.s390x sudo-1.8.20p2-1.fc25.s390x
libicu-devel-57.1-5.fc25.s390x
js-jquery-2.2.4-3.fc25.noarch
krb5-libs-1.14.4-8.fc25.s390x
apr-1.6.2-1.fc25.s390x
dbus-1.11.16-1.fc25.s390x
libdrm-2.4.82-1.fc25.s390x
pcre2-utf32-10.23-9.fc25.s390x copy-jdk-configs-2.3-1.fc25.noarch libdrm-devel-2.4.82-1.fc25.s390x krb5-workstation-1.14.4-8.fc25.s390x python3-sssdconfig-1.15.3-1.fc25.noarch python2-docutils-0.13.1-3.fc25.noarch graphviz-2.38.0-39.fc25.s390x kernel-modules-4.12.11-200.fc25.s390x fedpkg-1.29-3.fc25.noarch
=== TEST BEGIN ===
Using CC: /home/fam/bin/cc
Install prefix /var/tmp/patchew-tester-tmp-30ljxus4/src/install BIOS directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/share/qemu firmware path /var/tmp/patchew-tester-tmp-30ljxus4/src/install/share/qemu-firmware binary directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/bin
library directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/lib module directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/lib/qemu libexec directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/libexec include directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/include config directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/etc
local state directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/var
Manual directory /var/tmp/patchew-tester-tmp-30ljxus4/src/install/share/man ELF interp prefix /usr/gnemul/qemu-%M
Source path /var/tmp/patchew-tester-tmp-30ljxus4/src GIT submodules ui/keycodemapdb capstone C compiler /home/fam/bin/cc Host C compiler cc C++ compiler c++ Objective-C compiler /home/fam/bin/cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/include/pixman-1 -Werror -DHAS_LIBSSH2_SFTP_FSYNC -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DNCURSES_WIDECHAR -D_GNU_SOURCE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libdrm -I$(SRC_PATH)/capstone/include LDFLAGS -Wl,--warn-common -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU s390x host big endian yes target list aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user tilegx-linux-user x86_64-linux-user gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (2.0.5) GTK support yes (3.22.17) GTK GL support yes VTE support yes (0.46.2) TLS priority NORMAL GNUTLS support yes GNUTLS rnd yes libgcrypt no libgcrypt kdf no nettle yes (3.3) nettle kdf yes libtasn1 yes curses support yes virgl support yes curl support yes mingw32 support no Audio drivers oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support yes
Multipath support no
VNC support yes VNC SASL support yes VNC JPEG support yes VNC PNG support yes xen support no brlapi support yes bluez support yes Documentation yes PIE no vde support no netmap support no Linux AIO support yes ATTR/XATTR support yes Install blobs yes KVM support yes HAX support no TCG support yes TCG debug enabled no TCG interpreter no RDMA support no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes
libcap-ng support yes
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends log spice support no rbd support yes xfsctl support no smartcard support yes libusb yes usb net redir yes OpenGL support yes OpenGL dmabufs yes libiscsi support yes libnfs support yes
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support yes
coroutine backend ucontext
coroutine pool yes
debug stack usage no
crypto afalg no
GlusterFS support yes
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no TPM emulator yes QOM debugging yes Live block migration yes lzo support yes snappy support yes bzip2 support yes
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no
capstone git
GEN aarch64-softmmu/config-devices.mak.tmp GEN arm-softmmu/config-devices.mak.tmp GEN cris-softmmu/config-devices.mak.tmp GEN alpha-softmmu/config-devices.mak.tmp GEN cris-softmmu/config-devices.mak GEN i386-softmmu/config-devices.mak.tmp GEN arm-softmmu/config-devices.mak GEN alpha-softmmu/config-devices.mak GEN aarch64-softmmu/config-devices.mak GEN lm32-softmmu/config-devices.mak.tmp GEN m68k-softmmu/config-devices.mak.tmp GEN microblazeel-softmmu/config-devices.mak.tmp GEN lm32-softmmu/config-devices.mak GEN m68k-softmmu/config-devices.mak GEN microblaze-softmmu/config-devices.mak.tmp GEN mips64el-softmmu/config-devices.mak.tmp GEN microblaze-softmmu/config-devices.mak GEN mips64-softmmu/config-devices.mak.tmp GEN i386-softmmu/config-devices.mak GEN mipsel-softmmu/config-devices.mak.tmp GEN microblazeel-softmmu/config-devices.mak GEN mips-softmmu/config-devices.mak.tmp GEN mips64el-softmmu/config-devices.mak GEN mipsel-softmmu/config-devices.mak GEN mips-softmmu/config-devices.mak GEN nios2-softmmu/config-devices.mak.tmp GEN moxie-softmmu/config-devices.mak.tmp GEN or1k-softmmu/config-devices.mak.tmp GEN nios2-softmmu/config-devices.mak GEN moxie-softmmu/config-devices.mak GEN mips64-softmmu/config-devices.mak GEN or1k-softmmu/config-devices.mak GEN ppc64-softmmu/config-devices.mak.tmp GEN ppcemb-softmmu/config-devices.mak.tmp GEN ppc-softmmu/config-devices.mak.tmp GEN s390x-softmmu/config-devices.mak.tmp GEN s390x-softmmu/config-devices.mak GEN sh4eb-softmmu/config-devices.mak.tmp GEN ppc64-softmmu/config-devices.mak GEN sh4-softmmu/config-devices.mak.tmp GEN ppc-softmmu/config-devices.mak GEN ppcemb-softmmu/config-devices.mak GEN sparc64-softmmu/config-devices.mak.tmp GEN sparc-softmmu/config-devices.mak.tmp GEN sh4eb-softmmu/config-devices.mak GEN sh4-softmmu/config-devices.mak GEN tricore-softmmu/config-devices.mak.tmp GEN unicore32-softmmu/config-devices.mak.tmp GEN sparc64-softmmu/config-devices.mak GEN sparc-softmmu/config-devices.mak GEN x86_64-softmmu/config-devices.mak.tmp GEN xtensaeb-softmmu/config-devices.mak.tmp GEN tricore-softmmu/config-devices.mak GEN xtensa-softmmu/config-devices.mak.tmp GEN unicore32-softmmu/config-devices.mak GEN xtensa-softmmu/config-devices.mak GEN xtensaeb-softmmu/config-devices.mak GEN aarch64-linux-user/config-devices.mak.tmp GEN alpha-linux-user/config-devices.mak.tmp GEN x86_64-softmmu/config-devices.mak GEN armeb-linux-user/config-devices.mak.tmp GEN aarch64-linux-user/config-devices.mak GEN alpha-linux-user/config-devices.mak GEN arm-linux-user/config-devices.mak.tmp GEN cris-linux-user/config-devices.mak.tmp GEN armeb-linux-user/config-devices.mak GEN hppa-linux-user/config-devices.mak.tmp GEN arm-linux-user/config-devices.mak GEN hppa-linux-user/config-devices.mak GEN i386-linux-user/config-devices.mak.tmp GEN m68k-linux-user/config-devices.mak.tmp GEN cris-linux-user/config-devices.mak GEN microblazeel-linux-user/config-devices.mak.tmp GEN microblaze-linux-user/config-devices.mak.tmp GEN microblazeel-linux-user/config-devices.mak GEN microblaze-linux-user/config-devices.mak GEN m68k-linux-user/config-devices.mak GEN mips64el-linux-user/config-devices.mak.tmp GEN mips64-linux-user/config-devices.mak.tmp GEN mipsel-linux-user/config-devices.mak.tmp GEN mips64el-linux-user/config-devices.mak GEN mips64-linux-user/config-devices.mak GEN mips-linux-user/config-devices.mak.tmp GEN i386-linux-user/config-devices.mak GEN mipsn32el-linux-user/config-devices.mak.tmp GEN mipsel-linux-user/config-devices.mak GEN mipsn32-linux-user/config-devices.mak.tmp GEN nios2-linux-user/config-devices.mak.tmp GEN mipsn32-linux-user/config-devices.mak GEN mips-linux-user/config-devices.mak GEN mipsn32el-linux-user/config-devices.mak GEN or1k-linux-user/config-devices.mak.tmp GEN ppc64abi32-linux-user/config-devices.mak.tmp GEN nios2-linux-user/config-devices.mak GEN ppc64-linux-user/config-devices.mak.tmp GEN ppc64le-linux-user/config-devices.mak.tmp GEN or1k-linux-user/config-devices.mak GEN ppc64abi32-linux-user/config-devices.mak GEN ppc-linux-user/config-devices.mak.tmp GEN s390x-linux-user/config-devices.mak.tmp GEN ppc64-linux-user/config-devices.mak GEN ppc64le-linux-user/config-devices.mak GEN sh4eb-linux-user/config-devices.mak.tmp GEN sh4-linux-user/config-devices.mak.tmp GEN ppc-linux-user/config-devices.mak GEN sh4eb-linux-user/config-devices.mak GEN s390x-linux-user/config-devices.mak GEN sparc32plus-linux-user/config-devices.mak.tmp GEN sparc64-linux-user/config-devices.mak.tmp GEN sparc64-linux-user/config-devices.mak GEN sparc32plus-linux-user/config-devices.mak GEN tilegx-linux-user/config-devices.mak.tmp GEN x86_64-linux-user/config-devices.mak.tmp GEN sparc-linux-user/config-devices.mak.tmp GEN sh4-linux-user/config-devices.mak GEN sparc-linux-user/config-devices.mak GEN config-host.h GEN x86_64-linux-user/config-devices.mak GIT ui/keycodemapdb capstone GEN tilegx-linux-user/config-devices.mak GEN qemu-options.def GEN qmp-commands.h GEN qapi-types.h GEN qapi-visit.h GEN qapi-event.h
Submodule 'capstone' (git://git.qemu.org/capstone.git) registered for path 'capstone' Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb'
GEN qmp-marshal.c
Cloning into '/var/tmp/patchew-tester-tmp-30ljxus4/src/capstone'...
GEN qapi-types.c
GEN qapi-visit.c
GEN qapi-event.c
GEN qmp-introspect.h
GEN qmp-introspect.c
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
GEN trace/generated-helpers.c
GEN module_block.h
GEN tests/test-qapi-types.h
GEN tests/test-qapi-visit.h
GEN tests/test-qmp-commands.h
GEN tests/test-qapi-event.h
GEN tests/test-qmp-introspect.h
GEN trace-root.h
GEN util/trace.h
GEN crypto/trace.h
GEN io/trace.h
GEN migration/trace.h
GEN block/trace.h
GEN chardev/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/intc/trace.h
GEN hw/net/trace.h
GEN hw/virtio/trace.h
GEN hw/audio/trace.h
GEN hw/misc/trace.h
GEN hw/usb/trace.h
GEN hw/scsi/trace.h
GEN hw/nvram/trace.h
GEN hw/display/trace.h
GEN hw/input/trace.h
GEN hw/timer/trace.h
GEN hw/dma/trace.h
GEN hw/sparc/trace.h
GEN hw/sd/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/9pfs/trace.h
GEN hw/ppc/trace.h
GEN hw/s390x/trace.h
GEN hw/vfio/trace.h
GEN hw/acpi/trace.h
GEN hw/pci/trace.h
GEN hw/arm/trace.h
GEN hw/alpha/trace.h
GEN hw/xen/trace.h
GEN hw/ide/trace.h
GEN ui/trace.h
GEN audio/trace.h
GEN net/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/sparc/trace.h
GEN target/s390x/trace.h
GEN target/ppc/trace.h
GEN qom/trace.h
GEN linux-user/trace.h
GEN qapi/trace.h
GEN accel/tcg/trace.h
GEN accel/kvm/trace.h
GEN nbd/trace.h
GEN scsi/trace.h
GEN trace-root.c
GEN util/trace.c
GEN crypto/trace.c
GEN migration/trace.c
GEN io/trace.c
GEN block/trace.c
GEN chardev/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/intc/trace.c
GEN hw/net/trace.c
GEN hw/audio/trace.c
GEN hw/misc/trace.c
GEN hw/virtio/trace.c
GEN hw/usb/trace.c
GEN hw/scsi/trace.c
GEN hw/nvram/trace.c
GEN hw/display/trace.c
GEN hw/input/trace.c
GEN hw/timer/trace.c
GEN hw/sparc/trace.c
GEN hw/dma/trace.c
GEN hw/sd/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/9pfs/trace.c
GEN hw/ppc/trace.c
GEN hw/pci/trace.c
GEN hw/s390x/trace.c
GEN hw/vfio/trace.c
GEN hw/acpi/trace.c
GEN hw/arm/trace.c
GEN hw/alpha/trace.c
GEN hw/ide/trace.c
GEN hw/xen/trace.c
GEN ui/trace.c
GEN audio/trace.c
GEN net/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/sparc/trace.c
GEN target/s390x/trace.c
GEN target/ppc/trace.c
GEN qom/trace.c
GEN linux-user/trace.c
GEN qapi/trace.c
GEN accel/tcg/trace.c
GEN accel/kvm/trace.c
GEN nbd/trace.c
GEN scsi/trace.c
GEN config-all-devices.mak
Cloning into '/var/tmp/patchew-tester-tmp-30ljxus4/src/ui/keycodemapdb'...
GEN ui/input-keymap-linux-to-qcode.c
GEN ui/input-keymap-qnum-to-qcode.c
GEN ui/input-keymap-qcode-to-qnum.c
CC cs.o
CC utils.o
CC MCInstrDesc.o
CC SStream.o
CC MCRegisterInfo.o
CC arch/ARM/ARMDisassembler.o
CC arch/ARM/ARMInstPrinter.o
CC arch/ARM/ARMMapping.o
CC arch/ARM/ARMModule.o
CC arch/AArch64/AArch64BaseInfo.o
CC arch/AArch64/AArch64Disassembler.o
CC arch/AArch64/AArch64InstPrinter.o
CC arch/AArch64/AArch64Mapping.o
CC arch/AArch64/AArch64Module.o
CC arch/Mips/MipsDisassembler.o
CC arch/Mips/MipsInstPrinter.o
CC arch/Mips/MipsMapping.o
CC arch/Mips/MipsModule.o
CC arch/PowerPC/PPCDisassembler.o
CC arch/PowerPC/PPCInstPrinter.o
CC arch/PowerPC/PPCMapping.o
CC arch/PowerPC/PPCModule.o
CC arch/Sparc/SparcDisassembler.o
CC arch/Sparc/SparcInstPrinter.o
CC arch/Sparc/SparcMapping.o
CC arch/Sparc/SparcModule.o
CC arch/SystemZ/SystemZDisassembler.o
CC arch/SystemZ/SystemZInstPrinter.o
CC arch/SystemZ/SystemZMapping.o
CC arch/SystemZ/SystemZModule.o
CC arch/X86/X86DisassemblerDecoder.o
CC arch/SystemZ/SystemZMCTargetDesc.o
CC arch/X86/X86Disassembler.o
CC arch/X86/X86IntelInstPrinter.o
CC arch/X86/X86ATTInstPrinter.o
CC arch/X86/X86Mapping.o
CC arch/X86/X86Module.o
CC arch/XCore/XCoreDisassembler.o
CC arch/XCore/XCoreInstPrinter.o
CC arch/XCore/XCoreMapping.o
CC arch/XCore/XCoreModule.o
CC MCInst.o
AR libcapstone.a
ar: creating /var/tmp/patchew-tester-tmp-30ljxus4/src/build/capstone/libcapstone.a
make[1]: '/var/tmp/patchew-tester-tmp-30ljxus4/src/build/capstone/libcapstone.a' is up to date.
GEN docs/version.texi
GEN qemu-options.texi
GEN qemu-monitor.texi
CC tests/qemu-iotests/socket_scm_helper.o
GEN qemu-img-cmds.texi
GEN qemu-monitor-info.texi
GEN qemu-img.1
GEN qemu-nbd.8
GEN qemu-ga.8
GEN docs/interop/qemu-qmp-qapi.texi
GEN docs/interop/qemu-ga-qapi.texi
GEN docs/qemu-block-drivers.7
GEN fsdev/virtfs-proxy-helper.1
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qapi-visit.c
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qmp-marshal.c
CC qapi-types.o
CC qmp-introspect.o
CC qapi-visit.o
CC qapi-event.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnum.o
CC qobject/qnull.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qjson.o
CC qobject/qlit.o
CC qobject/qobject.o
CC qobject/json-streamer.o
CC qobject/json-lexer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-thread-posix.o
CC util/qemu-openpty.o
CC util/memfd.o
CC util/envlist.o
CC util/path.o
CC util/host-utils.o
CC util/module.o
CC util/bitmap.o
CC util/hbitmap.o
CC util/bitops.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/qemu-option.o
CC util/notify.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC trace-root.o
CC util/trace.o
CC crypto/trace.o
CC io/trace.o
CC migration/trace.o
CC block/trace.o
CC chardev/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/intc/trace.o
CC hw/net/trace.o
CC hw/virtio/trace.o
CC hw/audio/trace.o
CC hw/misc/trace.o
CC hw/usb/trace.o
CC hw/scsi/trace.o
CC hw/nvram/trace.o
CC hw/display/trace.o
CC hw/input/trace.o
CC hw/timer/trace.o
CC hw/dma/trace.o
CC hw/sparc/trace.o
CC hw/sd/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/9pfs/trace.o
CC hw/ppc/trace.o
CC hw/pci/trace.o
CC hw/s390x/trace.o
CC hw/vfio/trace.o
CC hw/acpi/trace.o
CC hw/arm/trace.o
CC hw/alpha/trace.o
CC hw/xen/trace.o
CC hw/ide/trace.o
CC ui/trace.o
CC audio/trace.o
CC net/trace.o
CC target/i386/trace.o
CC target/arm/trace.o
CC target/mips/trace.o
CC target/s390x/trace.o
CC target/ppc/trace.o
CC target/sparc/trace.o
CC qom/trace.o
CC linux-user/trace.o
CC qapi/trace.o
CC accel/tcg/trace.o
CC accel/kvm/trace.o
CC nbd/trace.o
CC scsi/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/error-printf.o
CC stubs/dump.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/qtest.o
CC stubs/notify-event.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/slirp.o
CC stubs/set-fd-handler.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/qmp_pc_dimm.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC qemu-keymap.o
CC stubs/pci-host-piix.o
CC ui/input-keymap.o
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/iscsi-opts.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/replication.o
CC block/throttle.o
CC block/backup.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC scsi/pr-manager-helper.o
CC scsi/pr-manager.o
CC block/iscsi.o
CC block/nfs.o
CC block/curl.o
CC block/rbd.o
CC block/gluster.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/pbkdf.o
CC crypto/random-gnutls.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain64.o
CC crypto/ivgen-plain.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-command.o
CC io/channel-buffer.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/task.o
CC qom/container.o
CC qom/object.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
GEN qemu-img-cmds.h
CC qemu-io.o
CC fsdev/9p-marshal.o
CC fsdev/virtfs-proxy-helper.o
CC fsdev/9p-iov-marshal.o
CC scsi/qemu-pr-helper.o
CC qemu-bridge-helper.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
CC iothread.o
CC qdev-monitor.o
CC device-hotplug.o
CC os-posix.o
CC bt-host.o
CC bt-vhci.o
CC dma-helpers.o
CC vl.o
CC tpm.o
CC qemu-seccomp.o
CC device_tree.o
CC qmp-marshal.o
CC qmp.o
CC hmp.o
CC cpus-common.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/sdlaudio.o
CC audio/ossaudio.o
CC backends/rng.o
CC audio/wavcapture.o
CC backends/rng-egd.o
CC backends/rng-random.o
CC backends/tpm.o
CC backends/hostmem.o
CC backends/hostmem-ram.o
CC backends/hostmem-file.o
CC backends/cryptodev.o
CC backends/cryptodev-builtin.o
CC chardev/msmouse.o
CC block/stream.o
CC chardev/wctablet.o
CC chardev/testdev.o
CC chardev/baum.o
CC disas/alpha.o
CXX disas/arm-a64.o
CC disas/arm.o
CC disas/cris.o
CC disas/hppa.o
CC disas/i386.o
CC disas/m68k.o
CC disas/mips.o
CC disas/microblaze.o
CC disas/nios2.o
CC disas/moxie.o
CC disas/ppc.o
CC disas/s390.o
CC disas/sh4.o
CC disas/sparc.o
CC disas/lm32.o
CXX disas/libvixl/vixl/utils.o
CXX disas/libvixl/vixl/compiler-intrinsics.o
CXX disas/libvixl/vixl/a64/instructions-a64.o
CXX disas/libvixl/vixl/a64/decoder-a64.o
CXX disas/libvixl/vixl/a64/disasm-a64.o
CC fsdev/qemu-fsdev.o
CC fsdev/qemu-fsdev-opts.o
CC fsdev/qemu-fsdev-throttle.o
CC fsdev/qemu-fsdev-dummy.o
CC hw/9pfs/9p.o
CC hw/9pfs/9p-util.o
CC hw/9pfs/9p-local.o
CC hw/9pfs/9p-xattr.o
CC hw/9pfs/9p-xattr-user.o
CC hw/9pfs/9p-posix-acl.o
CC hw/9pfs/coth.o
CC hw/9pfs/cofs.o
CC hw/9pfs/codir.o
CC hw/9pfs/cofile.o
CC hw/9pfs/coxattr.o
CC hw/9pfs/9p-synth.o
CC hw/9pfs/9p-handle.o
CC hw/9pfs/9p-proxy.o
CC hw/acpi/core.o
CC hw/acpi/piix4.o
CC hw/acpi/pcihp.o
CC hw/acpi/ich9.o
CC hw/acpi/tco.o
CC hw/acpi/cpu_hotplug.o
CC hw/acpi/memory_hotplug.o
CC hw/acpi/cpu.o
CC hw/acpi/nvdimm.o
CC hw/acpi/vmgenid.o
CC hw/acpi/acpi_interface.o
CC hw/acpi/bios-linker-loader.o
CC hw/acpi/aml-build.o
CC hw/acpi/ipmi.o
CC hw/acpi/acpi-stub.o
CC hw/acpi/ipmi-stub.o
CC hw/audio/sb16.o
CC hw/audio/es1370.o
CC hw/audio/ac97.o
CC hw/audio/fmopl.o
CC hw/audio/adlib.o
CC hw/audio/gus.o
CC hw/audio/gusemu_hal.o
CC hw/audio/gusemu_mixer.o
CC hw/audio/cs4231a.o
CC hw/audio/intel-hda.o
CC hw/audio/hda-codec.o
CC hw/audio/pcspk.o
CC hw/audio/wm8750.o
CC hw/audio/pl041.o
CC hw/audio/lm4549.o
CC hw/audio/cs4231.o
CC hw/audio/marvell_88w8618.o
CC hw/audio/milkymist-ac97.o
CC hw/audio/soundhw.o
CC hw/block/block.o
CC hw/block/cdrom.o
CC hw/block/hd-geometry.o
CC hw/block/fdc.o
CC hw/block/m25p80.o
CC hw/block/nand.o
CC hw/block/pflash_cfi01.o
CC hw/block/pflash_cfi02.o
CC hw/block/ecc.o
CC hw/block/onenand.o
CC hw/block/nvme.o
CC hw/bt/core.o
CC hw/bt/l2cap.o
CC hw/bt/sdp.o
CC hw/bt/hci.o
CC hw/bt/hid.o
CC hw/bt/hci-csr.o
CC hw/char/ipoctal232.o
CC hw/char/escc.o
CC hw/char/parallel.o
CC hw/char/pl011.o
CC hw/char/serial.o
CC hw/char/serial-pci.o
CC hw/char/serial-isa.o
CC hw/char/virtio-console.o
CC hw/char/xilinx_uartlite.o
CC hw/char/cadence_uart.o
CC hw/char/cmsdk-apb-uart.o
CC hw/char/etraxfs_ser.o
CC hw/char/debugcon.o
CC hw/char/grlib_apbuart.o
CC hw/char/imx_serial.o
CC hw/char/lm32_juart.o
CC hw/char/lm32_uart.o
CC hw/char/milkymist-uart.o
CC hw/char/sclpconsole.o
CC hw/char/sclpconsole-lm.o
CC hw/core/qdev.o
CC hw/core/qdev-properties.o
CC hw/core/bus.o
CC hw/core/reset.o
CC hw/core/fw-path-provider.o
CC hw/core/irq.o
CC hw/core/hotplug.o
CC hw/core/nmi.o
CC hw/core/empty_slot.o
CC hw/core/stream.o
CC hw/core/ptimer.o
CC hw/core/sysbus.o
CC hw/core/machine.o
CC hw/core/loader.o
CC hw/core/loader-fit.o
CC hw/core/qdev-properties-system.o
CC hw/core/register.o
CC hw/core/or-irq.o
CC hw/core/platform-bus.o
CC hw/cpu/core.o
CC hw/display/ads7846.o
CC hw/display/cirrus_vga.o
CC hw/display/g364fb.o
CC hw/display/jazz_led.o
CC hw/display/pl110.o
CC hw/display/ssd0323.o
CC hw/display/ssd0303.o
CC hw/display/vga-pci.o
CC hw/display/vga-isa.o
CC hw/display/vga-isa-mm.o
CC hw/display/vmware_vga.o
CC hw/display/blizzard.o
CC hw/display/exynos4210_fimd.o
CC hw/display/framebuffer.o
CC hw/display/milkymist-vgafb.o
CC hw/display/tc6393xb.o
CC hw/dma/puv3_dma.o
CC hw/display/milkymist-tmu2.o
CC hw/dma/rc4030.o
CC hw/dma/pl080.o
CC hw/dma/pl330.o
CC hw/dma/i82374.o
CC hw/dma/i8257.o
CC hw/dma/xilinx_axidma.o
CC hw/dma/xlnx-zynq-devcfg.o
CC hw/dma/etraxfs_dma.o
CC hw/dma/sparc32_dma.o
CC hw/dma/sun4m_iommu.o
CC hw/gpio/max7310.o
CC hw/gpio/pl061.o
CC hw/gpio/puv3_gpio.o
CC hw/gpio/zaurus.o
CC hw/gpio/mpc8xxx.o
CC hw/gpio/gpio_key.o
CC hw/i2c/core.o
CC hw/i2c/smbus.o
CC hw/i2c/smbus_eeprom.o
CC hw/i2c/i2c-ddc.o
CC hw/i2c/versatile_i2c.o
CC hw/i2c/smbus_ich9.o
CC hw/i2c/pm_smbus.o
CC hw/i2c/bitbang_i2c.o
CC hw/i2c/exynos4210_i2c.o
CC hw/i2c/imx_i2c.o
CC hw/ide/core.o
CC hw/i2c/aspeed_i2c.o
CC hw/ide/atapi.o
CC hw/ide/qdev.o
CC hw/ide/pci.o
CC hw/ide/isa.o
CC hw/ide/piix.o
CC hw/ide/cmd646.o
CC hw/ide/macio.o
CC hw/ide/mmio.o
CC hw/ide/via.o
CC hw/ide/microdrive.o
CC hw/ide/ahci.o
CC hw/ide/ich.o
CC hw/input/adb.o
CC hw/input/hid.o
CC hw/input/lm832x.o
CC hw/input/pckbd.o
CC hw/input/pl050.o
CC hw/input/ps2.o
CC hw/input/tsc2005.o
CC hw/input/stellaris_input.o
CC hw/input/vmmouse.o
CC hw/input/virtio-input.o
CC hw/input/virtio-input-hid.o
CC hw/input/virtio-input-host.o
CC hw/intc/heathrow_pic.o
CC hw/intc/i8259_common.o
CC hw/intc/i8259.o
CC hw/intc/pl190.o
CC hw/intc/puv3_intc.o
CC hw/intc/xilinx_intc.o
CC hw/intc/etraxfs_pic.o
CC hw/intc/imx_avic.o
CC hw/intc/lm32_pic.o
CC hw/intc/realview_gic.o
CC hw/intc/slavio_intctl.o
CC hw/intc/ioapic_common.o
CC hw/intc/arm_gic_common.o
CC hw/intc/arm_gic.o
CC hw/intc/arm_gicv2m.o
CC hw/intc/arm_gicv3_common.o
CC hw/intc/arm_gicv3.o
CC hw/intc/arm_gicv3_dist.o
CC hw/intc/arm_gicv3_redist.o
CC hw/intc/arm_gicv3_its_common.o
CC hw/intc/openpic.o
CC hw/intc/intc.o
CC hw/ipack/ipack.o
CC hw/ipack/tpci200.o
CC hw/ipmi/ipmi.o
CC hw/ipmi/ipmi_bmc_sim.o
CC hw/ipmi/ipmi_bmc_extern.o
CC hw/ipmi/isa_ipmi_kcs.o
CC hw/ipmi/isa_ipmi_bt.o
CC hw/isa/isa-bus.o
CC hw/isa/apm.o
CC hw/isa/i82378.o
CC hw/isa/pc87312.o
CC hw/isa/piix4.o
CC hw/isa/vt82c686.o
CC hw/mem/pc-dimm.o
CC hw/mem/nvdimm.o
CC hw/misc/applesmc.o
CC hw/misc/max111x.o
CC hw/misc/tmp105.o
CC hw/misc/tmp421.o
CC hw/misc/debugexit.o
CC hw/misc/sga.o
CC hw/misc/pc-testdev.o
CC hw/misc/pci-testdev.o
CC hw/misc/edu.o
CC hw/misc/unimp.o
CC hw/misc/vmcoreinfo.o
CC hw/misc/arm_l2x0.o
CC hw/misc/arm_integrator_debug.o
CC hw/misc/a9scu.o
CC hw/misc/arm11scu.o
CC hw/misc/puv3_pm.o
CC hw/misc/macio/macio.o
CC hw/misc/macio/cuda.o
CC hw/misc/macio/mac_dbdma.o
CC hw/net/dp8393x.o
CC hw/net/ne2000.o
CC hw/net/eepro100.o
CC hw/net/pcnet-pci.o
CC hw/net/pcnet.o
CC hw/net/e1000.o
CC hw/net/e1000x_common.o
CC hw/net/net_tx_pkt.o
CC hw/net/net_rx_pkt.o
CC hw/net/e1000e.o
CC hw/net/e1000e_core.o
CC hw/net/rtl8139.o
CC hw/net/vmxnet3.o
CC hw/net/smc91c111.o
CC hw/net/lan9118.o
CC hw/net/ne2000-isa.o
CC hw/net/opencores_eth.o
CC hw/net/xgmac.o
CC hw/net/mipsnet.o
CC hw/net/xilinx_axienet.o
CC hw/net/allwinner_emac.o
CC hw/net/imx_fec.o
CC hw/net/cadence_gem.o
CC hw/net/stellaris_enet.o
CC hw/net/lance.o
CC hw/net/sunhme.o
CC hw/net/ftgmac100.o
CC hw/net/sungem.o
CC hw/net/rocker/rocker.o
CC hw/net/rocker/rocker_fp.o
CC hw/net/rocker/rocker_desc.o
CC hw/net/rocker/rocker_world.o
CC hw/net/rocker/rocker_of_dpa.o
CC hw/nvram/ds1225y.o
CC hw/nvram/eeprom93xx.o
CC hw/nvram/fw_cfg.o
CC hw/nvram/chrp_nvram.o
CC hw/nvram/mac_nvram.o
CC hw/pci-bridge/pci_bridge_dev.o
CC hw/pci-bridge/pcie_pci_bridge.o
CC hw/pci-bridge/pcie_root_port.o
CC hw/pci-bridge/gen_pcie_root_port.o
CC hw/pci-bridge/pci_expander_bridge.o
CC hw/pci-bridge/xio3130_downstream.o
CC hw/pci-bridge/xio3130_upstream.o
CC hw/pci-bridge/ioh3420.o
CC hw/pci-bridge/i82801b11.o
CC hw/pci-bridge/dec.o
CC hw/pci-host/pam.o
CC hw/pci-host/prep.o
CC hw/pci-host/grackle.o
CC hw/pci-host/uninorth.o
CC hw/pci-host/ppce500.o
CC hw/pci-host/versatile.o
CC hw/pci-host/apb.o
CC hw/pci-host/bonito.o
CC hw/pci-host/piix.o
CC hw/pci-host/q35.o
CC hw/pci-host/gpex.o
CC hw/pci-host/xilinx-pcie.o
CC hw/pci/pci.o
CC hw/pci/pci_bridge.o
CC hw/pci/msix.o
CC hw/pci/msi.o
CC hw/pci/shpc.o
CC hw/pci/slotid_cap.o
CC hw/pci/pci_host.o
CC hw/pci/pcie_host.o
CC hw/pci/pcie.o
CC hw/pci/pcie_aer.o
CC hw/pci/pcie_port.o
CC hw/pci/pci-stub.o
CC hw/pcmcia/pcmcia.o
CC hw/scsi/scsi-disk.o
CC hw/scsi/scsi-generic.o
CC hw/scsi/scsi-bus.o
CC hw/scsi/lsi53c895a.o
CC hw/scsi/mptsas.o
CC hw/scsi/mptconfig.o
CC hw/scsi/mptendian.o
CC hw/scsi/megasas.o
CC hw/scsi/vmw_pvscsi.o
CC hw/scsi/esp.o
CC hw/scsi/esp-pci.o
CC hw/sd/pl181.o
CC hw/sd/ssi-sd.o
CC hw/sd/sd.o
CC hw/sd/core.o
CC hw/sd/sdhci.o
CC hw/smbios/smbios.o
CC hw/smbios/smbios_type_38.o
CC hw/smbios/smbios-stub.o
CC hw/smbios/smbios_type_38-stub.o
CC hw/ssi/pl022.o
CC hw/ssi/ssi.o
CC hw/ssi/xilinx_spi.o
CC hw/ssi/xilinx_spips.o
CC hw/ssi/aspeed_smc.o
CC hw/ssi/stm32f2xx_spi.o
CC hw/ssi/mss-spi.o
CC hw/timer/arm_timer.o
CC hw/timer/arm_mptimer.o
CC hw/timer/armv7m_systick.o
CC hw/timer/a9gtimer.o
CC hw/timer/cadence_ttc.o
CC hw/timer/ds1338.o
CC hw/timer/hpet.o
CC hw/timer/i8254_common.o
CC hw/timer/i8254.o
CC hw/timer/m48t59.o
CC hw/timer/m48t59-isa.o
CC hw/timer/pl031.o
CC hw/timer/puv3_ost.o
CC hw/timer/twl92230.o
CC hw/timer/xilinx_timer.o
CC hw/timer/slavio_timer.o
CC hw/timer/etraxfs_timer.o
CC hw/timer/grlib_gptimer.o
CC hw/timer/imx_epit.o
CC hw/timer/imx_gpt.o
CC hw/timer/lm32_timer.o
CC hw/timer/milkymist-sysctl.o
CC hw/timer/stm32f2xx_timer.o
CC hw/timer/sun4v-rtc.o
CC hw/timer/aspeed_timer.o
CC hw/timer/cmsdk-apb-timer.o
CC hw/timer/mss-timer.o
CC hw/tpm/tpm_tis.o
CC hw/tpm/tpm_emulator.o
CC hw/tpm/tpm_util.o
CC hw/usb/core.o
CC hw/usb/combined-packet.o
CC hw/usb/bus.o
CC hw/usb/libhw.o
CC hw/usb/desc.o
CC hw/usb/desc-msos.o
CC hw/usb/hcd-uhci.o
CC hw/usb/hcd-ohci.o
CC hw/usb/hcd-ehci.o
CC hw/usb/hcd-ehci-pci.o
CC hw/usb/hcd-ehci-sysbus.o
CC hw/usb/hcd-xhci.o
CC hw/usb/hcd-xhci-nec.o
CC hw/usb/hcd-musb.o
CC hw/usb/dev-hub.o
CC hw/usb/dev-hid.o
CC hw/usb/dev-wacom.o
CC hw/usb/dev-storage.o
CC hw/usb/dev-uas.o
CC hw/usb/dev-audio.o
CC hw/usb/dev-serial.o
CC hw/usb/dev-network.o
CC hw/usb/dev-bluetooth.o
CC hw/usb/dev-smartcard-reader.o
CC hw/usb/ccid-card-passthru.o
CC hw/usb/ccid-card-emulated.o
CC hw/usb/dev-mtp.o
CC hw/usb/redirect.o
CC hw/usb/quirks.o
CC hw/usb/host-libusb.o
CC hw/usb/host-legacy.o
CC hw/usb/host-stub.o
CC hw/virtio/virtio-rng.o
CC hw/virtio/virtio-pci.o
CC hw/virtio/virtio-bus.o
CC hw/virtio/virtio-mmio.o
CC hw/virtio/vhost-stub.o
CC hw/watchdog/watchdog.o
CC hw/watchdog/wdt_i6300esb.o
CC hw/watchdog/wdt_ib700.o
CC hw/watchdog/wdt_diag288.o
CC hw/watchdog/wdt_aspeed.o
CC migration/migration.o
CC migration/socket.o
CC migration/fd.o
CC migration/exec.o
CC migration/tls.o
CC migration/savevm.o
CC migration/channel.o
CC migration/colo-comm.o
CC migration/colo.o
CC migration/colo-failover.o
CC migration/vmstate.o
CC migration/vmstate-types.o
CC migration/page_cache.o
CC migration/qemu-file.o
CC migration/global_state.o
CC migration/xbzrle.o
CC migration/qemu-file-channel.o
CC migration/postcopy-ram.o
CC migration/qjson.o
CC migration/block-dirty-bitmap.o
CC migration/block.o
CC net/net.o
CC net/queue.o
CC net/checksum.o
CC net/util.o
CC net/hub.o
CC net/socket.o
CC net/dump.o
CC net/eth.o
CC net/l2tpv3.o
CC net/vhost-user.o
CC net/slirp.o
CC net/filter.o
CC net/filter-mirror.o
CC net/filter-buffer.o
CC net/colo-compare.o
CC net/colo.o
CC net/filter-rewriter.o
CC net/filter-replay.o
CC net/tap.o
CC net/tap-linux.o
CC qom/cpu.o
CC replay/replay.o
CC replay/replay-internal.o
CC replay/replay-events.o
CC replay/replay-time.o
CC replay/replay-input.o
CC replay/replay-char.o
CC replay/replay-snapshot.o
CC replay/replay-net.o
CC replay/replay-audio.o
CC slirp/cksum.o
CC slirp/if.o
CC slirp/ip_icmp.o
CC slirp/ip6_icmp.o
CC slirp/ip6_input.o
CC slirp/ip6_output.o
CC slirp/ip_input.o
CC slirp/ip_output.o
CC slirp/dnssearch.o
CC slirp/dhcpv6.o
CC slirp/slirp.o
CC slirp/mbuf.o
CC slirp/misc.o
CC slirp/sbuf.o
CC slirp/socket.o
CC slirp/tcp_input.o
CC slirp/tcp_output.o
CC slirp/tcp_subr.o
CC slirp/tcp_timer.o
CC slirp/udp.o
CC slirp/udp6.o
CC slirp/bootp.o
CC slirp/tftp.o
CC slirp/arp_table.o
CC slirp/ndp_table.o
CC slirp/ncsi.o
CC ui/keymaps.o
CC ui/console.o
CC ui/cursor.o
CC ui/qemu-pixman.o
CC ui/input.o
CC ui/input-legacy.o
CC ui/input-linux.o
CC ui/sdl2.o
CC ui/sdl2-input.o
CC ui/sdl2-2d.o
CC ui/sdl2-gl.o
CC ui/x_keymap.o
CC ui/curses.o
CC ui/vnc.o
CC ui/vnc-enc-zlib.o
CC ui/vnc-enc-hextile.o
CC ui/vnc-enc-tight.o
CC ui/vnc-palette.o
CC ui/vnc-enc-zrle.o
CC ui/vnc-auth-vencrypt.o
CC ui/vnc-auth-sasl.o
CC ui/vnc-jobs.o
CC ui/vnc-ws.o
CC ui/gtk.o
VERT ui/shader/texture-blit-vert.h
VERT ui/shader/texture-blit-flip-vert.h
FRAG ui/shader/texture-blit-frag.h
CC ui/console-gl.o
CC ui/egl-helpers.o
CC ui/egl-context.o
CC ui/egl-headless.o
CC ui/gtk-gl-area.o
CC chardev/char.o
CC chardev/char-fd.o
CC chardev/char-fe.o
CC chardev/char-file.o
CC chardev/char-io.o
CC chardev/char-mux.o
CC chardev/char-null.o
CC chardev/char-parallel.o
CC chardev/char-pipe.o
CC chardev/char-ringbuf.o
CC chardev/char-pty.o
CC chardev/char-serial.o
CC chardev/char-socket.o
CC chardev/char-stdio.o
CC chardev/char-udp.o
LINK tests/qemu-iotests/socket_scm_helper
GEN qemu-doc.html
CCAS s390-ccw/start.o
GEN qemu-doc.txt
GEN qemu.1
CC s390-ccw/main.o
CC s390-ccw/bootmap.o
GEN docs/interop/qemu-qmp-ref.html
CC s390-ccw/sclp.o
CC s390-ccw/virtio.o
GEN docs/interop/qemu-qmp-ref.txt
CC s390-ccw/virtio-scsi.o
GEN docs/interop/qemu-qmp-ref.7
CC s390-ccw/virtio-blkdev.o
GEN docs/interop/qemu-ga-ref.html
s390-netboot.img not built since roms/SLOF/ is not available.
BUILD s390-ccw/s390-ccw.elf
STRIP s390-ccw/s390-ccw.img
GEN docs/interop/qemu-ga-ref.txt
GEN docs/interop/qemu-ga-ref.7
CC qga/commands.o
CC qga/guest-agent-command-state.o
CC qga/main.o
CC qga/commands-posix.o
CC qga/channel-posix.o
CC qga/qapi-generated/qga-qapi-types.o
CC qga/qapi-generated/qga-qapi-visit.o
CC qga/qapi-generated/qga-qmp-marshal.o
AR libqemuutil.a
CC ui/shader.o
CC qemu-img.o
LINK qemu-keymap
LINK ivshmem-client
LINK ivshmem-server
LINK qemu-nbd
LINK qemu-io
LINK fsdev/virtfs-proxy-helper
LINK scsi/qemu-pr-helper
LINK qemu-bridge-helper
GEN cris-softmmu/hmp-commands.h
GEN alpha-softmmu/hmp-commands.h
GEN cris-softmmu/hmp-commands-info.h
GEN arm-softmmu/hmp-commands.h
GEN cris-softmmu/config-target.h
GEN arm-softmmu/hmp-commands-info.h
GEN alpha-softmmu/hmp-commands-info.h
CC cris-softmmu/exec.o
GEN arm-softmmu/config-target.h
CC arm-softmmu/exec.o
GEN alpha-softmmu/config-target.h
CC alpha-softmmu/exec.o
GEN aarch64-softmmu/hmp-commands.h
GEN aarch64-softmmu/hmp-commands-info.h
GEN aarch64-softmmu/config-target.h
CC aarch64-softmmu/exec.o
CC arm-softmmu/tcg/tcg.o
CC cris-softmmu/tcg/tcg.o
CC alpha-softmmu/tcg/tcg.o
CC aarch64-softmmu/tcg/tcg.o
CC arm-softmmu/tcg/tcg-op.o
CC alpha-softmmu/tcg/tcg-op.o
CC cris-softmmu/tcg/tcg-op.o
CC aarch64-softmmu/tcg/tcg-op.o
CC arm-softmmu/tcg/optimize.o
CC alpha-softmmu/tcg/optimize.o
CC cris-softmmu/tcg/optimize.o
CC arm-softmmu/tcg/tcg-common.o
CC arm-softmmu/fpu/softfloat.o
CC alpha-softmmu/tcg/tcg-common.o
CC cris-softmmu/tcg/tcg-common.o
CC alpha-softmmu/fpu/softfloat.o
CC aarch64-softmmu/tcg/optimize.o
CC cris-softmmu/fpu/softfloat.o
CC aarch64-softmmu/tcg/tcg-common.o
CC arm-softmmu/disas.o
CC alpha-softmmu/disas.o
CC aarch64-softmmu/fpu/softfloat.o
GEN arm-softmmu/gdbstub-xml.c
CC alpha-softmmu/arch_init.o
CC alpha-softmmu/cpus.o
CC arm-softmmu/arch_init.o
CC alpha-softmmu/monitor.o
CC cris-softmmu/disas.o
CC arm-softmmu/cpus.o
CC cris-softmmu/arch_init.o
CC arm-softmmu/monitor.o
CC cris-softmmu/cpus.o
CC alpha-softmmu/gdbstub.o
CC aarch64-softmmu/disas.o
CC cris-softmmu/monitor.o
CC alpha-softmmu/balloon.o
GEN aarch64-softmmu/gdbstub-xml.c
CC alpha-softmmu/ioport.o
CC arm-softmmu/gdbstub.o
CC alpha-softmmu/numa.o
CC cris-softmmu/gdbstub.o
CC arm-softmmu/balloon.o
CC aarch64-softmmu/arch_init.o
CC alpha-softmmu/qtest.o
CC aarch64-softmmu/cpus.o
CC cris-softmmu/balloon.o
CC arm-softmmu/ioport.o
CC alpha-softmmu/memory.o
CC cris-softmmu/ioport.o
CC arm-softmmu/numa.o
CC aarch64-softmmu/monitor.o
CC cris-softmmu/numa.o
CC arm-softmmu/qtest.o
CC cris-softmmu/qtest.o
CC alpha-softmmu/memory_mapping.o
CC arm-softmmu/memory.o
CC alpha-softmmu/dump.o
CC cris-softmmu/memory.o
CC aarch64-softmmu/gdbstub.o
CC alpha-softmmu/migration/ram.o
CC arm-softmmu/memory_mapping.o
CC aarch64-softmmu/balloon.o
CC aarch64-softmmu/ioport.o
CC arm-softmmu/dump.o
CC cris-softmmu/memory_mapping.o
CC alpha-softmmu/accel/accel.o
CC aarch64-softmmu/numa.o
CC alpha-softmmu/accel/stubs/hax-stub.o
CC cris-softmmu/dump.o
CC arm-softmmu/migration/ram.o
CC alpha-softmmu/accel/stubs/kvm-stub.o
CC aarch64-softmmu/qtest.o
CC alpha-softmmu/accel/tcg/tcg-all.o
CC alpha-softmmu/accel/tcg/cputlb.o
CC cris-softmmu/migration/ram.o
CC aarch64-softmmu/memory.o
CC arm-softmmu/accel/accel.o
CC arm-softmmu/accel/stubs/hax-stub.o
CC cris-softmmu/accel/accel.o
CC arm-softmmu/accel/stubs/kvm-stub.o
CC cris-softmmu/accel/stubs/hax-stub.o
CC aarch64-softmmu/memory_mapping.o
CC alpha-softmmu/accel/tcg/tcg-runtime.o
CC cris-softmmu/accel/stubs/kvm-stub.o
CC arm-softmmu/accel/tcg/tcg-all.o
CC aarch64-softmmu/dump.o
CC cris-softmmu/accel/tcg/tcg-all.o
CC arm-softmmu/accel/tcg/cputlb.o
CC alpha-softmmu/accel/tcg/cpu-exec.o
CC cris-softmmu/accel/tcg/cputlb.o
CC alpha-softmmu/accel/tcg/cpu-exec-common.o
CC aarch64-softmmu/migration/ram.o
CC alpha-softmmu/accel/tcg/translate-all.o
CC cris-softmmu/accel/tcg/tcg-runtime.o
CC arm-softmmu/accel/tcg/tcg-runtime.o
CC alpha-softmmu/accel/tcg/translator.o
CC cris-softmmu/accel/tcg/cpu-exec.o
CC aarch64-softmmu/accel/accel.o
CC alpha-softmmu/hw/9pfs/virtio-9p-device.o
CC arm-softmmu/accel/tcg/cpu-exec.o
CC aarch64-softmmu/accel/stubs/hax-stub.o
CC cris-softmmu/accel/tcg/cpu-exec-common.o
CC aarch64-softmmu/accel/stubs/kvm-stub.o
CC alpha-softmmu/hw/block/virtio-blk.o
CC cris-softmmu/accel/tcg/translate-all.o
CC aarch64-softmmu/accel/tcg/tcg-all.o
CC arm-softmmu/accel/tcg/cpu-exec-common.o
CC alpha-softmmu/hw/block/dataplane/virtio-blk.o
CC aarch64-softmmu/accel/tcg/cputlb.o
CC arm-softmmu/accel/tcg/translate-all.o
CC alpha-softmmu/hw/char/virtio-serial-bus.o
CC cris-softmmu/accel/tcg/translator.o
CC cris-softmmu/hw/core/generic-loader.o
CC alpha-softmmu/hw/core/generic-loader.o
CC arm-softmmu/accel/tcg/translator.o
CC alpha-softmmu/hw/core/null-machine.o
CC cris-softmmu/hw/core/null-machine.o
CC alpha-softmmu/hw/display/vga.o
CC cris-softmmu/hw/misc/mmio_interface.o
CC aarch64-softmmu/accel/tcg/tcg-runtime.o
CC arm-softmmu/hw/9pfs/virtio-9p-device.o
CC cris-softmmu/hw/net/etraxfs_eth.o
CC cris-softmmu/hw/net/vhost_net.o
CC arm-softmmu/hw/adc/stm32f2xx_adc.o
CC aarch64-softmmu/accel/tcg/cpu-exec.o
CC cris-softmmu/hw/net/rocker/qmp-norocker.o
CC arm-softmmu/hw/block/virtio-blk.o
CC cris-softmmu/hw/vfio/common.o
CC alpha-softmmu/hw/display/virtio-gpu.o
CC arm-softmmu/hw/block/dataplane/virtio-blk.o
CC aarch64-softmmu/accel/tcg/cpu-exec-common.o
CC aarch64-softmmu/accel/tcg/translate-all.o
CC arm-softmmu/hw/char/exynos4210_uart.o
CC cris-softmmu/hw/vfio/platform.o
CC alpha-softmmu/hw/display/virtio-gpu-3d.o
CC arm-softmmu/hw/char/omap_uart.o
CC aarch64-softmmu/accel/tcg/translator.o
CC cris-softmmu/hw/vfio/spapr.o
CC alpha-softmmu/hw/display/virtio-gpu-pci.o
CC arm-softmmu/hw/char/digic-uart.o
CC arm-softmmu/hw/char/stm32f2xx_usart.o
CC cris-softmmu/hw/cris/boot.o
CC aarch64-softmmu/hw/9pfs/virtio-9p-device.o
CC alpha-softmmu/hw/misc/ivshmem.o
CC cris-softmmu/hw/cris/axis_dev88.o
CC arm-softmmu/hw/char/bcm2835_aux.o
CC aarch64-softmmu/hw/adc/stm32f2xx_adc.o
CC cris-softmmu/target/cris/translate.o
CC aarch64-softmmu/hw/block/virtio-blk.o
CC arm-softmmu/hw/char/virtio-serial-bus.o
CC alpha-softmmu/hw/misc/mmio_interface.o
CC arm-softmmu/hw/core/generic-loader.o
CC aarch64-softmmu/hw/block/dataplane/virtio-blk.o
CC alpha-softmmu/hw/net/virtio-net.o
CC arm-softmmu/hw/core/null-machine.o
CC aarch64-softmmu/hw/char/exynos4210_uart.o
CC aarch64-softmmu/hw/char/omap_uart.o
CC arm-softmmu/hw/cpu/arm11mpcore.o
CC aarch64-softmmu/hw/char/digic-uart.o
CC alpha-softmmu/hw/net/vhost_net.o
CC arm-softmmu/hw/cpu/realview_mpcore.o
CC cris-softmmu/target/cris/op_helper.o
CC aarch64-softmmu/hw/char/stm32f2xx_usart.o
CC alpha-softmmu/hw/scsi/virtio-scsi.o
CC arm-softmmu/hw/cpu/a9mpcore.o
CC cris-softmmu/target/cris/helper.o
CC arm-softmmu/hw/cpu/a15mpcore.o
CC aarch64-softmmu/hw/char/bcm2835_aux.o
CC cris-softmmu/target/cris/cpu.o
CC alpha-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC arm-softmmu/hw/display/omap_dss.o
CC cris-softmmu/target/cris/gdbstub.o
CC alpha-softmmu/hw/scsi/vhost-scsi-common.o
CC aarch64-softmmu/hw/char/virtio-serial-bus.o
CC cris-softmmu/target/cris/mmu.o
CC alpha-softmmu/hw/scsi/vhost-scsi.o
CC arm-softmmu/hw/display/omap_lcdc.o
CC cris-softmmu/target/cris/machine.o
CC alpha-softmmu/hw/scsi/vhost-user-scsi.o
CC aarch64-softmmu/hw/core/generic-loader.o
CC alpha-softmmu/hw/timer/mc146818rtc.o
GEN trace/generated-helpers.c
CC aarch64-softmmu/hw/core/null-machine.o
CC cris-softmmu/trace/control-target.o
CC arm-softmmu/hw/display/pxa2xx_lcd.o
CC aarch64-softmmu/hw/cpu/arm11mpcore.o
CC alpha-softmmu/hw/vfio/common.o
CC aarch64-softmmu/hw/cpu/realview_mpcore.o
CC cris-softmmu/trace/generated-helpers.o
CC aarch64-softmmu/hw/cpu/a9mpcore.o
LINK cris-softmmu/qemu-system-cris
CC aarch64-softmmu/hw/cpu/a15mpcore.o
CC alpha-softmmu/hw/vfio/pci.o
CC arm-softmmu/hw/display/bcm2835_fb.o
CC aarch64-softmmu/hw/display/omap_dss.o
CC arm-softmmu/hw/display/vga.o
CC aarch64-softmmu/hw/display/omap_lcdc.o
CC alpha-softmmu/hw/vfio/pci-quirks.o
CC arm-softmmu/hw/display/virtio-gpu.o
CC aarch64-softmmu/hw/display/pxa2xx_lcd.o
CC alpha-softmmu/hw/vfio/platform.o
CC arm-softmmu/hw/display/virtio-gpu-3d.o
CC alpha-softmmu/hw/vfio/spapr.o
GEN i386-softmmu/hmp-commands.h
GEN i386-softmmu/hmp-commands-info.h
CC alpha-softmmu/hw/virtio/virtio.o
GEN i386-softmmu/config-target.h
CC aarch64-softmmu/hw/display/bcm2835_fb.o
CC i386-softmmu/exec.o
CC arm-softmmu/hw/display/virtio-gpu-pci.o
CC aarch64-softmmu/hw/display/vga.o
CC alpha-softmmu/hw/virtio/virtio-balloon.o
CC arm-softmmu/hw/dma/omap_dma.o
CC alpha-softmmu/hw/virtio/vhost.o
CC aarch64-softmmu/hw/display/virtio-gpu.o
CC arm-softmmu/hw/dma/soc_dma.o
CC i386-softmmu/tcg/tcg.o
CC arm-softmmu/hw/dma/pxa2xx_dma.o
CC alpha-softmmu/hw/virtio/vhost-backend.o
CC arm-softmmu/hw/dma/bcm2835_dma.o
CC aarch64-softmmu/hw/display/virtio-gpu-3d.o
CC alpha-softmmu/hw/virtio/vhost-user.o
CC arm-softmmu/hw/gpio/omap_gpio.o
CC alpha-softmmu/hw/virtio/vhost-vsock.o
CC aarch64-softmmu/hw/display/virtio-gpu-pci.o
CC arm-softmmu/hw/gpio/imx_gpio.o
CC alpha-softmmu/hw/virtio/virtio-crypto.o
CC arm-softmmu/hw/gpio/bcm2835_gpio.o
CC aarch64-softmmu/hw/display/dpcd.o
CC alpha-softmmu/hw/virtio/virtio-crypto-pci.o
CC i386-softmmu/tcg/tcg-op.o
CC arm-softmmu/hw/i2c/omap_i2c.o
CC aarch64-softmmu/hw/display/xlnx_dp.o
CC arm-softmmu/hw/input/pxa2xx_keypad.o
CC alpha-softmmu/hw/alpha/dp264.o
CC aarch64-softmmu/hw/dma/xlnx_dpdma.o
CC arm-softmmu/hw/input/tsc210x.o
CC alpha-softmmu/hw/alpha/pci.o
CC arm-softmmu/hw/intc/armv7m_nvic.o
CC aarch64-softmmu/hw/dma/omap_dma.o
CC alpha-softmmu/hw/alpha/typhoon.o
CC i386-softmmu/tcg/optimize.o
CC alpha-softmmu/target/alpha/machine.o
CC alpha-softmmu/target/alpha/translate.o
CC aarch64-softmmu/hw/dma/soc_dma.o
CC arm-softmmu/hw/intc/exynos4210_gic.o
CC aarch64-softmmu/hw/dma/pxa2xx_dma.o
CC i386-softmmu/tcg/tcg-common.o
CC arm-softmmu/hw/intc/exynos4210_combiner.o
CC i386-softmmu/fpu/softfloat.o
CC aarch64-softmmu/hw/dma/bcm2835_dma.o
CC arm-softmmu/hw/intc/omap_intc.o
CC alpha-softmmu/target/alpha/helper.o
CC aarch64-softmmu/hw/gpio/omap_gpio.o
CC arm-softmmu/hw/intc/bcm2835_ic.o
CC aarch64-softmmu/hw/gpio/imx_gpio.o
CC alpha-softmmu/target/alpha/cpu.o
CC arm-softmmu/hw/intc/bcm2836_control.o
CC alpha-softmmu/target/alpha/int_helper.o
CC aarch64-softmmu/hw/gpio/bcm2835_gpio.o
CC arm-softmmu/hw/intc/allwinner-a10-pic.o
CC aarch64-softmmu/hw/i2c/omap_i2c.o
CC arm-softmmu/hw/intc/aspeed_vic.o
CC aarch64-softmmu/hw/input/pxa2xx_keypad.o
CC alpha-softmmu/target/alpha/fpu_helper.o
CC arm-softmmu/hw/intc/arm_gicv3_cpuif.o
CC aarch64-softmmu/hw/input/tsc210x.o
CC alpha-softmmu/target/alpha/vax_helper.o
CC i386-softmmu/disas.o
CC aarch64-softmmu/hw/intc/armv7m_nvic.o
CC alpha-softmmu/target/alpha/sys_helper.o
GEN i386-softmmu/gdbstub-xml.c
CC arm-softmmu/hw/misc/ivshmem.o
CC alpha-softmmu/target/alpha/mem_helper.o
CC i386-softmmu/arch_init.o
CC alpha-softmmu/target/alpha/gdbstub.o
CC aarch64-softmmu/hw/intc/exynos4210_gic.o
CC i386-softmmu/cpus.o
CC arm-softmmu/hw/misc/arm_sysctl.o
GEN trace/generated-helpers.c
CC alpha-softmmu/trace/control-target.o
CC aarch64-softmmu/hw/intc/exynos4210_combiner.o
CC arm-softmmu/hw/misc/cbus.o
CC aarch64-softmmu/hw/intc/omap_intc.o
CC alpha-softmmu/trace/generated-helpers.o
CC i386-softmmu/monitor.o
CC arm-softmmu/hw/misc/exynos4210_pmu.o
CC aarch64-softmmu/hw/intc/bcm2835_ic.o
LINK alpha-softmmu/qemu-system-alpha
CC arm-softmmu/hw/misc/exynos4210_clk.o
CC aarch64-softmmu/hw/intc/bcm2836_control.o
CC arm-softmmu/hw/misc/exynos4210_rng.o
CC aarch64-softmmu/hw/intc/allwinner-a10-pic.o
CC arm-softmmu/hw/misc/imx_ccm.o
CC i386-softmmu/gdbstub.o
CC arm-softmmu/hw/misc/imx31_ccm.o
CC aarch64-softmmu/hw/intc/aspeed_vic.o
CC arm-softmmu/hw/misc/imx25_ccm.o
CC arm-softmmu/hw/misc/imx6_ccm.o
CC aarch64-softmmu/hw/intc/arm_gicv3_cpuif.o
CC i386-softmmu/balloon.o
CC arm-softmmu/hw/misc/imx6_src.o
CC i386-softmmu/ioport.o
CC arm-softmmu/hw/misc/mst_fpga.o
CC i386-softmmu/numa.o
CC arm-softmmu/hw/misc/omap_clk.o
GEN lm32-softmmu/hmp-commands.h
GEN lm32-softmmu/hmp-commands-info.h
GEN lm32-softmmu/config-target.h
CC aarch64-softmmu/hw/misc/ivshmem.o
CC lm32-softmmu/exec.o
CC i386-softmmu/qtest.o
CC arm-softmmu/hw/misc/omap_gpmc.o
CC aarch64-softmmu/hw/misc/arm_sysctl.o
CC i386-softmmu/memory.o
CC aarch64-softmmu/hw/misc/cbus.o
CC arm-softmmu/hw/misc/omap_l4.o
CC arm-softmmu/hw/misc/omap_sdrc.o
CC aarch64-softmmu/hw/misc/exynos4210_pmu.o
CC aarch64-softmmu/hw/misc/exynos4210_clk.o
CC arm-softmmu/hw/misc/omap_tap.o
CC arm-softmmu/hw/misc/bcm2835_mbox.o
CC i386-softmmu/memory_mapping.o
CC lm32-softmmu/tcg/tcg.o
CC aarch64-softmmu/hw/misc/exynos4210_rng.o
CC arm-softmmu/hw/misc/bcm2835_property.o
CC i386-softmmu/dump.o
CC aarch64-softmmu/hw/misc/imx_ccm.o
CC aarch64-softmmu/hw/misc/imx31_ccm.o
CC arm-softmmu/hw/misc/bcm2835_rng.o
CC i386-softmmu/migration/ram.o
CC aarch64-softmmu/hw/misc/imx25_ccm.o
CC arm-softmmu/hw/misc/zynq_slcr.o
CC aarch64-softmmu/hw/misc/imx6_ccm.o
CC lm32-softmmu/tcg/tcg-op.o
CC arm-softmmu/hw/misc/zynq-xadc.o
CC aarch64-softmmu/hw/misc/imx6_src.o
CC i386-softmmu/accel/accel.o
CC arm-softmmu/hw/misc/stm32f2xx_syscfg.o
CC arm-softmmu/hw/misc/mps2-scc.o
CC aarch64-softmmu/hw/misc/mst_fpga.o
CC i386-softmmu/accel/stubs/hax-stub.o
CC arm-softmmu/hw/misc/aspeed_scu.o
CC aarch64-softmmu/hw/misc/omap_clk.o
CC i386-softmmu/accel/stubs/kvm-stub.o
CC arm-softmmu/hw/misc/aspeed_sdmc.o
CC aarch64-softmmu/hw/misc/omap_gpmc.o
CC i386-softmmu/accel/tcg/tcg-all.o
CC arm-softmmu/hw/misc/mmio_interface.o
CC lm32-softmmu/tcg/optimize.o
CC aarch64-softmmu/hw/misc/omap_l4.o
CC i386-softmmu/accel/tcg/cputlb.o
CC arm-softmmu/hw/misc/msf2-sysreg.o
CC aarch64-softmmu/hw/misc/omap_sdrc.o
CC arm-softmmu/hw/net/virtio-net.o
CC lm32-softmmu/tcg/tcg-common.o
CC aarch64-softmmu/hw/misc/omap_tap.o
CC lm32-softmmu/fpu/softfloat.o
CC aarch64-softmmu/hw/misc/bcm2835_mbox.o
CC arm-softmmu/hw/net/vhost_net.o
CC i386-softmmu/accel/tcg/tcg-runtime.o
CC arm-softmmu/hw/pcmcia/pxa2xx.o
CC aarch64-softmmu/hw/misc/bcm2835_property.o
CC arm-softmmu/hw/scsi/virtio-scsi.o
CC i386-softmmu/accel/tcg/cpu-exec.o
CC arm-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC aarch64-softmmu/hw/misc/bcm2835_rng.o
CC i386-softmmu/accel/tcg/cpu-exec-common.o
CC aarch64-softmmu/hw/misc/zynq_slcr.o
CC arm-softmmu/hw/scsi/vhost-scsi-common.o
CC i386-softmmu/accel/tcg/translate-all.o
CC aarch64-softmmu/hw/misc/zynq-xadc.o
CC arm-softmmu/hw/scsi/vhost-scsi.o
CC i386-softmmu/accel/tcg/translator.o
CC aarch64-softmmu/hw/misc/stm32f2xx_syscfg.o
CC arm-softmmu/hw/scsi/vhost-user-scsi.o
CC lm32-softmmu/disas.o
CC i386-softmmu/hw/9pfs/virtio-9p-device.o
CC aarch64-softmmu/hw/misc/mps2-scc.o
CC lm32-softmmu/arch_init.o
CC arm-softmmu/hw/sd/omap_mmc.o
CC aarch64-softmmu/hw/misc/auxbus.o
CC i386-softmmu/hw/block/virtio-blk.o
CC lm32-softmmu/cpus.o
CC aarch64-softmmu/hw/misc/aspeed_scu.o
CC arm-softmmu/hw/sd/pxa2xx_mmci.o
CC aarch64-softmmu/hw/misc/aspeed_sdmc.o
CC i386-softmmu/hw/block/dataplane/virtio-blk.o
CC arm-softmmu/hw/sd/bcm2835_sdhost.o
CC aarch64-softmmu/hw/misc/mmio_interface.o
CC i386-softmmu/hw/char/virtio-serial-bus.o
CC lm32-softmmu/monitor.o
CC arm-softmmu/hw/ssi/omap_spi.o
CC aarch64-softmmu/hw/misc/msf2-sysreg.o
CC i386-softmmu/hw/core/generic-loader.o
CC arm-softmmu/hw/ssi/imx_spi.o
CC i386-softmmu/hw/core/null-machine.o
CC aarch64-softmmu/hw/net/virtio-net.o
CC arm-softmmu/hw/timer/exynos4210_mct.o
CC i386-softmmu/hw/display/vga.o
CC arm-softmmu/hw/timer/exynos4210_pwm.o
CC lm32-softmmu/gdbstub.o
CC arm-softmmu/hw/timer/exynos4210_rtc.o
CC aarch64-softmmu/hw/net/vhost_net.o
CC aarch64-softmmu/hw/pcmcia/pxa2xx.o
CC arm-softmmu/hw/timer/omap_gptimer.o
CC lm32-softmmu/balloon.o
CC aarch64-softmmu/hw/scsi/virtio-scsi.o
CC arm-softmmu/hw/timer/omap_synctimer.o
CC i386-softmmu/hw/display/virtio-gpu.o
CC lm32-softmmu/ioport.o
CC arm-softmmu/hw/timer/pxa2xx_timer.o
CC lm32-softmmu/numa.o
CC aarch64-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC arm-softmmu/hw/timer/digic-timer.o
CC aarch64-softmmu/hw/scsi/vhost-scsi-common.o
CC i386-softmmu/hw/display/virtio-gpu-3d.o
CC lm32-softmmu/qtest.o
CC arm-softmmu/hw/timer/allwinner-a10-pit.o
CC aarch64-softmmu/hw/scsi/vhost-scsi.o
CC arm-softmmu/hw/usb/tusb6010.o
CC lm32-softmmu/memory.o
CC i386-softmmu/hw/display/virtio-gpu-pci.o
CC aarch64-softmmu/hw/scsi/vhost-user-scsi.o
CC arm-softmmu/hw/vfio/common.o
CC aarch64-softmmu/hw/sd/omap_mmc.o
CC i386-softmmu/hw/display/virtio-vga.o
CC arm-softmmu/hw/vfio/pci.o
CC aarch64-softmmu/hw/sd/pxa2xx_mmci.o
CC i386-softmmu/hw/intc/apic.o
CC lm32-softmmu/memory_mapping.o
CC aarch64-softmmu/hw/sd/bcm2835_sdhost.o
CC lm32-softmmu/dump.o
CC i386-softmmu/hw/intc/apic_common.o
CC aarch64-softmmu/hw/ssi/omap_spi.o
CC arm-softmmu/hw/vfio/pci-quirks.o
CC aarch64-softmmu/hw/ssi/imx_spi.o
CC i386-softmmu/hw/intc/ioapic.o
CC lm32-softmmu/migration/ram.o
CC aarch64-softmmu/hw/timer/exynos4210_mct.o
CC arm-softmmu/hw/vfio/platform.o
CC i386-softmmu/hw/isa/lpc_ich9.o
CC aarch64-softmmu/hw/timer/exynos4210_pwm.o
CC arm-softmmu/hw/vfio/calxeda-xgmac.o
CC lm32-softmmu/accel/accel.o
CC aarch64-softmmu/hw/timer/exynos4210_rtc.o
CC i386-softmmu/hw/misc/vmport.o
CC arm-softmmu/hw/vfio/amd-xgbe.o
CC aarch64-softmmu/hw/timer/omap_gptimer.o
CC arm-softmmu/hw/vfio/spapr.o
CC lm32-softmmu/accel/stubs/hax-stub.o
CC i386-softmmu/hw/misc/ivshmem.o
CC lm32-softmmu/accel/stubs/kvm-stub.o
CC aarch64-softmmu/hw/timer/omap_synctimer.o
CC arm-softmmu/hw/virtio/virtio.o
CC lm32-softmmu/accel/tcg/tcg-all.o
CC aarch64-softmmu/hw/timer/pxa2xx_timer.o
CC lm32-softmmu/accel/tcg/cputlb.o
CC i386-softmmu/hw/misc/pvpanic.o
CC aarch64-softmmu/hw/timer/digic-timer.o
CC i386-softmmu/hw/misc/mmio_interface.o
CC arm-softmmu/hw/virtio/virtio-balloon.o
CC aarch64-softmmu/hw/timer/allwinner-a10-pit.o
CC i386-softmmu/hw/net/virtio-net.o
CC arm-softmmu/hw/virtio/vhost.o
CC aarch64-softmmu/hw/usb/tusb6010.o
CC i386-softmmu/hw/net/vhost_net.o
CC lm32-softmmu/accel/tcg/tcg-runtime.o
CC aarch64-softmmu/hw/vfio/common.o
CC i386-softmmu/hw/scsi/virtio-scsi.o
CC arm-softmmu/hw/virtio/vhost-backend.o
CC lm32-softmmu/accel/tcg/cpu-exec.o
CC arm-softmmu/hw/virtio/vhost-user.o
CC i386-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC aarch64-softmmu/hw/vfio/pci.o
CC lm32-softmmu/accel/tcg/cpu-exec-common.o
CC i386-softmmu/hw/scsi/vhost-scsi-common.o
CC arm-softmmu/hw/virtio/vhost-vsock.o
CC i386-softmmu/hw/scsi/vhost-scsi.o
CC lm32-softmmu/accel/tcg/translate-all.o
CC arm-softmmu/hw/virtio/virtio-crypto.o
CC i386-softmmu/hw/scsi/vhost-user-scsi.o
CC aarch64-softmmu/hw/vfio/pci-quirks.o
CC i386-softmmu/hw/timer/mc146818rtc.o
CC lm32-softmmu/accel/tcg/translator.o
CC arm-softmmu/hw/virtio/virtio-crypto-pci.o
CC i386-softmmu/hw/vfio/common.o
CC lm32-softmmu/hw/core/generic-loader.o
CC aarch64-softmmu/hw/vfio/platform.o
CC arm-softmmu/hw/arm/boot.o
CC lm32-softmmu/hw/core/null-machine.o
CC i386-softmmu/hw/vfio/pci.o
CC aarch64-softmmu/hw/vfio/calxeda-xgmac.o
CC lm32-softmmu/hw/input/milkymist-softusb.o
CC arm-softmmu/hw/arm/collie.o
CC aarch64-softmmu/hw/vfio/amd-xgbe.o
CC arm-softmmu/hw/arm/exynos4_boards.o
CC aarch64-softmmu/hw/vfio/spapr.o
CC lm32-softmmu/hw/misc/milkymist-hpdmc.o
CC arm-softmmu/hw/arm/gumstix.o
CC aarch64-softmmu/hw/virtio/virtio.o
CC i386-softmmu/hw/vfio/pci-quirks.o
CC lm32-softmmu/hw/misc/milkymist-pfpu.o
CC arm-softmmu/hw/arm/highbank.o
CC lm32-softmmu/hw/misc/mmio_interface.o
CC arm-softmmu/hw/arm/digic_boards.o
CC i386-softmmu/hw/vfio/platform.o
CC aarch64-softmmu/hw/virtio/virtio-balloon.o
CC lm32-softmmu/hw/net/milkymist-minimac2.o
CC arm-softmmu/hw/arm/integratorcp.o
CC i386-softmmu/hw/vfio/spapr.o
CC aarch64-softmmu/hw/virtio/vhost.o
CC lm32-softmmu/hw/net/vhost_net.o
CC arm-softmmu/hw/arm/mainstone.o
CC i386-softmmu/hw/virtio/virtio.o
CC lm32-softmmu/hw/net/rocker/qmp-norocker.o
CC arm-softmmu/hw/arm/musicpal.o
CC aarch64-softmmu/hw/virtio/vhost-backend.o
CC lm32-softmmu/hw/sd/milkymist-memcard.o
CC aarch64-softmmu/hw/virtio/vhost-user.o
CC arm-softmmu/hw/arm/nseries.o
CC lm32-softmmu/hw/vfio/common.o
CC i386-softmmu/hw/virtio/virtio-balloon.o
CC i386-softmmu/hw/virtio/vhost.o
CC aarch64-softmmu/hw/virtio/vhost-vsock.o
CC lm32-softmmu/hw/vfio/platform.o
CC arm-softmmu/hw/arm/omap_sx1.o
CC aarch64-softmmu/hw/virtio/virtio-crypto.o
CC lm32-softmmu/hw/vfio/spapr.o
CC i386-softmmu/hw/virtio/vhost-backend.o
CC arm-softmmu/hw/arm/palm.o
CC aarch64-softmmu/hw/virtio/virtio-crypto-pci.o
CC lm32-softmmu/hw/lm32/lm32_boards.o
CC i386-softmmu/hw/virtio/vhost-user.o
CC arm-softmmu/hw/arm/realview.o
CC lm32-softmmu/hw/lm32/milkymist.o
CC aarch64-softmmu/hw/arm/boot.o
CC i386-softmmu/hw/virtio/vhost-vsock.o
CC arm-softmmu/hw/arm/spitz.o
CC lm32-softmmu/target/lm32/translate.o
CC i386-softmmu/hw/virtio/virtio-crypto.o
CC aarch64-softmmu/hw/arm/collie.o
CC arm-softmmu/hw/arm/stellaris.o
CC i386-softmmu/hw/virtio/virtio-crypto-pci.o
CC aarch64-softmmu/hw/arm/exynos4_boards.o
CC lm32-softmmu/target/lm32/op_helper.o
CC aarch64-softmmu/hw/arm/gumstix.o
CC arm-softmmu/hw/arm/tosa.o
CC lm32-softmmu/target/lm32/helper.o
CC i386-softmmu/hw/i386/multiboot.o
CC aarch64-softmmu/hw/arm/highbank.o
CC lm32-softmmu/target/lm32/cpu.o
CC arm-softmmu/hw/arm/versatilepb.o
CC i386-softmmu/hw/i386/pc.o
CC aarch64-softmmu/hw/arm/digic_boards.o
CC lm32-softmmu/target/lm32/gdbstub.o
CC arm-softmmu/hw/arm/vexpress.o
CC lm32-softmmu/target/lm32/lm32-semi.o
CC aarch64-softmmu/hw/arm/integratorcp.o
CC arm-softmmu/hw/arm/virt.o
CC i386-softmmu/hw/i386/pc_piix.o
CC lm32-softmmu/target/lm32/machine.o
CC aarch64-softmmu/hw/arm/mainstone.o
CC arm-softmmu/hw/arm/xilinx_zynq.o
GEN trace/generated-helpers.c
CC lm32-softmmu/trace/control-target.o
CC i386-softmmu/hw/i386/pc_q35.o
CC aarch64-softmmu/hw/arm/musicpal.o
CC arm-softmmu/hw/arm/z2.o
CC lm32-softmmu/trace/generated-helpers.o
CC aarch64-softmmu/hw/arm/nseries.o
CC i386-softmmu/hw/i386/pc_sysfw.o
CC arm-softmmu/hw/arm/virt-acpi-build.o
LINK lm32-softmmu/qemu-system-lm32
CC i386-softmmu/hw/i386/x86-iommu.o
CC aarch64-softmmu/hw/arm/omap_sx1.o
CC arm-softmmu/hw/arm/netduino2.o
CC i386-softmmu/hw/i386/intel_iommu.o
CC arm-softmmu/hw/arm/sysbus-fdt.o
CC aarch64-softmmu/hw/arm/palm.o
CC arm-softmmu/hw/arm/armv7m.o
CC i386-softmmu/hw/i386/amd_iommu.o
CC aarch64-softmmu/hw/arm/realview.o
CC arm-softmmu/hw/arm/exynos4210.o
CC aarch64-softmmu/hw/arm/spitz.o
CC i386-softmmu/hw/i386/kvmvapic.o
GEN m68k-softmmu/hmp-commands.h
CC arm-softmmu/hw/arm/pxa2xx.o
GEN m68k-softmmu/hmp-commands-info.h
GEN m68k-softmmu/config-target.h
CC m68k-softmmu/exec.o
CC i386-softmmu/hw/i386/acpi-build.o
CC aarch64-softmmu/hw/arm/stellaris.o
CC aarch64-softmmu/hw/arm/tosa.o
CC arm-softmmu/hw/arm/pxa2xx_gpio.o
CC i386-softmmu/hw/i386/pci-assign-load-rom.o
CC aarch64-softmmu/hw/arm/versatilepb.o
CC aarch64-softmmu/hw/arm/vexpress.o
CC arm-softmmu/hw/arm/pxa2xx_pic.o
CC i386-softmmu/target/i386/helper.o
CC aarch64-softmmu/hw/arm/virt.o
CC i386-softmmu/target/i386/cpu.o
CC arm-softmmu/hw/arm/digic.o
CC m68k-softmmu/tcg/tcg.o
CC aarch64-softmmu/hw/arm/xilinx_zynq.o
CC arm-softmmu/hw/arm/omap1.o
CC aarch64-softmmu/hw/arm/z2.o
CC i386-softmmu/target/i386/gdbstub.o
CC i386-softmmu/target/i386/xsave_helper.o
CC aarch64-softmmu/hw/arm/virt-acpi-build.o
CC arm-softmmu/hw/arm/omap2.o
CC i386-softmmu/target/i386/translate.o
CC m68k-softmmu/tcg/tcg-op.o
CC aarch64-softmmu/hw/arm/netduino2.o
CC arm-softmmu/hw/arm/strongarm.o
CC aarch64-softmmu/hw/arm/sysbus-fdt.o
CC aarch64-softmmu/hw/arm/armv7m.o
CC arm-softmmu/hw/arm/allwinner-a10.o
CC aarch64-softmmu/hw/arm/exynos4210.o
CC m68k-softmmu/tcg/optimize.o
CC aarch64-softmmu/hw/arm/pxa2xx.o
CC arm-softmmu/hw/arm/cubieboard.o
CC arm-softmmu/hw/arm/bcm2835_peripherals.o
CC m68k-softmmu/tcg/tcg-common.o
CC aarch64-softmmu/hw/arm/pxa2xx_gpio.o
CC m68k-softmmu/fpu/softfloat.o
CC arm-softmmu/hw/arm/bcm2836.o
CC aarch64-softmmu/hw/arm/pxa2xx_pic.o
CC arm-softmmu/hw/arm/raspi.o
CC aarch64-softmmu/hw/arm/digic.o
CC aarch64-softmmu/hw/arm/omap1.o
CC arm-softmmu/hw/arm/stm32f205_soc.o
CC arm-softmmu/hw/arm/fsl-imx25.o
CC i386-softmmu/target/i386/bpt_helper.o
CC m68k-softmmu/disas.o
CC aarch64-softmmu/hw/arm/omap2.o
CC i386-softmmu/target/i386/cc_helper.o
CC arm-softmmu/hw/arm/imx25_pdk.o
CC i386-softmmu/target/i386/excp_helper.o
GEN m68k-softmmu/gdbstub-xml.c
CC arm-softmmu/hw/arm/fsl-imx31.o
CC i386-softmmu/target/i386/fpu_helper.o
CC m68k-softmmu/arch_init.o
CC aarch64-softmmu/hw/arm/strongarm.o
CC arm-softmmu/hw/arm/kzm.o
CC m68k-softmmu/cpus.o
CC aarch64-softmmu/hw/arm/allwinner-a10.o
CC arm-softmmu/hw/arm/fsl-imx6.o
CC aarch64-softmmu/hw/arm/cubieboard.o
CC m68k-softmmu/monitor.o
CC aarch64-softmmu/hw/arm/bcm2835_peripherals.o
CC arm-softmmu/hw/arm/sabrelite.o
CC aarch64-softmmu/hw/arm/bcm2836.o
CC arm-softmmu/hw/arm/aspeed_soc.o
CC i386-softmmu/target/i386/int_helper.o
CC aarch64-softmmu/hw/arm/raspi.o
CC m68k-softmmu/gdbstub.o
CC arm-softmmu/hw/arm/aspeed.o
CC i386-softmmu/target/i386/mem_helper.o
CC arm-softmmu/hw/arm/mps2.o
CC aarch64-softmmu/hw/arm/stm32f205_soc.o
CC m68k-softmmu/balloon.o
CC arm-softmmu/hw/arm/msf2-soc.o
CC i386-softmmu/target/i386/misc_helper.o
CC aarch64-softmmu/hw/arm/xlnx-zynqmp.o
CC m68k-softmmu/ioport.o
CC aarch64-softmmu/hw/arm/xlnx-zcu102.o
CC arm-softmmu/hw/arm/msf2-som.o
CC i386-softmmu/target/i386/mpx_helper.o
CC m68k-softmmu/numa.o
CC aarch64-softmmu/hw/arm/fsl-imx25.o
CC arm-softmmu/target/arm/arm-semi.o
CC i386-softmmu/target/i386/seg_helper.o
CC m68k-softmmu/qtest.o
CC aarch64-softmmu/hw/arm/imx25_pdk.o
CC arm-softmmu/target/arm/machine.o
CC aarch64-softmmu/hw/arm/fsl-imx31.o
CC arm-softmmu/target/arm/psci.o
CC m68k-softmmu/memory.o
CC aarch64-softmmu/hw/arm/kzm.o
CC arm-softmmu/target/arm/arch_dump.o
CC aarch64-softmmu/hw/arm/fsl-imx6.o
CC aarch64-softmmu/hw/arm/sabrelite.o
CC arm-softmmu/target/arm/monitor.o
CC i386-softmmu/target/i386/smm_helper.o
CC aarch64-softmmu/hw/arm/aspeed_soc.o
CC arm-softmmu/target/arm/kvm-stub.o
CC m68k-softmmu/memory_mapping.o
CC m68k-softmmu/dump.o
CC i386-softmmu/target/i386/svm_helper.o
CC aarch64-softmmu/hw/arm/aspeed.o
CC arm-softmmu/target/arm/translate.o
CC aarch64-softmmu/hw/arm/mps2.o
CC m68k-softmmu/migration/ram.o
CC i386-softmmu/target/i386/machine.o
CC aarch64-softmmu/hw/arm/msf2-soc.o
CC i386-softmmu/target/i386/arch_memory_mapping.o
CC aarch64-softmmu/hw/arm/msf2-som.o
CC m68k-softmmu/accel/accel.o
CC i386-softmmu/target/i386/arch_dump.o
CC aarch64-softmmu/target/arm/arm-semi.o
CC m68k-softmmu/accel/stubs/hax-stub.o
CC i386-softmmu/target/i386/monitor.o
CC m68k-softmmu/accel/stubs/kvm-stub.o
CC aarch64-softmmu/target/arm/machine.o
CC i386-softmmu/target/i386/kvm-stub.o
CC m68k-softmmu/accel/tcg/tcg-all.o
CC aarch64-softmmu/target/arm/psci.o
GEN trace/generated-helpers.c
CC m68k-softmmu/accel/tcg/cputlb.o
CC i386-softmmu/trace/control-target.o
CC aarch64-softmmu/target/arm/arch_dump.o
CC i386-softmmu/gdbstub-xml.o
CC aarch64-softmmu/target/arm/monitor.o
CC i386-softmmu/trace/generated-helpers.o
CC aarch64-softmmu/target/arm/kvm-stub.o
LINK i386-softmmu/qemu-system-i386
CC aarch64-softmmu/target/arm/translate.o
CC m68k-softmmu/accel/tcg/tcg-runtime.o
CC arm-softmmu/target/arm/op_helper.o
CC m68k-softmmu/accel/tcg/cpu-exec.o
CC m68k-softmmu/accel/tcg/cpu-exec-common.o
CC arm-softmmu/target/arm/helper.o
CC m68k-softmmu/accel/tcg/translate-all.o
CC arm-softmmu/target/arm/cpu.o
CC m68k-softmmu/accel/tcg/translator.o
CC m68k-softmmu/hw/char/mcf_uart.o
CC m68k-softmmu/hw/core/generic-loader.o
GEN microblazeel-softmmu/hmp-commands.h
GEN microblazeel-softmmu/hmp-commands-info.h
GEN microblazeel-softmmu/config-target.h
CC m68k-softmmu/hw/core/null-machine.o
CC microblazeel-softmmu/exec.o
CC m68k-softmmu/hw/misc/mmio_interface.o
CC arm-softmmu/target/arm/neon_helper.o
CC m68k-softmmu/hw/net/mcf_fec.o
CC m68k-softmmu/hw/net/vhost_net.o
CC aarch64-softmmu/target/arm/op_helper.o
CC m68k-softmmu/hw/net/rocker/qmp-norocker.o
CC arm-softmmu/target/arm/iwmmxt_helper.o
CC m68k-softmmu/hw/vfio/common.o
CC microblazeel-softmmu/tcg/tcg.o
CC arm-softmmu/target/arm/gdbstub.o
CC m68k-softmmu/hw/vfio/platform.o
CC aarch64-softmmu/target/arm/helper.o
CC m68k-softmmu/hw/vfio/spapr.o
CC arm-softmmu/target/arm/crypto_helper.o
CC microblazeel-softmmu/tcg/tcg-op.o
CC m68k-softmmu/hw/m68k/an5206.o
CC arm-softmmu/target/arm/arm-powerctl.o
CC m68k-softmmu/hw/m68k/mcf5208.o
GEN trace/generated-helpers.c
CC arm-softmmu/trace/control-target.o
CC m68k-softmmu/hw/m68k/mcf5206.o
CC arm-softmmu/gdbstub-xml.o
CC microblazeel-softmmu/tcg/optimize.o
CC m68k-softmmu/hw/m68k/mcf_intc.o
CC arm-softmmu/trace/generated-helpers.o
CC m68k-softmmu/target/m68k/m68k-semi.o
CC microblazeel-softmmu/tcg/tcg-common.o
CC aarch64-softmmu/target/arm/cpu.o
LINK arm-softmmu/qemu-system-arm
CC m68k-softmmu/target/m68k/translate.o
CC microblazeel-softmmu/fpu/softfloat.o
CC aarch64-softmmu/target/arm/neon_helper.o
CC aarch64-softmmu/target/arm/iwmmxt_helper.o
CC m68k-softmmu/target/m68k/op_helper.o
CC aarch64-softmmu/target/arm/gdbstub.o
CC aarch64-softmmu/target/arm/cpu64.o
CC m68k-softmmu/target/m68k/helper.o
CC aarch64-softmmu/target/arm/translate-a64.o
CC microblazeel-softmmu/disas.o
CC m68k-softmmu/target/m68k/cpu.o
CC microblazeel-softmmu/arch_init.o
CC m68k-softmmu/target/m68k/fpu_helper.o
CC microblazeel-softmmu/cpus.o
CC m68k-softmmu/target/m68k/gdbstub.o
GEN microblaze-softmmu/hmp-commands.h
GEN microblaze-softmmu/hmp-commands-info.h
CC microblazeel-softmmu/monitor.o
GEN microblaze-softmmu/config-target.h
GEN trace/generated-helpers.c
CC m68k-softmmu/trace/control-target.o
CC microblaze-softmmu/exec.o
CC m68k-softmmu/gdbstub-xml.o
CC m68k-softmmu/trace/generated-helpers.o
CC microblazeel-softmmu/gdbstub.o
LINK m68k-softmmu/qemu-system-m68k
CC microblaze-softmmu/tcg/tcg.o
CC microblazeel-softmmu/balloon.o
CC microblazeel-softmmu/ioport.o
CC aarch64-softmmu/target/arm/helper-a64.o
CC microblazeel-softmmu/numa.o
CC aarch64-softmmu/target/arm/gdbstub64.o
CC microblaze-softmmu/tcg/tcg-op.o
CC aarch64-softmmu/target/arm/crypto_helper.o
CC microblazeel-softmmu/qtest.o
CC aarch64-softmmu/target/arm/arm-powerctl.o
GEN mips64el-softmmu/hmp-commands.h
GEN mips64el-softmmu/hmp-commands-info.h
CC microblazeel-softmmu/memory.o
GEN mips64el-softmmu/config-target.h
GEN trace/generated-helpers.c
CC aarch64-softmmu/trace/control-target.o
CC mips64el-softmmu/exec.o
CC aarch64-softmmu/gdbstub-xml.o
CC microblaze-softmmu/tcg/optimize.o
CC aarch64-softmmu/trace/generated-helpers.o
CC microblazeel-softmmu/memory_mapping.o
LINK aarch64-softmmu/qemu-system-aarch64
CC microblazeel-softmmu/dump.o
CC microblaze-softmmu/tcg/tcg-common.o
CC mips64el-softmmu/tcg/tcg.o
CC microblaze-softmmu/fpu/softfloat.o
CC microblazeel-softmmu/migration/ram.o
CC microblazeel-softmmu/accel/accel.o
CC microblazeel-softmmu/accel/stubs/hax-stub.o
CC mips64el-softmmu/tcg/tcg-op.o
CC microblazeel-softmmu/accel/stubs/kvm-stub.o
CC microblazeel-softmmu/accel/tcg/tcg-all.o
CC microblaze-softmmu/disas.o
CC microblazeel-softmmu/accel/tcg/cputlb.o
CC microblaze-softmmu/arch_init.o
GEN mips64-softmmu/hmp-commands.h
GEN mips64-softmmu/hmp-commands-info.h
GEN mips64-softmmu/config-target.h
CC mips64-softmmu/exec.o
CC microblaze-softmmu/cpus.o
CC mips64el-softmmu/tcg/optimize.o
CC microblazeel-softmmu/accel/tcg/tcg-runtime.o
CC microblaze-softmmu/monitor.o
CC microblazeel-softmmu/accel/tcg/cpu-exec.o
CC mips64-softmmu/tcg/tcg.o
CC mips64el-softmmu/tcg/tcg-common.o
CC mips64el-softmmu/fpu/softfloat.o
CC microblazeel-softmmu/accel/tcg/cpu-exec-common.o
CC microblaze-softmmu/gdbstub.o
CC microblazeel-softmmu/accel/tcg/translate-all.o
CC microblazeel-softmmu/accel/tcg/translator.o
CC microblaze-softmmu/balloon.o
CC mips64-softmmu/tcg/tcg-op.o
CC microblazeel-softmmu/hw/core/generic-loader.o
CC microblaze-softmmu/ioport.o
CC microblazeel-softmmu/hw/core/null-machine.o
CC microblaze-softmmu/numa.o
CC mips64el-softmmu/disas.o
CC microblazeel-softmmu/hw/misc/mmio_interface.o
CC mips64el-softmmu/arch_init.o
CC microblaze-softmmu/qtest.o
CC microblazeel-softmmu/hw/net/xilinx_ethlite.o
CC mips64el-softmmu/cpus.o
CC microblazeel-softmmu/hw/net/vhost_net.o
CC mips64-softmmu/tcg/optimize.o
CC microblaze-softmmu/memory.o
CC microblazeel-softmmu/hw/net/rocker/qmp-norocker.o
CC mips64el-softmmu/monitor.o
CC microblazeel-softmmu/hw/vfio/common.o
CC microblaze-softmmu/memory_mapping.o
CC mips64-softmmu/tcg/tcg-common.o
CC mips64el-softmmu/gdbstub.o
CC microblazeel-softmmu/hw/vfio/platform.o
CC microblaze-softmmu/dump.o
CC mips64-softmmu/fpu/softfloat.o
CC microblazeel-softmmu/hw/vfio/spapr.o
CC mips64el-softmmu/balloon.o
CC mips64el-softmmu/ioport.o
CC microblaze-softmmu/migration/ram.o
CC microblazeel-softmmu/hw/microblaze/petalogix_s3adsp1800_mmu.o
CC mips64el-softmmu/numa.o
CC microblazeel-softmmu/hw/microblaze/petalogix_ml605_mmu.o
CC microblazeel-softmmu/hw/microblaze/boot.o
CC mips64el-softmmu/qtest.o
CC microblaze-softmmu/accel/accel.o
CC microblaze-softmmu/accel/stubs/hax-stub.o
CC microblazeel-softmmu/target/microblaze/translate.o
CC microblaze-softmmu/accel/stubs/kvm-stub.o
CC mips64el-softmmu/memory.o
CC mips64-softmmu/disas.o
CC microblaze-softmmu/accel/tcg/tcg-all.o
CC microblaze-softmmu/accel/tcg/cputlb.o
CC mips64-softmmu/arch_init.o
CC microblazeel-softmmu/target/microblaze/op_helper.o
CC mips64-softmmu/cpus.o
CC mips64el-softmmu/memory_mapping.o
CC mips64el-softmmu/dump.o
CC microblazeel-softmmu/target/microblaze/helper.o
CC mips64-softmmu/monitor.o
CC microblazeel-softmmu/target/microblaze/cpu.o
CC microblaze-softmmu/accel/tcg/tcg-runtime.o
CC mips64el-softmmu/migration/ram.o
CC microblazeel-softmmu/target/microblaze/gdbstub.o
CC microblaze-softmmu/accel/tcg/cpu-exec.o
CC microblazeel-softmmu/target/microblaze/mmu.o
CC mips64-softmmu/gdbstub.o
CC microblaze-softmmu/accel/tcg/cpu-exec-common.o
CC mips64el-softmmu/accel/accel.o
GEN trace/generated-helpers.c
CC microblazeel-softmmu/trace/control-target.o
CC microblaze-softmmu/accel/tcg/translate-all.o
CC mips64-softmmu/balloon.o
CC mips64el-softmmu/accel/stubs/hax-stub.o
CC microblazeel-softmmu/trace/generated-helpers.o
CC mips64el-softmmu/accel/stubs/kvm-stub.o
CC mips64-softmmu/ioport.o
CC microblaze-softmmu/accel/tcg/translator.o
LINK microblazeel-softmmu/qemu-system-microblazeel
CC mips64el-softmmu/accel/tcg/tcg-all.o
CC microblaze-softmmu/hw/core/generic-loader.o
CC mips64-softmmu/numa.o
CC mips64el-softmmu/accel/tcg/cputlb.o
CC microblaze-softmmu/hw/core/null-machine.o
CC mips64-softmmu/qtest.o
CC microblaze-softmmu/hw/misc/mmio_interface.o
CC mips64-softmmu/memory.o
CC microblaze-softmmu/hw/net/xilinx_ethlite.o
CC mips64el-softmmu/accel/tcg/tcg-runtime.o
CC microblaze-softmmu/hw/net/vhost_net.o
CC mips64-softmmu/memory_mapping.o
CC mips64el-softmmu/accel/tcg/cpu-exec.o
CC mips64el-softmmu/accel/tcg/cpu-exec-common.o
CC microblaze-softmmu/hw/net/rocker/qmp-norocker.o
CC mips64el-softmmu/accel/tcg/translate-all.o
CC mips64-softmmu/dump.o
CC microblaze-softmmu/hw/vfio/common.o
GEN mipsel-softmmu/hmp-commands.h
GEN mipsel-softmmu/hmp-commands-info.h
GEN mipsel-softmmu/config-target.h
CC mipsel-softmmu/exec.o
CC mips64-softmmu/migration/ram.o
CC mips64el-softmmu/accel/tcg/translator.o
CC microblaze-softmmu/hw/vfio/platform.o
CC mips64-softmmu/accel/accel.o
CC mips64el-softmmu/hw/9pfs/virtio-9p-device.o
CC microblaze-softmmu/hw/vfio/spapr.o
CC mips64-softmmu/accel/stubs/hax-stub.o
CC mips64el-softmmu/hw/block/virtio-blk.o
CC mipsel-softmmu/tcg/tcg.o
CC microblaze-softmmu/hw/microblaze/petalogix_s3adsp1800_mmu.o
CC mips64-softmmu/accel/stubs/kvm-stub.o
CC microblaze-softmmu/hw/microblaze/petalogix_ml605_mmu.o
CC mips64-softmmu/accel/tcg/tcg-all.o
CC mips64el-softmmu/hw/block/dataplane/virtio-blk.o
CC microblaze-softmmu/hw/microblaze/boot.o
CC mips64-softmmu/accel/tcg/cputlb.o
CC mips64el-softmmu/hw/char/virtio-serial-bus.o
CC microblaze-softmmu/target/microblaze/translate.o
CC mips64el-softmmu/hw/core/generic-loader.o
CC mipsel-softmmu/tcg/tcg-op.o
CC mips64-softmmu/accel/tcg/tcg-runtime.o
CC mips64el-softmmu/hw/core/null-machine.o
CC mips64el-softmmu/hw/display/vga.o
CC mips64-softmmu/accel/tcg/cpu-exec.o
CC microblaze-softmmu/target/microblaze/op_helper.o
CC microblaze-softmmu/target/microblaze/helper.o
CC mips64-softmmu/accel/tcg/cpu-exec-common.o
CC mips64el-softmmu/hw/display/virtio-gpu.o
CC microblaze-softmmu/target/microblaze/cpu.o
CC mips64-softmmu/accel/tcg/translate-all.o
CC mipsel-softmmu/tcg/optimize.o
CC microblaze-softmmu/target/microblaze/gdbstub.o
CC mips64el-softmmu/hw/display/virtio-gpu-3d.o
CC mips64-softmmu/accel/tcg/translator.o
CC microblaze-softmmu/target/microblaze/mmu.o
CC mips64el-softmmu/hw/display/virtio-gpu-pci.o
GEN trace/generated-helpers.c
CC microblaze-softmmu/trace/control-target.o
CC mipsel-softmmu/tcg/tcg-common.o
CC mips64el-softmmu/hw/intc/mips_gic.o
CC microblaze-softmmu/trace/generated-helpers.o
CC mipsel-softmmu/fpu/softfloat.o
CC mips64-softmmu/hw/9pfs/virtio-9p-device.o
CC mips64el-softmmu/hw/misc/ivshmem.o
LINK microblaze-softmmu/qemu-system-microblaze
CC mips64-softmmu/hw/block/virtio-blk.o
CC mips64el-softmmu/hw/misc/mips_cmgcr.o
CC mips64-softmmu/hw/block/dataplane/virtio-blk.o
CC mips64el-softmmu/hw/misc/mips_cpc.o
CC mips64-softmmu/hw/char/virtio-serial-bus.o
CC mips64el-softmmu/hw/misc/mips_itu.o
CC mips64-softmmu/hw/core/generic-loader.o
CC mips64el-softmmu/hw/misc/mmio_interface.o
CC mips64-softmmu/hw/core/null-machine.o
GEN mips-softmmu/hmp-commands.h
CC mips64el-softmmu/hw/net/virtio-net.o
CC mipsel-softmmu/disas.o
GEN mips-softmmu/hmp-commands-info.h
GEN mips-softmmu/config-target.h
CC mips-softmmu/exec.o
CC mips64-softmmu/hw/display/vga.o
CC mipsel-softmmu/arch_init.o
CC mips64el-softmmu/hw/net/vhost_net.o
CC mipsel-softmmu/cpus.o
CC mips64el-softmmu/hw/scsi/virtio-scsi.o
CC mips64-softmmu/hw/display/virtio-gpu.o
CC mipsel-softmmu/monitor.o
CC mips64el-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC mips64el-softmmu/hw/scsi/vhost-scsi-common.o
CC mips-softmmu/tcg/tcg.o
CC mips64el-softmmu/hw/scsi/vhost-scsi.o
CC mips64-softmmu/hw/display/virtio-gpu-3d.o
CC mips64el-softmmu/hw/scsi/vhost-user-scsi.o
CC mipsel-softmmu/gdbstub.o
CC mips64-softmmu/hw/display/virtio-gpu-pci.o
CC mips64el-softmmu/hw/timer/mips_gictimer.o
CC mips64-softmmu/hw/intc/mips_gic.o
CC mips64el-softmmu/hw/timer/mc146818rtc.o
CC mipsel-softmmu/balloon.o
CC mips64-softmmu/hw/misc/ivshmem.o
CC mips64el-softmmu/hw/vfio/common.o
CC mipsel-softmmu/ioport.o
CC mips-softmmu/tcg/tcg-op.o
CC mips64-softmmu/hw/misc/mips_cmgcr.o
CC mipsel-softmmu/numa.o
CC mips64el-softmmu/hw/vfio/pci.o
CC mipsel-softmmu/qtest.o
CC mips64-softmmu/hw/misc/mips_cpc.o
CC mips64-softmmu/hw/misc/mips_itu.o
CC mips64el-softmmu/hw/vfio/pci-quirks.o
CC mipsel-softmmu/memory.o
CC mips64-softmmu/hw/misc/mmio_interface.o
CC mips-softmmu/tcg/optimize.o
CC mips64el-softmmu/hw/vfio/platform.o
CC mips64-softmmu/hw/net/virtio-net.o
CC mipsel-softmmu/memory_mapping.o
CC mips64el-softmmu/hw/vfio/spapr.o
CC mips64-softmmu/hw/net/vhost_net.o
CC mipsel-softmmu/dump.o
CC mips-softmmu/tcg/tcg-common.o
CC mips64-softmmu/hw/scsi/virtio-scsi.o
CC mips64el-softmmu/hw/virtio/virtio.o
CC mipsel-softmmu/migration/ram.o
CC mips-softmmu/fpu/softfloat.o
CC mips64-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC mips64el-softmmu/hw/virtio/virtio-balloon.o
CC mips64-softmmu/hw/scsi/vhost-scsi-common.o
CC mipsel-softmmu/accel/accel.o
CC mips64el-softmmu/hw/virtio/vhost.o
CC mipsel-softmmu/accel/stubs/hax-stub.o
CC mips64-softmmu/hw/scsi/vhost-scsi.o
CC mipsel-softmmu/accel/stubs/kvm-stub.o
CC mips64-softmmu/hw/scsi/vhost-user-scsi.o
CC mips64el-softmmu/hw/virtio/vhost-backend.o
CC mipsel-softmmu/accel/tcg/tcg-all.o
CC mips64el-softmmu/hw/virtio/vhost-user.o
CC mips64-softmmu/hw/timer/mips_gictimer.o
CC mipsel-softmmu/accel/tcg/cputlb.o
CC mips64el-softmmu/hw/virtio/vhost-vsock.o
CC mips64-softmmu/hw/timer/mc146818rtc.o
CC mips-softmmu/disas.o
CC mips64el-softmmu/hw/virtio/virtio-crypto.o
CC mips64-softmmu/hw/vfio/common.o
CC mips64el-softmmu/hw/virtio/virtio-crypto-pci.o
CC mips-softmmu/arch_init.o
CC mips64-softmmu/hw/vfio/pci.o
CC mips64el-softmmu/hw/mips/mips_r4k.o
CC mipsel-softmmu/accel/tcg/tcg-runtime.o
CC mips-softmmu/cpus.o
CC mips64el-softmmu/hw/mips/mips_malta.o
CC mipsel-softmmu/accel/tcg/cpu-exec.o
CC mips64-softmmu/hw/vfio/pci-quirks.o
CC mips-softmmu/monitor.o
CC mips64el-softmmu/hw/mips/mips_mipssim.o
CC mipsel-softmmu/accel/tcg/cpu-exec-common.o
CC mipsel-softmmu/accel/tcg/translate-all.o
CC mips64-softmmu/hw/vfio/platform.o
CC mips64el-softmmu/hw/mips/addr.o
CC mipsel-softmmu/accel/tcg/translator.o
CC mips64-softmmu/hw/vfio/spapr.o
CC mips64el-softmmu/hw/mips/mips_int.o
CC mips-softmmu/gdbstub.o
CC mips64-softmmu/hw/virtio/virtio.o
CC mips64el-softmmu/hw/mips/mips_jazz.o
CC mips-softmmu/balloon.o
CC mipsel-softmmu/hw/9pfs/virtio-9p-device.o
CC mips64el-softmmu/hw/mips/mips_fulong2e.o
CC mips-softmmu/ioport.o
CC mipsel-softmmu/hw/block/virtio-blk.o
CC mips64el-softmmu/hw/mips/gt64xxx_pci.o
CC mips64-softmmu/hw/virtio/virtio-balloon.o
CC mips-softmmu/numa.o
CC mips64el-softmmu/hw/mips/cps.o
CC mipsel-softmmu/hw/block/dataplane/virtio-blk.o
CC mips64-softmmu/hw/virtio/vhost.o
CC mipsel-softmmu/hw/char/virtio-serial-bus.o
CC mips-softmmu/qtest.o
CC mips64el-softmmu/hw/mips/boston.o
CC mips-softmmu/memory.o
CC mips64el-softmmu/target/mips/translate.o
CC mipsel-softmmu/hw/core/generic-loader.o
CC mips64-softmmu/hw/virtio/vhost-backend.o
CC mipsel-softmmu/hw/core/null-machine.o
CC mips64-softmmu/hw/virtio/vhost-user.o
CC mipsel-softmmu/hw/display/vga.o
CC mips-softmmu/memory_mapping.o
CC mips64-softmmu/hw/virtio/vhost-vsock.o
CC mips-softmmu/dump.o
CC mips64-softmmu/hw/virtio/virtio-crypto.o
CC mipsel-softmmu/hw/display/virtio-gpu.o
CC mips64-softmmu/hw/virtio/virtio-crypto-pci.o
CC mips-softmmu/migration/ram.o
CC mips64-softmmu/hw/mips/mips_r4k.o
CC mipsel-softmmu/hw/display/virtio-gpu-3d.o
CC mips64-softmmu/hw/mips/mips_malta.o
CC mips-softmmu/accel/accel.o
CC mipsel-softmmu/hw/display/virtio-gpu-pci.o
CC mips-softmmu/accel/stubs/hax-stub.o
CC mips64-softmmu/hw/mips/mips_mipssim.o
CC mips-softmmu/accel/stubs/kvm-stub.o
CC mips-softmmu/accel/tcg/tcg-all.o
CC mipsel-softmmu/hw/intc/mips_gic.o
CC mips64-softmmu/hw/mips/addr.o
CC mips-softmmu/accel/tcg/cputlb.o
CC mipsel-softmmu/hw/misc/ivshmem.o
CC mips64-softmmu/hw/mips/mips_int.o
CC mips64-softmmu/hw/mips/mips_jazz.o
CC mipsel-softmmu/hw/misc/mips_cmgcr.o
CC mips64-softmmu/hw/mips/gt64xxx_pci.o
CC mips-softmmu/accel/tcg/tcg-runtime.o
CC mipsel-softmmu/hw/misc/mips_cpc.o
CC mips64-softmmu/hw/mips/cps.o
CC mips-softmmu/accel/tcg/cpu-exec.o
CC mipsel-softmmu/hw/misc/mips_itu.o
CC mips64-softmmu/target/mips/translate.o
CC mips-softmmu/accel/tcg/cpu-exec-common.o
CC mipsel-softmmu/hw/misc/mmio_interface.o
CC mips-softmmu/accel/tcg/translate-all.o
CC mipsel-softmmu/hw/net/virtio-net.o
CC mips-softmmu/accel/tcg/translator.o
CC mipsel-softmmu/hw/net/vhost_net.o
CC mipsel-softmmu/hw/scsi/virtio-scsi.o
CC mips-softmmu/hw/9pfs/virtio-9p-device.o
CC mips64el-softmmu/target/mips/dsp_helper.o
CC mipsel-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC mips-softmmu/hw/block/virtio-blk.o
CC mipsel-softmmu/hw/scsi/vhost-scsi-common.o
CC mips-softmmu/hw/block/dataplane/virtio-blk.o
CC mipsel-softmmu/hw/scsi/vhost-scsi.o
CC mips-softmmu/hw/char/virtio-serial-bus.o
CC mips64el-softmmu/target/mips/op_helper.o
CC mipsel-softmmu/hw/scsi/vhost-user-scsi.o
CC mips-softmmu/hw/core/generic-loader.o
CC mipsel-softmmu/hw/timer/mips_gictimer.o
CC mips-softmmu/hw/core/null-machine.o
CC mips-softmmu/hw/display/vga.o
CC mipsel-softmmu/hw/timer/mc146818rtc.o
CC mipsel-softmmu/hw/vfio/common.o
CC mips64el-softmmu/target/mips/lmi_helper.o
CC mips-softmmu/hw/display/virtio-gpu.o
CC mipsel-softmmu/hw/vfio/pci.o
CC mips64el-softmmu/target/mips/helper.o
CC mips-softmmu/hw/display/virtio-gpu-3d.o
CC mipsel-softmmu/hw/vfio/pci-quirks.o
CC mips64el-softmmu/target/mips/cpu.o
CC mips-softmmu/hw/display/virtio-gpu-pci.o
CC mips64el-softmmu/target/mips/gdbstub.o
CC mipsel-softmmu/hw/vfio/platform.o
CC mips64el-softmmu/target/mips/msa_helper.o
CC mips-softmmu/hw/intc/mips_gic.o
CC mipsel-softmmu/hw/vfio/spapr.o
CC mips-softmmu/hw/misc/ivshmem.o
CC mips64-softmmu/target/mips/dsp_helper.o
CC mipsel-softmmu/hw/virtio/virtio.o
CC mips-softmmu/hw/misc/mips_cmgcr.o
CC mips-softmmu/hw/misc/mips_cpc.o
CC mips64-softmmu/target/mips/op_helper.o
CC mipsel-softmmu/hw/virtio/virtio-balloon.o
CC mips-softmmu/hw/misc/mips_itu.o
CC mipsel-softmmu/hw/virtio/vhost.o
CC mips-softmmu/hw/misc/mmio_interface.o
CC mips64el-softmmu/target/mips/mips-semi.o
CC mipsel-softmmu/hw/virtio/vhost-backend.o
CC mips-softmmu/hw/net/virtio-net.o
CC mips64el-softmmu/target/mips/machine.o
CC mipsel-softmmu/hw/virtio/vhost-user.o
CC mips64el-softmmu/target/mips/cp0_timer.o
CC mips-softmmu/hw/net/vhost_net.o
CC mipsel-softmmu/hw/virtio/vhost-vsock.o
GEN trace/generated-helpers.c
CC mips64el-softmmu/trace/control-target.o
CC mips-softmmu/hw/scsi/virtio-scsi.o
CC mips64-softmmu/target/mips/lmi_helper.o
CC mipsel-softmmu/hw/virtio/virtio-crypto.o
CC mips64el-softmmu/trace/generated-helpers.o
CC mips64-softmmu/target/mips/helper.o
CC mips-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC mipsel-softmmu/hw/virtio/virtio-crypto-pci.o
CC mips-softmmu/hw/scsi/vhost-scsi-common.o
LINK mips64el-softmmu/qemu-system-mips64el
CC mips64-softmmu/target/mips/cpu.o
CC mipsel-softmmu/hw/mips/mips_r4k.o
CC mips-softmmu/hw/scsi/vhost-scsi.o
CC mipsel-softmmu/hw/mips/mips_malta.o
CC mips-softmmu/hw/scsi/vhost-user-scsi.o
CC mips64-softmmu/target/mips/gdbstub.o
CC mips-softmmu/hw/timer/mips_gictimer.o
CC mipsel-softmmu/hw/mips/mips_mipssim.o
CC mips64-softmmu/target/mips/msa_helper.o
CC mips-softmmu/hw/timer/mc146818rtc.o
CC mipsel-softmmu/hw/mips/addr.o
CC mips-softmmu/hw/vfio/common.o
CC mipsel-softmmu/hw/mips/mips_int.o
CC mipsel-softmmu/hw/mips/gt64xxx_pci.o
GEN moxie-softmmu/hmp-commands.h
GEN moxie-softmmu/hmp-commands-info.h
GEN moxie-softmmu/config-target.h
CC moxie-softmmu/exec.o
CC mips-softmmu/hw/vfio/pci.o
CC mipsel-softmmu/hw/mips/cps.o
CC mipsel-softmmu/target/mips/translate.o
CC mips-softmmu/hw/vfio/pci-quirks.o
CC moxie-softmmu/tcg/tcg.o
CC mips-softmmu/hw/vfio/platform.o
CC mips64-softmmu/target/mips/mips-semi.o
CC mips64-softmmu/target/mips/machine.o
CC mips-softmmu/hw/vfio/spapr.o
CC mips64-softmmu/target/mips/cp0_timer.o
CC mips-softmmu/hw/virtio/virtio.o
GEN trace/generated-helpers.c
CC mips64-softmmu/trace/control-target.o
CC moxie-softmmu/tcg/tcg-op.o
CC mips64-softmmu/trace/generated-helpers.o
CC mips-softmmu/hw/virtio/virtio-balloon.o
LINK mips64-softmmu/qemu-system-mips64
CC mips-softmmu/hw/virtio/vhost.o
CC moxie-softmmu/tcg/optimize.o
CC mips-softmmu/hw/virtio/vhost-backend.o
CC moxie-softmmu/tcg/tcg-common.o
CC mips-softmmu/hw/virtio/vhost-user.o
CC moxie-softmmu/fpu/softfloat.o
CC mipsel-softmmu/target/mips/dsp_helper.o
CC mips-softmmu/hw/virtio/vhost-vsock.o
CC mips-softmmu/hw/virtio/virtio-crypto.o
CC mips-softmmu/hw/virtio/virtio-crypto-pci.o
GEN nios2-softmmu/hmp-commands.h
GEN nios2-softmmu/hmp-commands-info.h
GEN nios2-softmmu/config-target.h
CC nios2-softmmu/exec.o
CC mipsel-softmmu/target/mips/op_helper.o
CC mips-softmmu/hw/mips/mips_r4k.o
CC mips-softmmu/hw/mips/mips_malta.o
CC moxie-softmmu/disas.o
CC mips-softmmu/hw/mips/mips_mipssim.o
CC moxie-softmmu/arch_init.o
CC nios2-softmmu/tcg/tcg.o
CC mips-softmmu/hw/mips/addr.o
CC moxie-softmmu/cpus.o
CC mips-softmmu/hw/mips/mips_int.o
CC mipsel-softmmu/target/mips/lmi_helper.o
CC mips-softmmu/hw/mips/gt64xxx_pci.o
CC moxie-softmmu/monitor.o
CC mips-softmmu/hw/mips/cps.o
CC mipsel-softmmu/target/mips/helper.o
CC mips-softmmu/target/mips/translate.o
CC nios2-softmmu/tcg/tcg-op.o
CC mipsel-softmmu/target/mips/cpu.o
CC mipsel-softmmu/target/mips/gdbstub.o
CC moxie-softmmu/gdbstub.o
CC mipsel-softmmu/target/mips/msa_helper.o
CC moxie-softmmu/balloon.o
CC nios2-softmmu/tcg/optimize.o
CC moxie-softmmu/ioport.o
CC moxie-softmmu/numa.o
CC nios2-softmmu/tcg/tcg-common.o
CC nios2-softmmu/fpu/softfloat.o
CC moxie-softmmu/qtest.o
CC moxie-softmmu/memory.o
CC mipsel-softmmu/target/mips/mips-semi.o
CC mipsel-softmmu/target/mips/machine.o
CC mipsel-softmmu/target/mips/cp0_timer.o
CC moxie-softmmu/memory_mapping.o
CC nios2-softmmu/disas.o
GEN trace/generated-helpers.c
CC mipsel-softmmu/trace/control-target.o
CC moxie-softmmu/dump.o
CC nios2-softmmu/arch_init.o
CC nios2-softmmu/cpus.o
CC mipsel-softmmu/trace/generated-helpers.o
CC moxie-softmmu/migration/ram.o
LINK mipsel-softmmu/qemu-system-mipsel
CC nios2-softmmu/monitor.o
CC mips-softmmu/target/mips/dsp_helper.o
CC moxie-softmmu/accel/accel.o
CC mips-softmmu/target/mips/op_helper.o
CC moxie-softmmu/accel/stubs/hax-stub.o
CC moxie-softmmu/accel/stubs/kvm-stub.o
CC nios2-softmmu/gdbstub.o
CC moxie-softmmu/accel/tcg/tcg-all.o
CC moxie-softmmu/accel/tcg/cputlb.o
GEN or1k-softmmu/hmp-commands.h
CC nios2-softmmu/balloon.o
GEN or1k-softmmu/hmp-commands-info.h
GEN or1k-softmmu/config-target.h
CC or1k-softmmu/exec.o
CC nios2-softmmu/ioport.o
CC nios2-softmmu/numa.o
CC moxie-softmmu/accel/tcg/tcg-runtime.o
CC mips-softmmu/target/mips/lmi_helper.o
CC nios2-softmmu/qtest.o
CC moxie-softmmu/accel/tcg/cpu-exec.o
CC moxie-softmmu/accel/tcg/cpu-exec-common.o
CC mips-softmmu/target/mips/helper.o
CC nios2-softmmu/memory.o
CC moxie-softmmu/accel/tcg/translate-all.o
CC or1k-softmmu/tcg/tcg.o
CC mips-softmmu/target/mips/cpu.o
CC moxie-softmmu/accel/tcg/translator.o
CC mips-softmmu/target/mips/gdbstub.o
CC moxie-softmmu/hw/core/generic-loader.o
CC nios2-softmmu/memory_mapping.o
CC mips-softmmu/target/mips/msa_helper.o
CC nios2-softmmu/dump.o
CC moxie-softmmu/hw/core/null-machine.o
CC nios2-softmmu/migration/ram.o
CC moxie-softmmu/hw/display/vga.o
CC or1k-softmmu/tcg/tcg-op.o
CC nios2-softmmu/accel/accel.o
CC moxie-softmmu/hw/misc/mmio_interface.o
CC nios2-softmmu/accel/stubs/hax-stub.o
CC moxie-softmmu/hw/net/vhost_net.o
CC or1k-softmmu/tcg/optimize.o
CC nios2-softmmu/accel/stubs/kvm-stub.o
CC moxie-softmmu/hw/net/rocker/qmp-norocker.o
CC moxie-softmmu/hw/timer/mc146818rtc.o
CC nios2-softmmu/accel/tcg/tcg-all.o
CC mips-softmmu/target/mips/mips-semi.o
CC nios2-softmmu/accel/tcg/cputlb.o
CC moxie-softmmu/hw/vfio/common.o
CC or1k-softmmu/tcg/tcg-common.o
CC mips-softmmu/target/mips/machine.o
CC or1k-softmmu/fpu/softfloat.o
CC moxie-softmmu/hw/vfio/platform.o
CC mips-softmmu/target/mips/cp0_timer.o
CC moxie-softmmu/hw/vfio/spapr.o
CC nios2-softmmu/accel/tcg/tcg-runtime.o
GEN trace/generated-helpers.c
CC mips-softmmu/trace/control-target.o
CC moxie-softmmu/hw/moxie/moxiesim.o
CC nios2-softmmu/accel/tcg/cpu-exec.o
CC mips-softmmu/trace/generated-helpers.o
CC moxie-softmmu/target/moxie/translate.o
LINK mips-softmmu/qemu-system-mips
CC nios2-softmmu/accel/tcg/cpu-exec-common.o
CC moxie-softmmu/target/moxie/helper.o
CC nios2-softmmu/accel/tcg/translate-all.o
CC or1k-softmmu/disas.o
CC moxie-softmmu/target/moxie/machine.o
CC nios2-softmmu/accel/tcg/translator.o
CC moxie-softmmu/target/moxie/cpu.o
CC or1k-softmmu/arch_init.o
CC moxie-softmmu/target/moxie/mmu.o
CC or1k-softmmu/cpus.o
CC nios2-softmmu/hw/core/generic-loader.o
CC nios2-softmmu/hw/core/null-machine.o
GEN trace/generated-helpers.c
CC moxie-softmmu/trace/control-target.o
CC or1k-softmmu/monitor.o
CC nios2-softmmu/hw/intc/nios2_iic.o
CC moxie-softmmu/trace/generated-helpers.o
CC nios2-softmmu/hw/misc/mmio_interface.o
CC nios2-softmmu/hw/net/vhost_net.o
LINK moxie-softmmu/qemu-system-moxie
CC nios2-softmmu/hw/net/rocker/qmp-norocker.o
GEN ppc64-softmmu/hmp-commands.h
GEN ppc64-softmmu/hmp-commands-info.h
GEN ppc64-softmmu/config-target.h
CC nios2-softmmu/hw/timer/altera_timer.o
CC ppc64-softmmu/exec.o
CC or1k-softmmu/gdbstub.o
CC or1k-softmmu/balloon.o
CC nios2-softmmu/hw/vfio/common.o
CC nios2-softmmu/hw/vfio/platform.o
CC or1k-softmmu/ioport.o
CC nios2-softmmu/hw/vfio/spapr.o
CC or1k-softmmu/numa.o
CC nios2-softmmu/hw/nios2/boot.o
CC nios2-softmmu/hw/nios2/cpu_pic.o
CC or1k-softmmu/qtest.o
CC ppc64-softmmu/tcg/tcg.o
CC nios2-softmmu/hw/nios2/10m50_devboard.o
GEN ppcemb-softmmu/hmp-commands.h
GEN ppcemb-softmmu/hmp-commands-info.h
GEN ppcemb-softmmu/config-target.h
CC or1k-softmmu/memory.o
CC nios2-softmmu/target/nios2/translate.o
CC ppcemb-softmmu/exec.o
CC nios2-softmmu/target/nios2/op_helper.o
CC nios2-softmmu/target/nios2/helper.o
CC or1k-softmmu/memory_mapping.o
CC nios2-softmmu/target/nios2/cpu.o
CC ppcemb-softmmu/tcg/tcg.o
CC ppc64-softmmu/tcg/tcg-op.o
CC nios2-softmmu/target/nios2/mmu.o
CC or1k-softmmu/dump.o
CC nios2-softmmu/target/nios2/monitor.o
CC or1k-softmmu/migration/ram.o
GEN trace/generated-helpers.c
CC nios2-softmmu/trace/control-target.o
CC ppc64-softmmu/tcg/optimize.o
CC nios2-softmmu/trace/generated-helpers.o
CC or1k-softmmu/accel/accel.o
CC ppcemb-softmmu/tcg/tcg-op.o
CC or1k-softmmu/accel/stubs/hax-stub.o
LINK nios2-softmmu/qemu-system-nios2
CC or1k-softmmu/accel/stubs/kvm-stub.o
CC ppc64-softmmu/tcg/tcg-common.o
CC or1k-softmmu/accel/tcg/tcg-all.o
CC ppc64-softmmu/fpu/softfloat.o
CC or1k-softmmu/accel/tcg/cputlb.o
CC ppc64-softmmu/disas.o
CC or1k-softmmu/accel/tcg/tcg-runtime.o
CC ppcemb-softmmu/tcg/optimize.o
CC or1k-softmmu/accel/tcg/cpu-exec.o
CC or1k-softmmu/accel/tcg/cpu-exec-common.o
GEN ppc-softmmu/hmp-commands.h
GEN ppc-softmmu/hmp-commands-info.h
GEN ppc-softmmu/config-target.h
CC ppc-softmmu/exec.o
CC ppcemb-softmmu/tcg/tcg-common.o
CC or1k-softmmu/accel/tcg/translate-all.o
CC ppcemb-softmmu/fpu/softfloat.o
GEN ppc64-softmmu/gdbstub-xml.c
CC or1k-softmmu/accel/tcg/translator.o
CC or1k-softmmu/hw/core/generic-loader.o
CC or1k-softmmu/hw/core/null-machine.o
CC or1k-softmmu/hw/intc/ompic.o
CC ppc64-softmmu/arch_init.o
CC ppc-softmmu/tcg/tcg.o
CC or1k-softmmu/hw/misc/mmio_interface.o
CC ppc64-softmmu/cpus.o
CC or1k-softmmu/hw/net/vhost_net.o
CC ppcemb-softmmu/disas.o
CC or1k-softmmu/hw/net/rocker/qmp-norocker.o
CC ppc64-softmmu/monitor.o
GEN ppcemb-softmmu/gdbstub-xml.c
CC or1k-softmmu/hw/vfio/common.o
CC or1k-softmmu/hw/vfio/platform.o
CC ppc-softmmu/tcg/tcg-op.o
CC ppcemb-softmmu/arch_init.o
CC ppcemb-softmmu/cpus.o
CC ppc64-softmmu/gdbstub.o
CC or1k-softmmu/hw/vfio/spapr.o
CC ppcemb-softmmu/monitor.o
CC or1k-softmmu/hw/openrisc/pic_cpu.o
CC ppc64-softmmu/balloon.o
CC or1k-softmmu/hw/openrisc/cputimer.o
CC ppc-softmmu/tcg/optimize.o
CC ppc64-softmmu/ioport.o
CC or1k-softmmu/hw/openrisc/openrisc_sim.o
CC ppc64-softmmu/numa.o
CC ppcemb-softmmu/gdbstub.o
CC or1k-softmmu/target/openrisc/machine.o
CC or1k-softmmu/target/openrisc/cpu.o
CC ppc64-softmmu/qtest.o
CC ppc-softmmu/tcg/tcg-common.o
CC ppc-softmmu/fpu/softfloat.o
CC or1k-softmmu/target/openrisc/exception.o
CC ppcemb-softmmu/balloon.o
CC or1k-softmmu/target/openrisc/interrupt.o
CC ppc64-softmmu/memory.o
CC ppcemb-softmmu/ioport.o
CC or1k-softmmu/target/openrisc/mmu.o
CC ppcemb-softmmu/numa.o
CC or1k-softmmu/target/openrisc/translate.o
CC ppcemb-softmmu/qtest.o
CC ppcemb-softmmu/memory.o
CC ppc64-softmmu/memory_mapping.o
CC or1k-softmmu/target/openrisc/exception_helper.o
CC ppc-softmmu/disas.o
CC ppc64-softmmu/dump.o
CC or1k-softmmu/target/openrisc/fpu_helper.o
GEN ppc-softmmu/gdbstub-xml.c
CC ppcemb-softmmu/memory_mapping.o
CC ppc64-softmmu/migration/ram.o
CC ppc-softmmu/arch_init.o
CC or1k-softmmu/target/openrisc/interrupt_helper.o
CC ppcemb-softmmu/dump.o
CC ppc-softmmu/cpus.o
CC or1k-softmmu/target/openrisc/mmu_helper.o
CC ppc64-softmmu/accel/accel.o
CC or1k-softmmu/target/openrisc/sys_helper.o
CC ppc-softmmu/monitor.o
CC ppcemb-softmmu/migration/ram.o
CC ppc64-softmmu/accel/stubs/hax-stub.o
CC or1k-softmmu/target/openrisc/gdbstub.o
CC ppc64-softmmu/accel/stubs/kvm-stub.o
CC ppc64-softmmu/accel/tcg/tcg-all.o
GEN trace/generated-helpers.c
CC or1k-softmmu/trace/control-target.o
CC ppc64-softmmu/accel/tcg/cputlb.o
CC ppcemb-softmmu/accel/accel.o
CC or1k-softmmu/trace/generated-helpers.o
CC ppcemb-softmmu/accel/stubs/hax-stub.o
CC ppc-softmmu/gdbstub.o
LINK or1k-softmmu/qemu-system-or1k
CC ppcemb-softmmu/accel/stubs/kvm-stub.o
CC ppc-softmmu/balloon.o
CC ppcemb-softmmu/accel/tcg/tcg-all.o
CC ppc64-softmmu/accel/tcg/tcg-runtime.o
CC ppc-softmmu/ioport.o
CC ppcemb-softmmu/accel/tcg/cputlb.o
CC ppc64-softmmu/accel/tcg/cpu-exec.o
CC ppcemb-softmmu/accel/tcg/tcg-runtime.o
CC ppc-softmmu/numa.o
CC ppc64-softmmu/accel/tcg/cpu-exec-common.o
CC ppc64-softmmu/accel/tcg/translate-all.o
GEN s390x-softmmu/hmp-commands.h
CC ppc-softmmu/qtest.o
GEN s390x-softmmu/hmp-commands-info.h
CC s390x-softmmu/gen-features
GEN s390x-softmmu/config-target.h
CC ppcemb-softmmu/accel/tcg/cpu-exec.o
GEN s390x-softmmu/gen-features.h
CC ppc64-softmmu/accel/tcg/translator.o
CC s390x-softmmu/exec.o
CC ppc-softmmu/memory.o
CC ppcemb-softmmu/accel/tcg/cpu-exec-common.o
CC ppc64-softmmu/hw/9pfs/virtio-9p-device.o
CC ppcemb-softmmu/accel/tcg/translate-all.o
CC ppc-softmmu/memory_mapping.o
CC ppcemb-softmmu/accel/tcg/translator.o
CC ppc64-softmmu/hw/block/virtio-blk.o
CC ppc-softmmu/dump.o
CC ppc64-softmmu/hw/block/dataplane/virtio-blk.o
CC ppcemb-softmmu/hw/9pfs/virtio-9p-device.o
CC ppc-softmmu/migration/ram.o
CC s390x-softmmu/tcg/tcg.o
CC ppc64-softmmu/hw/char/spapr_vty.o
CC ppcemb-softmmu/hw/block/virtio-blk.o
CC ppcemb-softmmu/hw/block/dataplane/virtio-blk.o
CC ppc64-softmmu/hw/char/virtio-serial-bus.o
CC ppc-softmmu/accel/accel.o
CC ppcemb-softmmu/hw/char/virtio-serial-bus.o
CC ppc-softmmu/accel/stubs/hax-stub.o
CC ppc64-softmmu/hw/core/generic-loader.o
CC ppcemb-softmmu/hw/core/generic-loader.o
CC ppc-softmmu/accel/stubs/kvm-stub.o
CC ppc64-softmmu/hw/core/null-machine.o
CC s390x-softmmu/tcg/tcg-op.o
CC ppc64-softmmu/hw/display/sm501.o
CC ppc-softmmu/accel/tcg/tcg-all.o
CC ppcemb-softmmu/hw/core/null-machine.o
CC ppc-softmmu/accel/tcg/cputlb.o
CC ppcemb-softmmu/hw/display/sm501.o
CC ppc64-softmmu/hw/display/vga.o
CC s390x-softmmu/tcg/optimize.o
CC ppcemb-softmmu/hw/display/vga.o
CC ppc-softmmu/accel/tcg/tcg-runtime.o
CC ppc64-softmmu/hw/display/virtio-gpu.o
CC ppc-softmmu/accel/tcg/cpu-exec.o
CC ppcemb-softmmu/hw/display/virtio-gpu.o
CC s390x-softmmu/tcg/tcg-common.o
CC s390x-softmmu/fpu/softfloat.o
CC ppc-softmmu/accel/tcg/cpu-exec-common.o
CC ppcemb-softmmu/hw/display/virtio-gpu-3d.o
CC ppc64-softmmu/hw/display/virtio-gpu-3d.o
CC ppc-softmmu/accel/tcg/translate-all.o
CC ppcemb-softmmu/hw/display/virtio-gpu-pci.o
CC ppc64-softmmu/hw/display/virtio-gpu-pci.o
CC ppcemb-softmmu/hw/i2c/ppc4xx_i2c.o
CC ppc-softmmu/accel/tcg/translator.o
CC ppcemb-softmmu/hw/misc/ivshmem.o
CC ppc64-softmmu/hw/display/virtio-vga.o
CC ppcemb-softmmu/hw/misc/mmio_interface.o
CC ppc-softmmu/hw/9pfs/virtio-9p-device.o
CC ppcemb-softmmu/hw/net/xilinx_ethlite.o
CC ppc64-softmmu/hw/i2c/ppc4xx_i2c.o
CC ppc-softmmu/hw/block/virtio-blk.o
CC s390x-softmmu/disas.o
CC ppcemb-softmmu/hw/net/virtio-net.o
CC ppc64-softmmu/hw/intc/xics.o
CC ppc-softmmu/hw/block/dataplane/virtio-blk.o
GEN s390x-softmmu/gdbstub-xml.c
CC ppc64-softmmu/hw/intc/xics_spapr.o
CC ppcemb-softmmu/hw/net/vhost_net.o
CC ppc-softmmu/hw/char/virtio-serial-bus.o
CC ppcemb-softmmu/hw/scsi/virtio-scsi.o
CC ppc64-softmmu/hw/intc/xics_pnv.o
CC ppc64-softmmu/hw/misc/ivshmem.o
CC s390x-softmmu/arch_init.o
CC ppc-softmmu/hw/core/generic-loader.o
CC ppcemb-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC s390x-softmmu/cpus.o
CC ppc64-softmmu/hw/misc/mmio_interface.o
CC ppc-softmmu/hw/core/null-machine.o
CC ppcemb-softmmu/hw/scsi/vhost-scsi-common.o
CC ppc64-softmmu/hw/net/spapr_llan.o
CC ppc-softmmu/hw/display/sm501.o
CC ppcemb-softmmu/hw/scsi/vhost-scsi.o
CC s390x-softmmu/monitor.o
CC ppc64-softmmu/hw/net/xilinx_ethlite.o
CC ppcemb-softmmu/hw/scsi/vhost-user-scsi.o
CC ppcemb-softmmu/hw/vfio/common.o
CC ppc64-softmmu/hw/net/virtio-net.o
CC ppc-softmmu/hw/display/vga.o
CC s390x-softmmu/gdbstub.o
CC ppcemb-softmmu/hw/vfio/pci.o
CC ppc64-softmmu/hw/net/vhost_net.o
CC ppc-softmmu/hw/display/virtio-gpu.o
CC ppc64-softmmu/hw/net/fsl_etsec/etsec.o
CC s390x-softmmu/balloon.o
CC ppc-softmmu/hw/display/virtio-gpu-3d.o
CC s390x-softmmu/ioport.o
CC ppcemb-softmmu/hw/vfio/pci-quirks.o
CC ppc64-softmmu/hw/net/fsl_etsec/registers.o
CC ppc64-softmmu/hw/net/fsl_etsec/rings.o
CC s390x-softmmu/numa.o
CC ppc-softmmu/hw/display/virtio-gpu-pci.o
CC ppc64-softmmu/hw/net/fsl_etsec/miim.o
CC ppcemb-softmmu/hw/vfio/platform.o
CC s390x-softmmu/qtest.o
CC ppc64-softmmu/hw/nvram/spapr_nvram.o
CC ppc-softmmu/hw/i2c/ppc4xx_i2c.o
CC ppcemb-softmmu/hw/vfio/spapr.o
CC s390x-softmmu/memory.o
CC ppc64-softmmu/hw/scsi/spapr_vscsi.o
CC ppc-softmmu/hw/misc/ivshmem.o
CC ppcemb-softmmu/hw/virtio/virtio.o
CC ppc-softmmu/hw/misc/mmio_interface.o
CC ppc64-softmmu/hw/scsi/virtio-scsi.o
CC ppc-softmmu/hw/net/xilinx_ethlite.o
CC ppc-softmmu/hw/net/virtio-net.o
CC s390x-softmmu/memory_mapping.o
CC ppcemb-softmmu/hw/virtio/virtio-balloon.o
CC ppc64-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC s390x-softmmu/dump.o
CC ppcemb-softmmu/hw/virtio/vhost.o
CC ppc64-softmmu/hw/scsi/vhost-scsi-common.o
CC ppc-softmmu/hw/net/vhost_net.o
CC ppc64-softmmu/hw/scsi/vhost-scsi.o
CC ppcemb-softmmu/hw/virtio/vhost-backend.o
CC ppc-softmmu/hw/net/fsl_etsec/etsec.o
CC s390x-softmmu/migration/ram.o
CC ppc64-softmmu/hw/scsi/vhost-user-scsi.o
CC ppcemb-softmmu/hw/virtio/vhost-user.o
CC ppc-softmmu/hw/net/fsl_etsec/registers.o
CC ppc64-softmmu/hw/timer/mc146818rtc.o
CC ppc-softmmu/hw/net/fsl_etsec/rings.o
CC ppcemb-softmmu/hw/virtio/vhost-vsock.o
CC s390x-softmmu/accel/accel.o
CC ppc64-softmmu/hw/vfio/common.o
CC s390x-softmmu/accel/kvm/kvm-all.o
CC ppc-softmmu/hw/net/fsl_etsec/miim.o
CC ppcemb-softmmu/hw/virtio/virtio-crypto.o
CC ppc-softmmu/hw/scsi/virtio-scsi.o
CC ppc64-softmmu/hw/vfio/pci.o
CC ppcemb-softmmu/hw/virtio/virtio-crypto-pci.o
CC s390x-softmmu/accel/stubs/hax-stub.o
CC ppc-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC ppcemb-softmmu/hw/ppc/ppc.o
CC s390x-softmmu/accel/tcg/tcg-all.o
CC ppc-softmmu/hw/scsi/vhost-scsi-common.o
CC s390x-softmmu/accel/tcg/cputlb.o
CC ppc64-softmmu/hw/vfio/pci-quirks.o
CC ppcemb-softmmu/hw/ppc/ppc_booke.o
CC ppc-softmmu/hw/scsi/vhost-scsi.o
CC ppcemb-softmmu/hw/ppc/fdt.o
CC ppc-softmmu/hw/scsi/vhost-user-scsi.o
CC ppc64-softmmu/hw/vfio/platform.o
CC ppcemb-softmmu/hw/ppc/ppc405_boards.o
CC ppc-softmmu/hw/timer/mc146818rtc.o
CC ppc64-softmmu/hw/vfio/spapr.o
CC s390x-softmmu/accel/tcg/tcg-runtime.o
CC ppcemb-softmmu/hw/ppc/ppc4xx_devs.o
CC ppc-softmmu/hw/vfio/common.o
CC ppc64-softmmu/hw/virtio/virtio.o
CC s390x-softmmu/accel/tcg/cpu-exec.o
CC ppcemb-softmmu/hw/ppc/ppc405_uc.o
CC ppc-softmmu/hw/vfio/pci.o
CC s390x-softmmu/accel/tcg/cpu-exec-common.o
CC ppcemb-softmmu/hw/ppc/ppc440_bamboo.o
CC ppc64-softmmu/hw/virtio/virtio-balloon.o
CC s390x-softmmu/accel/tcg/translate-all.o
CC ppcemb-softmmu/hw/ppc/ppc4xx_pci.o
CC ppc-softmmu/hw/vfio/pci-quirks.o
CC ppc64-softmmu/hw/virtio/vhost.o
CC ppcemb-softmmu/hw/ppc/virtex_ml507.o
CC s390x-softmmu/accel/tcg/translator.o
CC ppc-softmmu/hw/vfio/platform.o
CC ppc64-softmmu/hw/virtio/vhost-backend.o
CC ppcemb-softmmu/target/ppc/cpu-models.o
CC s390x-softmmu/hw/9pfs/virtio-9p-device.o
CC ppc64-softmmu/hw/virtio/vhost-user.o
CC ppc-softmmu/hw/vfio/spapr.o
CC s390x-softmmu/hw/block/virtio-blk.o
CC ppc64-softmmu/hw/virtio/vhost-vsock.o
CC ppc-softmmu/hw/virtio/virtio.o
CC s390x-softmmu/hw/block/dataplane/virtio-blk.o
CC ppc64-softmmu/hw/virtio/virtio-crypto.o
CC ppcemb-softmmu/target/ppc/cpu.o
CC ppc64-softmmu/hw/virtio/virtio-crypto-pci.o
CC s390x-softmmu/hw/char/virtio-serial-bus.o
CC ppcemb-softmmu/target/ppc/translate.o
CC ppc-softmmu/hw/virtio/virtio-balloon.o
CC ppc64-softmmu/hw/ppc/ppc.o
CC ppc-softmmu/hw/virtio/vhost.o
CC s390x-softmmu/hw/char/terminal3270.o
CC ppc64-softmmu/hw/ppc/ppc_booke.o
CC s390x-softmmu/hw/core/generic-loader.o
CC ppc-softmmu/hw/virtio/vhost-backend.o
CC ppc64-softmmu/hw/ppc/fdt.o
CC s390x-softmmu/hw/core/null-machine.o
CC ppc-softmmu/hw/virtio/vhost-user.o
CC ppc64-softmmu/hw/ppc/spapr.o
CC s390x-softmmu/hw/display/virtio-gpu.o
CC ppc-softmmu/hw/virtio/vhost-vsock.o
CC s390x-softmmu/hw/display/virtio-gpu-3d.o
CC ppc-softmmu/hw/virtio/virtio-crypto.o
CC ppc64-softmmu/hw/ppc/spapr_vio.o
CC s390x-softmmu/hw/display/virtio-gpu-pci.o
CC ppc-softmmu/hw/virtio/virtio-crypto-pci.o
CC ppc64-softmmu/hw/ppc/spapr_events.o
CC s390x-softmmu/hw/intc/s390_flic.o
CC ppc-softmmu/hw/ppc/ppc.o
CC ppc64-softmmu/hw/ppc/spapr_hcall.o
CC s390x-softmmu/hw/intc/s390_flic_kvm.o
CC ppc-softmmu/hw/ppc/ppc_booke.o
CC ppc64-softmmu/hw/ppc/spapr_iommu.o
CC s390x-softmmu/hw/misc/mmio_interface.o
CC ppc-softmmu/hw/ppc/fdt.o
CC s390x-softmmu/hw/net/virtio-net.o
CC ppc64-softmmu/hw/ppc/spapr_rtas.o
CC ppc-softmmu/hw/ppc/ppc405_boards.o
CC s390x-softmmu/hw/net/vhost_net.o
CC ppc-softmmu/hw/ppc/ppc4xx_devs.o
CC ppc64-softmmu/hw/ppc/spapr_pci.o
CC s390x-softmmu/hw/net/rocker/qmp-norocker.o
CC ppc-softmmu/hw/ppc/ppc405_uc.o
CC s390x-softmmu/hw/scsi/virtio-scsi.o
CC ppc64-softmmu/hw/ppc/spapr_rtc.o
CC ppc-softmmu/hw/ppc/ppc440_bamboo.o
CC s390x-softmmu/hw/scsi/virtio-scsi-dataplane.o
CC ppc64-softmmu/hw/ppc/spapr_drc.o
CC ppc-softmmu/hw/ppc/ppc4xx_pci.o
CC s390x-softmmu/hw/scsi/vhost-scsi-common.o
CC ppc-softmmu/hw/ppc/prep.o
CC ppc64-softmmu/hw/ppc/spapr_rng.o
CC s390x-softmmu/hw/scsi/vhost-scsi.o
CC ppc64-softmmu/hw/ppc/spapr_cpu_core.o
CC s390x-softmmu/hw/scsi/vhost-user-scsi.o
CC ppc-softmmu/hw/ppc/prep_systemio.o
CC ppc64-softmmu/hw/ppc/spapr_ovec.o
CC s390x-softmmu/hw/vfio/common.o
CC ppc-softmmu/hw/ppc/rs6000_mc.o
CC ppc64-softmmu/hw/ppc/pnv.o
CC s390x-softmmu/hw/vfio/pci.o
CC ppc-softmmu/hw/ppc/mac_oldworld.o
CC ppc-softmmu/hw/ppc/mac_newworld.o
CC ppc64-softmmu/hw/ppc/pnv_xscom.o
CC ppc-softmmu/hw/ppc/e500.o
CC s390x-softmmu/hw/vfio/pci-quirks.o
CC ppc64-softmmu/hw/ppc/pnv_core.o
CC ppc-softmmu/hw/ppc/mpc8544ds.o
CC ppc64-softmmu/hw/ppc/pnv_lpc.o
CC s390x-softmmu/hw/vfio/ccw.o
CC ppc-softmmu/hw/ppc/e500plat.o
CC ppc64-softmmu/hw/ppc/pnv_psi.o
CC s390x-softmmu/hw/vfio/platform.o
CC ppc-softmmu/hw/ppc/mpc8544_guts.o
CC ppc64-softmmu/hw/ppc/pnv_occ.o
CC ppc-softmmu/hw/ppc/ppce500_spin.o
CC s390x-softmmu/hw/vfio/spapr.o
CC ppcemb-softmmu/target/ppc/machine.o
CC ppc64-softmmu/hw/ppc/pnv_bmc.o
CC ppc-softmmu/hw/ppc/virtex_ml507.o
CC s390x-softmmu/hw/virtio/virtio.o
CC ppcemb-softmmu/target/ppc/mmu_helper.o
CC ppc64-softmmu/hw/ppc/spapr_pci_vfio.o
CC ppc-softmmu/target/ppc/cpu-models.o
CC ppc64-softmmu/hw/ppc/spapr_rtas_ddw.o
CC ppc64-softmmu/hw/ppc/ppc405_boards.o
CC s390x-softmmu/hw/virtio/virtio-balloon.o
CC ppcemb-softmmu/target/ppc/mmu-hash32.o
CC ppc64-softmmu/hw/ppc/ppc4xx_devs.o
CC ppc-softmmu/target/ppc/cpu.o
CC s390x-softmmu/hw/virtio/vhost.o
CC ppcemb-softmmu/target/ppc/monitor.o
CC ppc64-softmmu/hw/ppc/ppc405_uc.o
CC ppcemb-softmmu/target/ppc/arch_dump.o
CC ppc-softmmu/target/ppc/translate.o
CC ppcemb-softmmu/target/ppc/kvm-stub.o
CC s390x-softmmu/hw/virtio/vhost-backend.o
CC ppc64-softmmu/hw/ppc/ppc440_bamboo.o
CC ppcemb-softmmu/target/ppc/dfp_helper.o
CC ppc64-softmmu/hw/ppc/ppc4xx_pci.o
CC s390x-softmmu/hw/virtio/vhost-user.o
CC ppc64-softmmu/hw/ppc/prep.o
CC s390x-softmmu/hw/virtio/vhost-vsock.o
CC ppcemb-softmmu/target/ppc/excp_helper.o
CC ppc64-softmmu/hw/ppc/prep_systemio.o
CC s390x-softmmu/hw/virtio/virtio-crypto.o
CC ppcemb-softmmu/target/ppc/fpu_helper.o
CC ppc64-softmmu/hw/ppc/rs6000_mc.o
CC s390x-softmmu/hw/virtio/virtio-crypto-pci.o
CC ppc64-softmmu/hw/ppc/mac_oldworld.o
CC s390x-softmmu/hw/s390x/s390-virtio-hcall.o
CC ppc64-softmmu/hw/ppc/mac_newworld.o
CC s390x-softmmu/hw/s390x/sclp.o
CC s390x-softmmu/hw/s390x/event-facility.o
CC ppc64-softmmu/hw/ppc/e500.o
CC s390x-softmmu/hw/s390x/sclpquiesce.o
CC s390x-softmmu/hw/s390x/sclpcpu.o
CC ppc64-softmmu/hw/ppc/mpc8544ds.o
CC s390x-softmmu/hw/s390x/ipl.o
CC ppc64-softmmu/hw/ppc/e500plat.o
CC s390x-softmmu/hw/s390x/css.o
CC ppcemb-softmmu/target/ppc/int_helper.o
CC ppc64-softmmu/hw/ppc/mpc8544_guts.o
CC ppc64-softmmu/hw/ppc/ppce500_spin.o
CC s390x-softmmu/hw/s390x/s390-virtio-ccw.o
CC ppc64-softmmu/hw/ppc/virtex_ml507.o
CC ppc64-softmmu/target/ppc/cpu-models.o
CC s390x-softmmu/hw/s390x/3270-ccw.o
CC ppcemb-softmmu/target/ppc/timebase_helper.o
CC s390x-softmmu/hw/s390x/virtio-ccw.o
CC ppcemb-softmmu/target/ppc/misc_helper.o
CC ppcemb-softmmu/target/ppc/mem_helper.o
CC ppc64-softmmu/target/ppc/cpu.o
CC s390x-softmmu/hw/s390x/css-bridge.o
CC ppc64-softmmu/target/ppc/translate.o
CC ppcemb-softmmu/target/ppc/gdbstub.o
CC s390x-softmmu/hw/s390x/ccw-device.o
CC ppcemb-softmmu/target/ppc/../../libdecnumber/decContext.o
CC s390x-softmmu/hw/s390x/s390-pci-bus.o
CC ppcemb-softmmu/target/ppc/../../libdecnumber/decNumber.o
CC s390x-softmmu/hw/s390x/s390-pci-inst.o
CC s390x-softmmu/hw/s390x/s390-skeys.o
CC ppcemb-softmmu/target/ppc/../../libdecnumber/dpd/decimal32.o
CC s390x-softmmu/hw/s390x/s390-stattrib.o
CC ppcemb-softmmu/target/ppc/../../libdecnumber/dpd/decimal64.o
CC ppc-softmmu/target/ppc/machine.o
/var/tmp/patchew-tester-tmp-30ljxus4/src/hw/s390x/s390-stattrib.c: In function ‘s390_stattrib_instance_init’:
/var/tmp/patchew-tester-tmp-30ljxus4/src/hw/s390x/s390-stattrib.c:379:28: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
ops->save_live_pending = cmma_save_pending;
^cc1: all warnings being treated as errors /var/tmp/patchew-tester-tmp-30ljxus4/src/rules.mak:66: recipe for target 'hw/s390x/s390-stattrib.o' failed make[1]: *** [hw/s390x/s390-stattrib.o] Error 1
Makefile:374: recipe for target 'subdir-s390x-softmmu' failed
make: *** [subdir-s390x-softmmu] Error 2
make: *** Waiting for unfinished jobs....
CC ppcemb-softmmu/target/ppc/../../libdecnumber/dpd/decimal128.o CC ppc-softmmu/target/ppc/mmu_helper.o CC ppc64-softmmu/target/ppc/machine.o GEN trace/generated-helpers.c CC ppcemb-softmmu/trace/control-target.o CC ppc-softmmu/target/ppc/mmu-hash32.o CC ppcemb-softmmu/gdbstub-xml.o CC ppc-softmmu/target/ppc/monitor.o CC ppcemb-softmmu/trace/generated-helpers.o CC ppc-softmmu/target/ppc/arch_dump.o CC ppc-softmmu/target/ppc/kvm-stub.o CC ppc64-softmmu/target/ppc/mmu_helper.o LINK ppcemb-softmmu/qemu-system-ppcemb CC ppc-softmmu/target/ppc/dfp_helper.o CC ppc-softmmu/target/ppc/excp_helper.o CC ppc64-softmmu/target/ppc/mmu-hash32.o CC ppc64-softmmu/target/ppc/monitor.o CC ppc64-softmmu/target/ppc/arch_dump.o CC ppc-softmmu/target/ppc/fpu_helper.o CC ppc64-softmmu/target/ppc/mmu-hash64.o CC ppc-softmmu/target/ppc/int_helper.o CC ppc64-softmmu/target/ppc/mmu-book3s-v3.o CC ppc-softmmu/target/ppc/timebase_helper.o CC ppc-softmmu/target/ppc/misc_helper.o CC ppc-softmmu/target/ppc/mem_helper.o CC ppc-softmmu/target/ppc/gdbstub.o CC ppc-softmmu/target/ppc/../../libdecnumber/decContext.o CC ppc-softmmu/target/ppc/../../libdecnumber/decNumber.o CC ppc-softmmu/target/ppc/../../libdecnumber/dpd/decimal32.o CC ppc-softmmu/target/ppc/../../libdecnumber/dpd/decimal64.o CC ppc-softmmu/target/ppc/../../libdecnumber/dpd/decimal128.o GEN trace/generated-helpers.c CC ppc-softmmu/trace/control-target.o CC ppc-softmmu/gdbstub-xml.o CC ppc-softmmu/trace/generated-helpers.o CC ppc64-softmmu/target/ppc/compat.o CC ppc64-softmmu/target/ppc/mmu-radix64.o CC ppc64-softmmu/target/ppc/kvm-stub.o LINK ppc-softmmu/qemu-system-ppc CC ppc64-softmmu/target/ppc/dfp_helper.o CC ppc64-softmmu/target/ppc/excp_helper.o CC ppc64-softmmu/target/ppc/fpu_helper.o CC ppc64-softmmu/target/ppc/int_helper.o CC ppc64-softmmu/target/ppc/timebase_helper.o CC ppc64-softmmu/target/ppc/misc_helper.o CC ppc64-softmmu/target/ppc/mem_helper.o CC ppc64-softmmu/target/ppc/gdbstub.o CC ppc64-softmmu/target/ppc/../../libdecnumber/decContext.o CC ppc64-softmmu/target/ppc/../../libdecnumber/decNumber.o CC ppc64-softmmu/target/ppc/../../libdecnumber/dpd/decimal32.o CC ppc64-softmmu/target/ppc/../../libdecnumber/dpd/decimal64.o CC ppc64-softmmu/target/ppc/../../libdecnumber/dpd/decimal128.o GEN trace/generated-helpers.c CC ppc64-softmmu/trace/control-target.o CC ppc64-softmmu/gdbstub-xml.o CC ppc64-softmmu/trace/generated-helpers.o LINK ppc64-softmmu/qemu-system-ppc64
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Hi all!
There is a new version of dirty bitmap postcopy migration series.
v8
clone: tag postcopy-v8 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v8
compilation is broken for s390, so updated version is:
clone: tag postcopy-v8.1 from https://src.openvz.org/scm/~vsementsov/qemu.git
online: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=postcopy-v8.1
Signature · 2 lines
Best regards, Vladimir