Skip to content

Commit

Permalink
qapi: introduce replay.json for record/replay-related stuff
Browse files Browse the repository at this point in the history
This patch adds replay.json file. It will be
used for adding record/replay-related data structures and commands.

Signed-off-by: Pavel Dovgalyuk <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Message-Id: <160174519444.12451.3472949430004845434.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
Dovgalyuk authored and bonzini committed Oct 6, 2020
1 parent b39847a commit 43d7e1d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,7 @@ F: include/sysemu/replay.h
F: docs/replay.txt
F: stubs/replay.c
F: tests/acceptance/replay_kernel.py
F: qapi/replay.json

IOVA Tree
M: Peter Xu <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions include/sysemu/replay.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "qapi/qapi-types-misc.h"
#include "qapi/qapi-types-run-state.h"
#include "qapi/qapi-types-replay.h"
#include "qapi/qapi-types-ui.h"
#include "block/aio.h"

Expand Down
1 change: 1 addition & 0 deletions qapi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ qapi_all_modules = [
'pci',
'qom',
'rdma',
'replay',
'rocker',
'run-state',
'sockets',
Expand Down
18 changes: 0 additions & 18 deletions qapi/misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,24 +757,6 @@
'returns': ['CommandLineOptionInfo'],
'allow-preconfig': true }

##
# @ReplayMode:
#
# Mode of the replay subsystem.
#
# @none: normal execution mode. Replay or record are not enabled.
#
# @record: record mode. All non-deterministic data is written into the
# replay log.
#
# @play: replay mode. Non-deterministic data required for system execution
# is read from the log.
#
# Since: 2.5
##
{ 'enum': 'ReplayMode',
'data': [ 'none', 'record', 'play' ] }

##
# @xen-load-devices-state:
#
Expand Down
1 change: 1 addition & 0 deletions qapi/qapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
{ 'include': 'qdev.json' }
{ 'include': 'machine.json' }
{ 'include': 'machine-target.json' }
{ 'include': 'replay.json' }
{ 'include': 'misc.json' }
{ 'include': 'misc-target.json' }
{ 'include': 'audio.json' }
Expand Down
26 changes: 26 additions & 0 deletions qapi/replay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- Mode: Python -*-
#

##
# = Record/replay
##

{ 'include': 'common.json' }

##
# @ReplayMode:
#
# Mode of the replay subsystem.
#
# @none: normal execution mode. Replay or record are not enabled.
#
# @record: record mode. All non-deterministic data is written into the
# replay log.
#
# @play: replay mode. Non-deterministic data required for system execution
# is read from the log.
#
# Since: 2.5
##
{ 'enum': 'ReplayMode',
'data': [ 'none', 'record', 'play' ] }

0 comments on commit 43d7e1d

Please sign in to comment.