diff options
author | Greg Kurz <groug@kaod.org> | 2017-06-29 15:11:51 +0200 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2017-06-29 15:11:51 +0200 |
commit | 8d37de41cab145cbba250a8f1f1372b0a5cdf26f (patch) | |
tree | 2206cde2c48908eeffd1263b30def0eac85306cf /hw/9pfs/xen-9p-backend.c | |
parent | a4d99854505ed63f5ea67fbfefb90316472cf158 (diff) | |
download | qemu-8d37de41cab145cbba250a8f1f1372b0a5cdf26f.zip qemu-8d37de41cab145cbba250a8f1f1372b0a5cdf26f.tar.gz qemu-8d37de41cab145cbba250a8f1f1372b0a5cdf26f.tar.bz2 |
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>
Diffstat (limited to 'hw/9pfs/xen-9p-backend.c')
-rw-r--r-- | hw/9pfs/xen-9p-backend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-backend.c index 922cc96..a82cf81 100644 --- a/hw/9pfs/xen-9p-backend.c +++ b/hw/9pfs/xen-9p-backend.c @@ -147,7 +147,8 @@ static ssize_t xen_9pfs_pdu_vunmarshal(V9fsPDU *pdu, static void xen_9pfs_init_out_iov_from_pdu(V9fsPDU *pdu, struct iovec **piov, - unsigned int *pniov) + unsigned int *pniov, + size_t size) { Xen9pfsDev *xen_9pfs = container_of(pdu->s, Xen9pfsDev, state); Xen9pfsRing *ring = &xen_9pfs->rings[pdu->tag % xen_9pfs->num_rings]; |