summaryrefslogtreecommitdiffstats
path: root/hw/virtio-9p.h
diff options
context:
space:
mode:
authorM. Mohan Kumar <mohan@in.ibm.com>2010-05-27 13:57:29 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-09-08 22:56:38 +0530
commit84151514e488c70caa2c2c0ca10c76156c3b4e14 (patch)
tree63ab652759f884457325fd800061c79f0b5a604e /hw/virtio-9p.h
parentba5e7f82169f32ab8163c707d97c799ca09f8924 (diff)
downloadhqemu-84151514e488c70caa2c2c0ca10c76156c3b4e14.zip
hqemu-84151514e488c70caa2c2c0ca10c76156c3b4e14.tar.gz
qemu: virtio-9p: Recognize 9P2000.L protocol
Make 9P server recognize 9P2000.L protocol version Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Diffstat (limited to 'hw/virtio-9p.h')
-rw-r--r--hw/virtio-9p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/virtio-9p.h b/hw/virtio-9p.h
index 67f8087..9286f59 100644
--- a/hw/virtio-9p.h
+++ b/hw/virtio-9p.h
@@ -57,6 +57,11 @@ enum {
P9_QTFILE = 0x00,
};
+enum p9_proto_version {
+ V9FS_PROTO_2000U = 0x01,
+ V9FS_PROTO_2000L = 0x02,
+};
+
#define P9_NOTAG (u16)(~0)
#define P9_NOFID (u32)(~0)
#define P9_MAXWELEM 16
@@ -144,6 +149,7 @@ typedef struct V9fsState
uint16_t tag_len;
uint8_t *tag;
size_t config_size;
+ enum p9_proto_version proto_version;
} V9fsState;
typedef struct V9fsCreateState {
OpenPOWER on IntegriCloud