From 1da48c658a26d0c1444d05d8d3a545d311e01026 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 26 Feb 2013 16:21:11 +0100 Subject: chardev: add memory (ringbuf) support to qapi This patch adds 'memory' support to qapi and also switches over the memory chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'qapi-schema.json') diff --git a/qapi-schema.json b/qapi-schema.json index 4ee5650293..8d371f178d 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3247,6 +3247,17 @@ '*cols' : 'int', '*rows' : 'int' } } +## +# @ChardevRingbuf: +# +# Configuration info for memory chardevs +# +# @size: #optional Ringbuffer size, must be power of two, default is 65536 +# +# Since: 1.5 +## +{ 'type': 'ChardevRingbuf', 'data': { '*size' : 'int' } } + ## # @ChardevBackend: # @@ -3270,7 +3281,8 @@ 'console': 'ChardevDummy', 'spicevmc' : 'ChardevSpiceChannel', 'spiceport' : 'ChardevSpicePort', - 'vc' : 'ChardevVC' } } + 'vc' : 'ChardevVC', + 'memory' : 'ChardevRingbuf' } } ## # @ChardevReturn: -- cgit v1.2.1