All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qapi: add support for blkreplay driver
@ 2019-10-16  8:40 Pavel Dovgalyuk
  2019-10-16  9:00 ` Kevin Wolf
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Dovgalyuk @ 2019-10-16  8:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, armbru, mreitz, dovgaluk, pavel.dovgaluk, pbonzini

This patch adds support for blkreplay driver to the blockdev options.
Now blkreplay can be used with -blockdev command line option
in the following format:
-blockdev driver=blkreplay,image=file-node-name,node-name=replay-node-name

This option makes possible implementation of the better command
line support for record/replay invocations.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
---
 qapi/block-core.json |   18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/qapi/block-core.json b/qapi/block-core.json
index b2f446122c..a371989924 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2893,12 +2893,13 @@
 # @nvme: Since 2.12
 # @copy-on-read: Since 3.0
 # @blklogwrites: Since 3.0
+# @blkreplay: Since 4.2
 #
 # Since: 2.9
 ##
 { 'enum': 'BlockdevDriver',
-  'data': [ 'blkdebug', 'blklogwrites', 'blkverify', 'bochs', 'cloop',
-            'copy-on-read', 'dmg', 'file', 'ftp', 'ftps', 'gluster',
+  'data': [ 'blkdebug', 'blklogwrites', 'blkreplay', 'blkverify', 'bochs',
+            'cloop', 'copy-on-read', 'dmg', 'file', 'ftp', 'ftps', 'gluster',
             'host_cdrom', 'host_device', 'http', 'https', 'iscsi', 'luks',
             'nbd', 'nfs', 'null-aio', 'null-co', 'nvme', 'parallels', 'qcow',
             'qcow2', 'qed', 'quorum', 'raw', 'rbd',
@@ -3511,6 +3512,18 @@
   'data': { 'test': 'BlockdevRef',
             'raw': 'BlockdevRef' } }
 
+##
+# @BlockdevOptionsBlkreplay:
+#
+# Driver specific block device options for blkreplay.
+#
+# @image:     disk image which should be controlled with blkreplay
+#
+# Since: 4.2
+##
+{ 'struct': 'BlockdevOptionsBlkreplay',
+  'data': { 'image': 'BlockdevRef' } }
+
 ##
 # @QuorumReadPattern:
 #
@@ -4038,6 +4051,7 @@
       'blkdebug':   'BlockdevOptionsBlkdebug',
       'blklogwrites':'BlockdevOptionsBlklogwrites',
       'blkverify':  'BlockdevOptionsBlkverify',
+      'blkreplay':  'BlockdevOptionsBlkreplay',
       'bochs':      'BlockdevOptionsGenericFormat',
       'cloop':      'BlockdevOptionsGenericFormat',
       'copy-on-read':'BlockdevOptionsGenericFormat',



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qapi: add support for blkreplay driver
  2019-10-16  8:40 [PATCH] qapi: add support for blkreplay driver Pavel Dovgalyuk
@ 2019-10-16  9:00 ` Kevin Wolf
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2019-10-16  9:00 UTC (permalink / raw)
  To: Pavel Dovgalyuk
  Cc: armbru, qemu-devel, mreitz, dovgaluk, pavel.dovgaluk, pbonzini

Am 16.10.2019 um 10:40 hat Pavel Dovgalyuk geschrieben:
> This patch adds support for blkreplay driver to the blockdev options.
> Now blkreplay can be used with -blockdev command line option
> in the following format:
> -blockdev driver=blkreplay,image=file-node-name,node-name=replay-node-name
> 
> This option makes possible implementation of the better command
> line support for record/replay invocations.
> 
> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>

Thanks, applied to the block branch.

Kevin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-16  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16  8:40 [PATCH] qapi: add support for blkreplay driver Pavel Dovgalyuk
2019-10-16  9:00 ` Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.