@samitouri / QOSamiQemu / commits / a1c0e5a737

hw/9pfs: add msize_limit transport callback

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_oss@crudebyte.com Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>

Christian Schoenebeck committed Jun 12, 2026 at 20:22 UTC a1c0e5a73740566d4b9eac1f97f78b8ce470116a
1 file changed +1
hw/9pfs/9p.h
+1
@@ -481,6 +481,7 @@ struct V9fsTransport {
481 void (*init_out_iov_from_pdu)(V9fsPDU *pdu, struct iovec **piov,
482 unsigned int *pniov, size_t size);
483 void (*push_and_notify)(V9fsPDU *pdu);
484 + size_t (*msize_limit)(V9fsState *s);
485 };
486
487 #endif