aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/virtio-9p.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-06-08 12:15:43 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-06-08 12:15:43 -0500
commit93e0597ef9fa266756c30e61fafe4b70fc7ce6a6 (patch)
treeb1dcd7925329853ac5284bc2c12ebecdfa44fa34 /hw/9pfs/virtio-9p.h
parentac779fe2334ebea5d4a365b053d786f7748a1db5 (diff)
parent5c3234c6c037943bd4c2d643a1b8cc35f563dbdb (diff)
downloadqemu-93e0597ef9fa266756c30e61fafe4b70fc7ce6a6.zip
qemu-93e0597ef9fa266756c30e61fafe4b70fc7ce6a6.tar.gz
qemu-93e0597ef9fa266756c30e61fafe4b70fc7ce6a6.tar.bz2
Merge remote-tracking branch 'jvrao/for-anthony' into staging
Diffstat (limited to 'hw/9pfs/virtio-9p.h')
-rw-r--r--hw/9pfs/virtio-9p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h
index 622928f..2bfbe62 100644
--- a/hw/9pfs/virtio-9p.h
+++ b/hw/9pfs/virtio-9p.h
@@ -101,6 +101,11 @@ enum p9_proto_version {
#define P9_NOTAG (u16)(~0)
#define P9_NOFID (u32)(~0)
#define P9_MAXWELEM 16
+static inline const char *rpath(FsContext *ctx, const char *path, char *buffer)
+{
+ snprintf(buffer, PATH_MAX, "%s/%s", ctx->fs_root, path);
+ return buffer;
+}
/*
* ample room for Twrite/Rread header
@@ -504,4 +509,6 @@ static inline size_t do_pdu_unpack(void *dst, struct iovec *sg, int sg_count,
return pdu_packunpack(dst, sg, sg_count, offset, size, 0);
}
+extern void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq);
+
#endif