|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH XTF v3] Implement pv_read_some
On 20/07/17 09:09, Felix Schmoll wrote: Implement reading from PV console. Making use of polling. Signed-off-by: Felix Schmoll <eggi.innovations@xxxxxxxxx> --- Changed since v2: * Change function name from pv_read to pv_read_some * Add comment to function name * Remove unnecessary code --- common/console.c | 24 ++++++++++++++++++++++++ include/xtf/console.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/common/console.c b/common/console.c index 7cb2361..1b79652 100644 --- a/common/console.c +++ b/common/console.c @@ -46,6 +46,30 @@ static size_t pv_console_write_some(const char *buf, size_t len) }/*+ * Read out data from the pv ring, either until buffer is filled or no + * more data are available. Might result in partial strings, depending + * on how xenconsoled passes in data. Much better. Just one final question. Do you intend this function to block until data becomes available? (because that appears to be how it behaves.) ~Andrew
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |