From: "William K. Bittner" <wkbittne@us.ibm.com>
To: qemu-devel@nongnu.org
Cc: "William K. Bittner" <wkbittne@us.ibm.com>,
Anthony Liguori <aliguori@us.ibm.com>,
JV <jvrao@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH] Added legacy 9P2000 support back into QEMU
Date: Wed, 15 Jun 2011 12:20:49 -0500 [thread overview]
Message-ID: <1308158449-15735-1-git-send-email-wkbittne@us.ibm.com> (raw)
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
reply other threads:[~2011-06-15 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308158449-15735-1-git-send-email-wkbittne@us.ibm.com \
--to=wkbittne@us.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=jvrao@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).