* [Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU
@ 2011-06-15 17:20 William K. Bittner
0 siblings, 0 replies; only message in thread
From: William K. Bittner @ 2011-06-15 17:20 UTC (permalink / raw)
To: qemu-devel; +Cc: William K. Bittner, Anthony Liguori, JV
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 <wkbittne@us.ibm.com>
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-15 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 17:20 [Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU William K. Bittner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).