From: Christian Schoenebeck <[email protected]> Add a new callback 'msize_limit' to the V9fsTransport structure.
This allows each transport implementation to provide its theoretical maximum 'msize' value, which will be used to cap the negotiated msize during Tversion handshake. Link: https://lore.kernel.org/qemu-devel/7c4e53eb73c0580d7a321dbf3823ba5647652298.1781287774.git.qemu_...@crudebyte.com Signed-off-by: Christian Schoenebeck <[email protected]> (cherry picked from commit a1c0e5a73740566d4b9eac1f97f78b8ce470116a) Signed-off-by: Michael Tokarev <[email protected]> diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h index b2df659b0e8..d8f364fafdb 100644 --- a/hw/9pfs/9p.h +++ b/hw/9pfs/9p.h @@ -481,6 +481,7 @@ struct V9fsTransport { void (*init_out_iov_from_pdu)(V9fsPDU *pdu, struct iovec **piov, unsigned int *pniov, size_t size); void (*push_and_notify)(V9fsPDU *pdu); + size_t (*msize_limit)(V9fsState *s); }; #endif -- 2.47.3
