aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/9p.h
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-06-29 15:11:51 +0200
committerGreg Kurz <groug@kaod.org>2017-06-29 15:11:51 +0200
commit8d37de41cab145cbba250a8f1f1372b0a5cdf26f (patch)
tree2206cde2c48908eeffd1263b30def0eac85306cf /hw/9pfs/9p.h
parenta4d99854505ed63f5ea67fbfefb90316472cf158 (diff)
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/9p.h')
-rw-r--r--hw/9pfs/9p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
index aac1b0b2ce..d1cfeaf10e 100644
--- a/hw/9pfs/9p.h
+++ b/hw/9pfs/9p.h
@@ -363,7 +363,7 @@ struct V9fsTransport {
void (*init_in_iov_from_pdu)(V9fsPDU *pdu, struct iovec **piov,
unsigned int *pniov, size_t size);
void (*init_out_iov_from_pdu)(V9fsPDU *pdu, struct iovec **piov,
- unsigned int *pniov);
+ unsigned int *pniov, size_t size);
void (*push_and_notify)(V9fsPDU *pdu);
};