]> Git Repo - qemu.git/commit
xen-9pfs: disconnect if buffers are misconfigured
authorStefano Stabellini <[email protected]>
Thu, 29 Jun 2017 13:11:51 +0000 (15:11 +0200)
committerGreg Kurz <[email protected]>
Thu, 29 Jun 2017 13:11:51 +0000 (15:11 +0200)
commite08d1e11ed40b93e62ae8973159e6c1a306cd70e
treec22c2c8e9347ddac81671f4cdc960c353931b350
parent8d37de41cab145cbba250a8f1f1372b0a5cdf26f
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: Stefano Stabellini <[email protected]>
Signed-off-by: Greg Kurz <[email protected]>
hw/9pfs/xen-9p-backend.c
This page took 0.024521 seconds and 4 git commands to generate.