qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] e73a26: block/dirty-bitmap: add bdrv_dirty_bi


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] e73a26: block/dirty-bitmap: add bdrv_dirty_bitmap_enable_s...
Date: Fri, 16 Mar 2018 08:05:18 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: e73a265e9f0fe4dfa376bffe78f121b85c7a5a03
      
https://github.com/qemu/qemu/commit/e73a265e9f0fe4dfa376bffe78f121b85c7a5a03
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M block/dirty-bitmap.c
    M include/block/dirty-bitmap.h

  Log Message:
  -----------
  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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>


  Commit: 604ab74bb5cfb48ca67bef7537b38faf142f67dc
      
https://github.com/qemu/qemu/commit/604ab74bb5cfb48ca67bef7537b38faf142f67dc
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M block/dirty-bitmap.c

  Log Message:
  -----------
  block/dirty-bitmap: fix locking in bdrv_reclaim_dirty_bitmap

Like other setters here these functions should take a lock.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: John Snow <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>


  Commit: 044ee8e143576abd72acf452080e8da531fb13c8
      
https://github.com/qemu/qemu/commit/044ee8e143576abd72acf452080e8da531fb13c8
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M block/dirty-bitmap.c
    M include/block/dirty-bitmap.h

  Log Message:
  -----------
  block/dirty-bitmap: add _locked version of bdrv_reclaim_dirty_bitmap

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: John Snow <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>


  Commit: 4f43e9535bdd768bff4e30e229404407d44ad4c8
      
https://github.com/qemu/qemu/commit/4f43e9535bdd768bff4e30e229404407d44ad4c8
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M block/dirty-bitmap.c
    M blockdev.c
    M include/block/dirty-bitmap.h
    M qapi/block-core.json

  Log Message:
  -----------
  dirty-bitmap: add locked state

Add special state, when qmp operations on the bitmap are disabled.
It is needed during bitmap migration. "Frozen" state is not
appropriate here, because it looks like bitmap is unchanged.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: John Snow <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>


  Commit: 4799502640e6a29d37dacb116a590fc03bacbb01
      
https://github.com/qemu/qemu/commit/4799502640e6a29d37dacb116a590fc03bacbb01
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M hw/s390x/s390-stattrib.c
    M include/migration/register.h
    M migration/block.c
    M migration/migration.c
    M migration/ram.c
    M migration/savevm.c
    M migration/savevm.h
    M migration/trace-events

  Log Message:
  -----------
  migration: introduce postcopy-only pending

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 <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Message-id: address@hidden


  Commit: 55efc8c2ff8cf87abb895465fe5197b914c56ab4
      
https://github.com/qemu/qemu/commit/55efc8c2ff8cf87abb895465fe5197b914c56ab4
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M migration/migration.c
    M migration/migration.h
    M qapi/migration.json

  Log Message:
  -----------
  qapi: add dirty-bitmaps migration capability

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden


  Commit: dd6bb91450cae3f8a4ddac465712fa8ae8cd2c7c
      
https://github.com/qemu/qemu/commit/dd6bb91450cae3f8a4ddac465712fa8ae8cd2c7c
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M migration/migration.c

  Log Message:
  -----------
  migration: include migrate_dirty_bitmaps in migrate_postcopy

Enable postcopy if dirty bitmap migration is enabled.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden


  Commit: f0d64cb72916b3086b51d5933de74e98c8586612
      
https://github.com/qemu/qemu/commit/f0d64cb72916b3086b51d5933de74e98c8586612
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M migration/qemu-file.c
    M migration/qemu-file.h

  Log Message:
  -----------
  migration/qemu-file: add qemu_put_counted_string()

Add 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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden


  Commit: c865d84872b421715d8291285f57b658e8b39c9b
      
https://github.com/qemu/qemu/commit/c865d84872b421715d8291285f57b658e8b39c9b
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M include/migration/register.h
    M migration/savevm.c

  Log Message:
  -----------
  migration: add is_active_iterate handler

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 <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden


  Commit: 16b0fd3252511af284ceaeedb4d09ce2d5142da0
      
https://github.com/qemu/qemu/commit/16b0fd3252511af284ceaeedb4d09ce2d5142da0
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M migration/migration.c

  Log Message:
  -----------
  migration: allow qmp command migrate-start-postcopy for any postcopy

