xen/pvcalls: implement read
authorStefano Stabellini <sstabellini@kernel.org>
Thu, 6 Jul 2017 18:01:08 +0000 (11:01 -0700)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 31 Aug 2017 13:45:55 +0000 (09:45 -0400)
commitb3f9f773af1f925b35f73f5e946bd96728b96cca
treea619600316e6737d2fd03edaee498f48fa9ec138
parent5d520d8580b31d75a115ac58ab0a804b92581fd5
xen/pvcalls: implement read

When an active socket has data available, increment the io and read
counters, and schedule the ioworker.

Implement the read function by reading from the socket, writing the data
to the data ring.

Set in_error on error.

Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-back.c