|
|
357786 |
From 4cbc960084f4dc3e4e760c0d79989edbed1157e8 Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: Kevin Wolf <kwolf@redhat.com>
|
|
|
357786 |
Date: Tue, 26 Jun 2018 09:48:30 +0200
|
|
|
357786 |
Subject: [PATCH 61/89] job: Introduce qapi/job.json
|
|
|
357786 |
|
|
|
357786 |
RH-Author: Kevin Wolf <kwolf@redhat.com>
|
|
|
357786 |
Message-id: <20180626094856.6924-48-kwolf@redhat.com>
|
|
|
357786 |
Patchwork-id: 81099
|
|
|
357786 |
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 47/73] job: Introduce qapi/job.json
|
|
|
357786 |
Bugzilla: 1513543
|
|
|
357786 |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
357786 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
357786 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
This adds a separate schema file for all job-related definitions that
|
|
|
357786 |
aren't tied to the block layer.
|
|
|
357786 |
|
|
|
357786 |
For a start, move the enums JobType, JobStatus and JobVerb.
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
357786 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
357786 |
(cherry picked from commit bf42508f24ee1368267b421e145fa90315b77936)
|
|
|
357786 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
MAINTAINERS | 1 +
|
|
|
357786 |
Makefile | 9 +++++
|
|
|
357786 |
Makefile.objs | 4 +++
|
|
|
357786 |
qapi/block-core.json | 90 +-----------------------------------------------
|
|
|
357786 |
qapi/job.json | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
357786 |
qapi/qapi-schema.json | 1 +
|
|
|
357786 |
6 files changed, 110 insertions(+), 89 deletions(-)
|
|
|
357786 |
create mode 100644 qapi/job.json
|
|
|
357786 |
|
|
|
357786 |
diff --git a/MAINTAINERS b/MAINTAINERS
|
|
|
357786 |
index c5e3dfb..5aaf264 100644
|
|
|
357786 |
--- a/MAINTAINERS
|
|
|
357786 |
+++ b/MAINTAINERS
|
|
|
357786 |
@@ -1377,6 +1377,7 @@ F: block/backup.c
|
|
|
357786 |
F: block/commit.c
|
|
|
357786 |
F: block/stream.c
|
|
|
357786 |
F: block/mirror.c
|
|
|
357786 |
+F: qapi/job.json
|
|
|
357786 |
T: git git://github.com/codyprime/qemu-kvm-jtc.git block
|
|
|
357786 |
|
|
|
357786 |
Block QAPI, monitor, command line
|
|
|
357786 |
diff --git a/Makefile b/Makefile
|
|
|
357786 |
index bdd8223..c95553f 100644
|
|
|
357786 |
--- a/Makefile
|
|
|
357786 |
+++ b/Makefile
|
|
|
357786 |
@@ -98,6 +98,7 @@ GENERATED_FILES += qapi/qapi-types-char.h qapi/qapi-types-char.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-common.h qapi/qapi-types-common.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-crypto.h qapi/qapi-types-crypto.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-introspect.h qapi/qapi-types-introspect.c
|
|
|
357786 |
+GENERATED_FILES += qapi/qapi-types-job.h qapi/qapi-types-job.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-migration.h qapi/qapi-types-migration.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-misc.h qapi/qapi-types-misc.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-types-net.h qapi/qapi-types-net.c
|
|
|
357786 |
@@ -116,6 +117,7 @@ GENERATED_FILES += qapi/qapi-visit-char.h qapi/qapi-visit-char.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-common.h qapi/qapi-visit-common.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-crypto.h qapi/qapi-visit-crypto.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-introspect.h qapi/qapi-visit-introspect.c
|
|
|
357786 |
+GENERATED_FILES += qapi/qapi-visit-job.h qapi/qapi-visit-job.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-migration.h qapi/qapi-visit-migration.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-misc.h qapi/qapi-visit-misc.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-visit-net.h qapi/qapi-visit-net.c
|
|
|
357786 |
@@ -133,6 +135,7 @@ GENERATED_FILES += qapi/qapi-commands-char.h qapi/qapi-commands-char.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-common.h qapi/qapi-commands-common.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-crypto.h qapi/qapi-commands-crypto.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-introspect.h qapi/qapi-commands-introspect.c
|
|
|
357786 |
+GENERATED_FILES += qapi/qapi-commands-job.h qapi/qapi-commands-job.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-migration.h qapi/qapi-commands-migration.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-misc.h qapi/qapi-commands-misc.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-commands-net.h qapi/qapi-commands-net.c
|
|
|
357786 |
@@ -150,6 +153,7 @@ GENERATED_FILES += qapi/qapi-events-char.h qapi/qapi-events-char.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-common.h qapi/qapi-events-common.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-crypto.h qapi/qapi-events-crypto.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-introspect.h qapi/qapi-events-introspect.c
|
|
|
357786 |
+GENERATED_FILES += qapi/qapi-events-job.h qapi/qapi-events-job.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-migration.h qapi/qapi-events-migration.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-misc.h qapi/qapi-events-misc.c
|
|
|
357786 |
GENERATED_FILES += qapi/qapi-events-net.h qapi/qapi-events-net.c
|
|
|
357786 |
@@ -585,6 +589,7 @@ qapi-modules = $(SRC_PATH)/qapi/qapi-schema.json $(SRC_PATH)/qapi/common.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/char.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/crypto.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/introspect.json \
|
|
|
357786 |
+ $(SRC_PATH)/qapi/job.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/migration.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/misc.json \
|
|
|
357786 |
$(SRC_PATH)/qapi/net.json \
|
|
|
357786 |
@@ -604,6 +609,7 @@ qapi/qapi-types-char.c qapi/qapi-types-char.h \
|
|
|
357786 |
qapi/qapi-types-common.c qapi/qapi-types-common.h \
|
|
|
357786 |
qapi/qapi-types-crypto.c qapi/qapi-types-crypto.h \
|
|
|
357786 |
qapi/qapi-types-introspect.c qapi/qapi-types-introspect.h \
|
|
|
357786 |
+qapi/qapi-types-job.c qapi/qapi-types-job.h \
|
|
|
357786 |
qapi/qapi-types-migration.c qapi/qapi-types-migration.h \
|
|
|
357786 |
qapi/qapi-types-misc.c qapi/qapi-types-misc.h \
|
|
|
357786 |
qapi/qapi-types-net.c qapi/qapi-types-net.h \
|
|
|
357786 |
@@ -622,6 +628,7 @@ qapi/qapi-visit-char.c qapi/qapi-visit-char.h \
|
|
|
357786 |
qapi/qapi-visit-common.c qapi/qapi-visit-common.h \
|
|
|
357786 |
qapi/qapi-visit-crypto.c qapi/qapi-visit-crypto.h \
|
|
|
357786 |
qapi/qapi-visit-introspect.c qapi/qapi-visit-introspect.h \
|
|
|
357786 |
+qapi/qapi-visit-job.c qapi/qapi-visit-job.h \
|
|
|
357786 |
qapi/qapi-visit-migration.c qapi/qapi-visit-migration.h \
|
|
|
357786 |
qapi/qapi-visit-misc.c qapi/qapi-visit-misc.h \
|
|
|
357786 |
qapi/qapi-visit-net.c qapi/qapi-visit-net.h \
|
|
|
357786 |
@@ -639,6 +646,7 @@ qapi/qapi-commands-char.c qapi/qapi-commands-char.h \
|
|
|
357786 |
qapi/qapi-commands-common.c qapi/qapi-commands-common.h \
|
|
|
357786 |
qapi/qapi-commands-crypto.c qapi/qapi-commands-crypto.h \
|
|
|
357786 |
qapi/qapi-commands-introspect.c qapi/qapi-commands-introspect.h \
|
|
|
357786 |
+qapi/qapi-commands-job.c qapi/qapi-commands-job.h \
|
|
|
357786 |
qapi/qapi-commands-migration.c qapi/qapi-commands-migration.h \
|
|
|
357786 |
qapi/qapi-commands-misc.c qapi/qapi-commands-misc.h \
|
|
|
357786 |
qapi/qapi-commands-net.c qapi/qapi-commands-net.h \
|
|
|
357786 |
@@ -656,6 +664,7 @@ qapi/qapi-events-char.c qapi/qapi-events-char.h \
|
|
|
357786 |
qapi/qapi-events-common.c qapi/qapi-events-common.h \
|
|
|
357786 |
qapi/qapi-events-crypto.c qapi/qapi-events-crypto.h \
|
|
|
357786 |
qapi/qapi-events-introspect.c qapi/qapi-events-introspect.h \
|
|
|
357786 |
+qapi/qapi-events-job.c qapi/qapi-events-job.h \
|
|
|
357786 |
qapi/qapi-events-migration.c qapi/qapi-events-migration.h \
|
|
|
357786 |
qapi/qapi-events-misc.c qapi/qapi-events-misc.h \
|
|
|
357786 |
qapi/qapi-events-net.c qapi/qapi-events-net.h \
|
|
|
357786 |
diff --git a/Makefile.objs b/Makefile.objs
|
|
|
357786 |
index 92b73fc..3df8d58 100644
|
|
|
357786 |
--- a/Makefile.objs
|
|
|
357786 |
+++ b/Makefile.objs
|
|
|
357786 |
@@ -10,6 +10,7 @@ util-obj-y += qapi/qapi-types-char.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-common.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-crypto.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-introspect.o
|
|
|
357786 |
+util-obj-y += qapi/qapi-types-job.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-migration.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-misc.o
|
|
|
357786 |
util-obj-y += qapi/qapi-types-net.o
|
|
|
357786 |
@@ -28,6 +29,7 @@ util-obj-y += qapi/qapi-visit-char.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-common.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-crypto.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-introspect.o
|
|
|
357786 |
+util-obj-y += qapi/qapi-visit-job.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-migration.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-misc.o
|
|
|
357786 |
util-obj-y += qapi/qapi-visit-net.o
|
|
|
357786 |
@@ -45,6 +47,7 @@ util-obj-y += qapi/qapi-events-char.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-common.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-crypto.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-introspect.o
|
|
|
357786 |
+util-obj-y += qapi/qapi-events-job.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-migration.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-misc.o
|
|
|
357786 |
util-obj-y += qapi/qapi-events-net.o
|
|
|
357786 |
@@ -140,6 +143,7 @@ common-obj-y += qapi/qapi-commands-char.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-common.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-crypto.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-introspect.o
|
|
|
357786 |
+common-obj-y += qapi/qapi-commands-job.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-migration.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-misc.o
|
|
|
357786 |
common-obj-y += qapi/qapi-commands-net.o
|
|
|
357786 |
diff --git a/qapi/block-core.json b/qapi/block-core.json
|
|
|
357786 |
index 85bf353..67e613a 100644
|
|
|
357786 |
--- a/qapi/block-core.json
|
|
|
357786 |
+++ b/qapi/block-core.json
|
|
|
357786 |
@@ -6,6 +6,7 @@
|
|
|
357786 |
|
|
|
357786 |
{ 'include': 'common.json' }
|
|
|
357786 |
{ 'include': 'crypto.json' }
|
|
|
357786 |
+{ 'include': 'job.json' }
|
|
|
357786 |
{ 'include': 'sockets.json' }
|
|
|
357786 |
|
|
|
357786 |
##
|
|
|
357786 |
@@ -1050,95 +1051,6 @@
|
|
|
357786 |
'data': ['top', 'full', 'none', 'incremental'] }
|
|
|
357786 |
|
|
|
357786 |
##
|
|
|
357786 |
-# @JobType:
|
|
|
357786 |
-#
|
|
|
357786 |
-# Type of a background job.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @commit: block commit job type, see "block-commit"
|
|
|
357786 |
-#
|
|
|
357786 |
-# @stream: block stream job type, see "block-stream"
|
|
|
357786 |
-#
|
|
|
357786 |
-# @mirror: drive mirror job type, see "drive-mirror"
|
|
|
357786 |
-#
|
|
|
357786 |
-# @backup: drive backup job type, see "drive-backup"
|
|
|
357786 |
-#
|
|
|
357786 |
-# Since: 1.7
|
|
|
357786 |
-##
|
|
|
357786 |
-{ 'enum': 'JobType',
|
|
|
357786 |
- 'data': ['commit', 'stream', 'mirror', 'backup'] }
|
|
|
357786 |
-
|
|
|
357786 |
-##
|
|
|
357786 |
-# @JobVerb:
|
|
|
357786 |
-#
|
|
|
357786 |
-# Represents command verbs that can be applied to a job.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @cancel: see @block-job-cancel
|
|
|
357786 |
-#
|
|
|
357786 |
-# @pause: see @block-job-pause
|
|
|
357786 |
-#
|
|
|
357786 |
-# @resume: see @block-job-resume
|
|
|
357786 |
-#
|
|
|
357786 |
-# @set-speed: see @block-job-set-speed
|
|
|
357786 |
-#
|
|
|
357786 |
-# @complete: see @block-job-complete
|
|
|
357786 |
-#
|
|
|
357786 |
-# @dismiss: see @block-job-dismiss
|
|
|
357786 |
-#
|
|
|
357786 |
-# @finalize: see @block-job-finalize
|
|
|
357786 |
-#
|
|
|
357786 |
-# Since: 2.12
|
|
|
357786 |
-##
|
|
|
357786 |
-{ 'enum': 'JobVerb',
|
|
|
357786 |
- 'data': ['cancel', 'pause', 'resume', 'set-speed', 'complete', 'dismiss',
|
|
|
357786 |
- 'finalize' ] }
|
|
|
357786 |
-
|
|
|
357786 |
-##
|
|
|
357786 |
-# @JobStatus:
|
|
|
357786 |
-#
|
|
|
357786 |
-# Indicates the present state of a given job in its lifetime.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @undefined: Erroneous, default state. Should not ever be visible.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @created: The job has been created, but not yet started.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @running: The job is currently running.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @paused: The job is running, but paused. The pause may be requested by
|
|
|
357786 |
-# either the QMP user or by internal processes.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @ready: The job is running, but is ready for the user to signal completion.
|
|
|
357786 |
-# This is used for long-running jobs like mirror that are designed to
|
|
|
357786 |
-# run indefinitely.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @standby: The job is ready, but paused. This is nearly identical to @paused.
|
|
|
357786 |
-# The job may return to @ready or otherwise be canceled.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @waiting: The job is waiting for other jobs in the transaction to converge
|
|
|
357786 |
-# to the waiting state. This status will likely not be visible for
|
|
|
357786 |
-# the last job in a transaction.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @pending: The job has finished its work, but has finalization steps that it
|
|
|
357786 |
-# needs to make prior to completing. These changes may require
|
|
|
357786 |
-# manual intervention by the management process if manual was set
|
|
|
357786 |
-# to true. These changes may still fail.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @aborting: The job is in the process of being aborted, and will finish with
|
|
|
357786 |
-# an error. The job will afterwards report that it is @concluded.
|
|
|
357786 |
-# This status may not be visible to the management process.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @concluded: The job has finished all work. If manual was set to true, the job
|
|
|
357786 |
-# will remain in the query list until it is dismissed.
|
|
|
357786 |
-#
|
|
|
357786 |
-# @null: The job is in the process of being dismantled. This state should not
|
|
|
357786 |
-# ever be visible externally.
|
|
|
357786 |
-#
|
|
|
357786 |
-# Since: 2.12
|
|
|
357786 |
-##
|
|
|
357786 |
-{ 'enum': 'JobStatus',
|
|
|
357786 |
- 'data': ['undefined', 'created', 'running', 'paused', 'ready', 'standby',
|
|
|
357786 |
- 'waiting', 'pending', 'aborting', 'concluded', 'null' ] }
|
|
|
357786 |
-
|
|
|
357786 |
-##
|
|
|
357786 |
# @BlockJobInfo:
|
|
|
357786 |
#
|
|
|
357786 |
# Information about a long-running block device operation.
|
|
|
357786 |
diff --git a/qapi/job.json b/qapi/job.json
|
|
|
357786 |
new file mode 100644
|
|
|
357786 |
index 0000000..a472c0c
|
|
|
357786 |
--- /dev/null
|
|
|
357786 |
+++ b/qapi/job.json
|
|
|
357786 |
@@ -0,0 +1,94 @@
|
|
|
357786 |
+# -*- Mode: Python -*-
|
|
|
357786 |
+
|
|
|
357786 |
+##
|
|
|
357786 |
+# == Background jobs
|
|
|
357786 |
+##
|
|
|
357786 |
+
|
|
|
357786 |
+##
|
|
|
357786 |
+# @JobType:
|
|
|
357786 |
+#
|
|
|
357786 |
+# Type of a background job.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @commit: block commit job type, see "block-commit"
|
|
|
357786 |
+#
|
|
|
357786 |
+# @stream: block stream job type, see "block-stream"
|
|
|
357786 |
+#
|
|
|
357786 |
+# @mirror: drive mirror job type, see "drive-mirror"
|
|
|
357786 |
+#
|
|
|
357786 |
+# @backup: drive backup job type, see "drive-backup"
|
|
|
357786 |
+#
|
|
|
357786 |
+# Since: 1.7
|
|
|
357786 |
+##
|
|
|
357786 |
+{ 'enum': 'JobType',
|
|
|
357786 |
+ 'data': ['commit', 'stream', 'mirror', 'backup'] }
|
|
|
357786 |
+
|
|
|
357786 |
+##
|
|
|
357786 |
+# @JobStatus:
|
|
|
357786 |
+#
|
|
|
357786 |
+# Indicates the present state of a given job in its lifetime.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @undefined: Erroneous, default state. Should not ever be visible.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @created: The job has been created, but not yet started.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @running: The job is currently running.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @paused: The job is running, but paused. The pause may be requested by
|
|
|
357786 |
+# either the QMP user or by internal processes.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @ready: The job is running, but is ready for the user to signal completion.
|
|
|
357786 |
+# This is used for long-running jobs like mirror that are designed to
|
|
|
357786 |
+# run indefinitely.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @standby: The job is ready, but paused. This is nearly identical to @paused.
|
|
|
357786 |
+# The job may return to @ready or otherwise be canceled.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @waiting: The job is waiting for other jobs in the transaction to converge
|
|
|
357786 |
+# to the waiting state. This status will likely not be visible for
|
|
|
357786 |
+# the last job in a transaction.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @pending: The job has finished its work, but has finalization steps that it
|
|
|
357786 |
+# needs to make prior to completing. These changes may require
|
|
|
357786 |
+# manual intervention by the management process if manual was set
|
|
|
357786 |
+# to true. These changes may still fail.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @aborting: The job is in the process of being aborted, and will finish with
|
|
|
357786 |
+# an error. The job will afterwards report that it is @concluded.
|
|
|
357786 |
+# This status may not be visible to the management process.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @concluded: The job has finished all work. If manual was set to true, the job
|
|
|
357786 |
+# will remain in the query list until it is dismissed.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @null: The job is in the process of being dismantled. This state should not
|
|
|
357786 |
+# ever be visible externally.
|
|
|
357786 |
+#
|
|
|
357786 |
+# Since: 2.12
|
|
|
357786 |
+##
|
|
|
357786 |
+{ 'enum': 'JobStatus',
|
|
|
357786 |
+ 'data': ['undefined', 'created', 'running', 'paused', 'ready', 'standby',
|
|
|
357786 |
+ 'waiting', 'pending', 'aborting', 'concluded', 'null' ] }
|
|
|
357786 |
+
|
|
|
357786 |
+##
|
|
|
357786 |
+# @JobVerb:
|
|
|
357786 |
+#
|
|
|
357786 |
+# Represents command verbs that can be applied to a job.
|
|
|
357786 |
+#
|
|
|
357786 |
+# @cancel: see @block-job-cancel
|
|
|
357786 |
+#
|
|
|
357786 |
+# @pause: see @block-job-pause
|
|
|
357786 |
+#
|
|
|
357786 |
+# @resume: see @block-job-resume
|
|
|
357786 |
+#
|
|
|
357786 |
+# @set-speed: see @block-job-set-speed
|
|
|
357786 |
+#
|
|
|
357786 |
+# @complete: see @block-job-complete
|
|
|
357786 |
+#
|
|
|
357786 |
+# @dismiss: see @block-job-dismiss
|
|
|
357786 |
+#
|
|
|
357786 |
+# @finalize: see @block-job-finalize
|
|
|
357786 |
+#
|
|
|
357786 |
+# Since: 2.12
|
|
|
357786 |
+##
|
|
|
357786 |
+{ 'enum': 'JobVerb',
|
|
|
357786 |
+ 'data': ['cancel', 'pause', 'resume', 'set-speed', 'complete', 'dismiss',
|
|
|
357786 |
+ 'finalize' ] }
|
|
|
357786 |
diff --git a/qapi/qapi-schema.json b/qapi/qapi-schema.json
|
|
|
357786 |
index 25bce78..65b6dc2 100644
|
|
|
357786 |
--- a/qapi/qapi-schema.json
|
|
|
357786 |
+++ b/qapi/qapi-schema.json
|
|
|
357786 |
@@ -84,6 +84,7 @@
|
|
|
357786 |
{ 'include': 'crypto.json' }
|
|
|
357786 |
{ 'include': 'block.json' }
|
|
|
357786 |
{ 'include': 'char.json' }
|
|
|
357786 |
+{ 'include': 'job.json' }
|
|
|
357786 |
{ 'include': 'net.json' }
|
|
|
357786 |
{ 'include': 'rocker.json' }
|
|
|
357786 |
{ 'include': 'tpm.json' }
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|