xen/pvcalls: implement read
authorStefano Stabellini <[email protected]>
Thu, 6 Jul 2017 18:01:08 +0000 (11:01 -0700)
committerBoris Ostrovsky <[email protected]>
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 <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
CC: [email protected]
CC: [email protected]
Signed-off-by: Boris Ostrovsky <[email protected]>
drivers/xen/pvcalls-back.c