Skip to content
Commit e08d1e11 authored by Stefano Stabellini's avatar Stefano Stabellini Committed by Greg Kurz
Browse files

xen-9pfs: disconnect if buffers are misconfigured



Implement xen_9pfs_disconnect by unbinding the event channels. On
xen_9pfs_free, call disconnect if any event channels haven't been
disconnected.

If the frontend misconfigured the buffers set the backend to "Closing"
and disconnect it. Misconfigurations include requesting a read of more
bytes than available on the ring buffer, or claiming to be writing more
data than available on the ring buffer.

Signed-off-by: default avatarStefano Stabellini <stefano@aporeto.com>
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent 8d37de41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment