tools/xenconsoled: Possibly perform repeated xc_readconsolering() hypercalls
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Jul 2014 16:17:15 +0000 (17:17 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Jul 2014 15:23:19 +0000 (16:23 +0100)
commit63a04d97a01936bff5388947f1348ac144b64101
tree6b9b75acc5aa65c7cad29a592fd7069b07ac0058
parent743803911c8d2fd49f01693de4d01e5053d8bf48
tools/xenconsoled: Possibly perform repeated xc_readconsolering() hypercalls

The size of the Xen console ring is runtime configurable, so the statically
sized 16k buffer is not necessarily sufficient.  Make repeated
xc_readconsolering() hypercalls while Xen managed to completely fill the
provided buffer.

Also, change the buffer to being static to save on stack space.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/console/daemon/io.c