Re: [RFC v2 3/5] vhost/vsock: add support for vhost dgram.

2021-09-14 Thread Michael S. Tsirkin
On Tue, Sep 14, 2021 at 05:54:36AM +, Jiang Wang wrote: > This patch supports dgram on vhost side, including > tx and rx. The vhost send packets asynchronously. how exactly is fairness ensured? what prevents one socket from monopolizing the device? spec proposal seems to leave it to the

[RFC v2 3/5] vhost/vsock: add support for vhost dgram.

2021-09-13 Thread Jiang Wang
This patch supports dgram on vhost side, including tx and rx. The vhost send packets asynchronously. Also, ignore vq errors when vq number is larger than 2, so it will be comptaible with old versions. Signed-off-by: Jiang Wang --- drivers/vhost/vsock.c | 217