Allow migrate-start-postcopy for any postcopy type

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Message-id: address@hidden


  Commit: b35ebdf076d697bca9ad8715ac76d7b7f3ac1be3
      
https://github.com/qemu/qemu/commit/b35ebdf076d697bca9ad8715ac76d7b7f3ac1be3
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    M include/migration/misc.h
    M migration/Makefile.objs
    A migration/block-dirty-bitmap.c
    M migration/migration.c
    M migration/migration.h
    M migration/savevm.c
    M migration/trace-events
    M vl.c

  Log Message:
  -----------
  migration: add postcopy migration of dirty bitmaps

Postcopy migration of dirty bitmaps. Only named dirty bitmaps 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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Message-id: address@hidden
[Changed '+' to '*' as per list discussion. --js]
Signed-off-by: John Snow <address@hidden>


  Commit: 33dac6f343dbea77550d5017ef4f8e1a2594194d
      
https://github.com/qemu/qemu/commit/33dac6f343dbea77550d5017ef4f8e1a2594194d
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    A tests/qemu-iotests/169
    A tests/qemu-iotests/169.out
    M tests/qemu-iotests/group

  Log Message:
  -----------
  iotests: add dirty bitmap migration test

The 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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Message-id: address@hidden


  Commit: ac8bd439bb7b5dffeb5ff8a17317ca2b192044b6
      
https://github.com/qemu/qemu/commit/ac8bd439bb7b5dffeb5ff8a17317ca2b192044b6
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2018-03-13 (Tue, 13 Mar 2018)

  Changed paths:
    A tests/qemu-iotests/199
    A tests/qemu-iotests/199.out
    M tests/qemu-iotests/group
    M tests/qemu-iotests/iotests.py

  Log Message:
  -----------
  iotests: add dirty bitmap postcopy test

Test
- 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.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Message-id: address@hidden


  Commit: 9cc7d0cf6a6dc300db4db25421eff782623d6b18
      
https://github.com/qemu/qemu/commit/9cc7d0cf6a6dc300db4db25421eff782623d6b18
  Author: Peter Maydell <address@hidden>
  Date:   2018-03-16 (Fri, 16 Mar 2018)

  Changed paths:
    M block/dirty-bitmap.c
    M blockdev.c
    M hw/s390x/s390-stattrib.c
    M include/block/dirty-bitmap.h
    M include/migration/misc.h
    M include/migration/register.h
    M migration/Makefile.objs
    A migration/block-dirty-bitmap.c
    M migration/block.c
    M migration/migration.c
    M migration/migration.h
    M migration/qemu-file.c
    M migration/qemu-file.h
    M migration/ram.c
    M migration/savevm.c
    M migration/savevm.h
    M migration/trace-events
    M qapi/block-core.json
    M qapi/migration.json
    A tests/qemu-iotests/169
    A tests/qemu-iotests/169.out
    A tests/qemu-iotests/199
    A tests/qemu-iotests/199.out
    M tests/qemu-iotests/group
    M tests/qemu-iotests/iotests.py
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into 
staging

# gpg: Signature made Tue 13 Mar 2018 21:11:43 GMT
# gpg:                using RSA key 7DEF8106AAFC390E
# gpg: Good signature from "John Snow (John Huston) <address@hidden>"
# Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
#      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E

* remotes/jnsnow/tags/bitmaps-pull-request:
  iotests: add dirty bitmap postcopy test
  iotests: add dirty bitmap migration test
  migration: add postcopy migration of dirty bitmaps
  migration: allow qmp command migrate-start-postcopy for any postcopy
  migration: add is_active_iterate handler
  migration/qemu-file: add qemu_put_counted_string()
  migration: include migrate_dirty_bitmaps in migrate_postcopy
  qapi: add dirty-bitmaps migration capability
  migration: introduce postcopy-only pending
  dirty-bitmap: add locked state
  block/dirty-bitmap: add _locked version of bdrv_reclaim_dirty_bitmap
  block/dirty-bitmap: fix locking in bdrv_reclaim_dirty_bitmap
  block/dirty-bitmap: add bdrv_dirty_bitmap_enable_successor()

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/475fe4576f11...9cc7d0cf6a6d

reply via email to

[Prev in Thread] Current Thread [Next in Thread]