virtio-9p: break device if buffers are misconfigured
authorGreg Kurz <groug@kaod.org>
Thu, 29 Jun 2017 13:11:51 +0000 (15:11 +0200)
committerGreg Kurz <groug@kaod.org>
Thu, 29 Jun 2017 13:11:51 +0000 (15:11 +0200)
commit8d37de41cab145cbba250a8f1f1372b0a5cdf26f
tree2206cde2c48908eeffd1263b30def0eac85306cf
parenta4d99854505ed63f5ea67fbfefb90316472cf158
virtio-9p: break device if buffers are misconfigured

The 9P protocol is transport agnostic: if the guest misconfigured the
buffers, the best we can do is to set the broken flag on the device.

Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c
hw/9pfs/9p.h
hw/9pfs/virtio-9p-device.c
hw/9pfs/xen-9p-backend.c