On 06/19/2013 09:40 PM, Anthony Liguori wrote: > It is very useful to use the ringbuf chardev for writing test > cases and even more useful if the state of the ringbuf is migrated > with the guest. Otherwise it's hard to detect data loss in a test > case. > > Signed-off-by: Anthony Liguori <aligu...@us.ibm.com> > --- > qapi-schema.json | 3 ++- > qemu-char.c | 45 +++++++++++++++++++++++++++++++++++++++++++-- > 2 files changed, 45 insertions(+), 3 deletions(-) > > diff --git a/qapi-schema.json b/qapi-schema.json > index a80ee40..90602d1 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -3280,10 +3280,11 @@ > # Configuration info for memory chardevs > # > # @size: #optional Ringbuffer size, must be power of two, default is 65536 > +# @save: #optional Register a savevm handler, default false
Useful to have a '(since 1.6)' notation on the added field. > # > # Since: 1.5 > ## > -{ 'type': 'ChardevMemory', 'data': { '*size' : 'int' } } > +{ 'type': 'ChardevMemory', 'data': { '*size' : 'int', '*save': 'bool' } } Yet another case for introspection discovering an added feature to an existing command. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature