Added legacy 9P2000 support back into QEMU
PATCH 1/1 Added legacy 9P2000 support back into QEMU
It was tested with v9fs in the guest by using: sudo mount -t 9p -o trans=virtio,version=9p2000 v_boot /pmnt
Signed-off-by William K. Bittner <[email protected]>
hw/9pfs/virtio-9p.c +2 -0
@@ -1186,6 +1186,8 @@ static void v9fs_version(V9fsState *s, V9fsPDU *pdu) s->proto_version =V9FS_PROTO_2000U ; }else if (!strcmp (version.data,"9P2000.L" )) { s->proto_version =V9FS_PROTO_2000L ; + }else if (!strcmp (version.data,"9P2000" )) { + s->proto_version =V9FS_PROTO_2000 ; }else {v9fs_string_sprintf (&version,"unknown" ); }
hw/9pfs/virtio-9p.h +1 -0
@@ -94,6 +94,7 @@ enum { };enum p9_proto_version { +V9FS_PROTO_2000 =0x00 ,V9FS_PROTO_2000U =0x01 ,V9FS_PROTO_2000L =0x02 , };
Signature · 1 line
1.7.4.1