Skip to contentSkip to conversation

Added legacy 9P2000 support back into QEMU

PATCH New William K. Bittner 1 participant 1 message Jun 15, 2011

lore
Share & tools
lore
#0 lore raw

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

hw/9pfs/virtio-9p.c +2 -0
index b5fc52b..febfba2 100644
@@ -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
index 622928f..c5b5229 100644
@@ -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