OSDN Git Service

xen/pvcalls: implement write
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)
commit5ad9918ffc4157f239f2e7849b4987d3b20f917e
tree6c2a8dc4e33440b1375960a81b62fd715c3f1941
parentb3f9f773af1f925b35f73f5e946bd96728b96cca
xen/pvcalls: implement write

When the other end notifies us that there is data to be written
(pvcalls_back_conn_event), increment the io and write counters, and
schedule the ioworker.

Implement the write function called by ioworker by reading the data from
the data ring, writing it to the socket by calling inet_sendmsg.

Set out_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