Stefano Stabellini 45ddce214a xen/pvcalls: implement sendmsg
Send data to an active socket by copying data to the "out" ring. Take
the active socket out_mutex so that only one function can access the
ring at any given time.

If not enough room is available on the ring, rather than returning
immediately or sleep-waiting, spin for up to 5000 cycles. This small
optimization turns out to improve performance significantly.

Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2017-10-31 09:05:53 -04:00
..
2017-09-07 10:24:21 -07:00
2015-12-21 14:40:55 +00:00
2017-08-15 10:32:49 -04:00
2017-05-02 12:06:50 +02:00
2017-09-07 10:24:21 -07:00
2017-07-06 19:11:24 -07:00
2015-12-21 14:40:55 +00:00
2017-10-31 09:05:53 -04:00
2017-10-31 09:05:53 -04:00
2017-06-05 16:59:12 +02:00