[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 06/17] migration: introduce icount field for
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [RFC PATCH 06/17] migration: introduce icount field for snapshots |
Date: |
Wed, 25 Apr 2018 13:59:25 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 04/25/2018 07:46 AM, Pavel Dovgalyuk wrote:
> Saving icount as a parameters of the snapshot allows navigation between
> them in the execution replay scenario.
> This information can be used for finding a specific snapshot for rewinding
> the recorded execution to the specific moment of the time.
> E.g., 'reverse step' action needs to load the nearest snapshot which is
> prior to the current moment of time .
>
> Signed-off-by: Pavel Dovgalyuk <address@hidden>
> ---
> block/qapi.c | 11 +++++++----
> blockdev.c | 3 +++
> include/block/snapshot.h | 1 +
> migration/savevm.c | 1 +
> qapi/block-core.json | 5 ++++-
> qapi/block.json | 3 ++-
> 6 files changed, 18 insertions(+), 6 deletions(-)
Using scripts/git.orderfile may make your patches easier to review, by
hoisting interfaces above implementation.
> +++ b/qapi/block-core.json
> @@ -25,13 +25,16 @@
> #
> # @vm-clock-nsec: fractional part in nano seconds to be used with
> vm-clock-sec
> #
> +# @icount: current instruction count for execution record/replay
Missing a '(since 2.13)' tag.
> +#
> # Since: 1.3
> #
> ##
> { 'struct': 'SnapshotInfo',
> 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int',
> 'date-sec': 'int', 'date-nsec': 'int',
> - 'vm-clock-sec': 'int', 'vm-clock-nsec': 'int' } }
> + 'vm-clock-sec': 'int', 'vm-clock-nsec': 'int',
> + 'icount': 'int' } }
'icount' should be optional, as older qcow2 images will not have that
information available. Also, putting patch 7 before this patch may make
more sense.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [RFC PATCH 00/17] reverse debugging, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 01/17] block: implement bdrv_snapshot_goto for blkreplay, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 02/17] replay: disable default snapshot for record/replay, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 03/17] replay: update docs for record/replay with block devices, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 04/17] replay: don't drain/flush bdrv queue while RR is working, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 06/17] migration: introduce icount field for snapshots, Pavel Dovgalyuk, 2018/04/25
- Re: [Qemu-devel] [RFC PATCH 06/17] migration: introduce icount field for snapshots,
Eric Blake <=
- [Qemu-devel] [RFC PATCH 05/17] replay: finish record/replay before closing the disks, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 07/17] qcow2: introduce icount field for snapshots, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 08/17] replay: introduce info hmp/qmp command, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 09/17] replay: introduce breakpoint at the specified step, Pavel Dovgalyuk, 2018/04/25
- [Qemu-devel] [RFC PATCH 10/17] replay: implement replay_seek command to proceed to the desired step, Pavel Dovgalyuk, 2018/04/25