On 10/25/2012 01:48 PM, Lei Li wrote: > Signed-off-by: Lei Li <li...@linux.vnet.ibm.com> > --- > qemu-char.c | 136 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qemu-config.c | 3 + > qemu-options.hx | 10 ++++ > 3 files changed, 149 insertions(+), 0 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index b082bae..45d2a86 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -99,6 +99,7 @@ > #include "ui/qemu-spice.h" > > #define READ_BUF_LEN 4096 > +#define CBUFF_SIZE 65536 > > /***********************************************************/ > /* character device */ > @@ -2588,6 +2589,130 @@ size_t qemu_chr_mem_osize(const CharDriverState *chr) > return d->outbuf_size; > } > > +/*********************************************************/ > +/*CircularMemoryr chardev*/
s/CircularMemoryr/CircularMemory/ This typo was pointed out to you in v4; makes me wonder what else you missed while preparing v5. > @@ -1824,6 +1826,14 @@ the console, in pixels. > @option{cols} and @option{rows} specify that the console be sized to fit a > text > console with the given dimensions. > > +@item -chardev memchr ,id=@var{id} ,maxcapacity=@var{maxcapacity} > + > +Create a circular buffer with fixed size indicated by optionally > @option{maxcapacity} > +which will be default 64K if it is not given. > + > +@option{maxcapacity} specify the max capacity of the size of circular buffer > +want to create. Should be power of 2. s/specify/specifies/ s/want// -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature