qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU


From: William K. Bittner
Subject: [Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU
Date: Wed, 15 Jun 2011 12:20:49 -0500

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 <address@hidden>

diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c
index b5fc52b..febfba2 100644
--- a/hw/9pfs/virtio-9p.c
+++ b/hw/9pfs/virtio-9p.c
@@ -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");
     }
diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h
index 622928f..c5b5229 100644
--- a/hw/9pfs/virtio-9p.h
+++ b/hw/9pfs/virtio-9p.h
@@ -94,6 +94,7 @@ enum {
 };
 
 enum p9_proto_version {
+    V9FS_PROTO_2000  = 0x00,
     V9FS_PROTO_2000U = 0x01,
     V9FS_PROTO_2000L = 0x02,
 };
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]