summaryrefslogtreecommitdiffstats
path: root/hw/9pfs/virtio-9p-proxy.h
diff options
context:
space:
mode:
authorM. Mohan Kumar2011-12-14 09:28:42 +0100
committerAneesh Kumar K.V2012-01-04 15:44:02 +0100
commit17bff52b6225419931703aa04cc454c16cf5adad (patch)
tree5dcfe6546f0d21ff44877652e87a02e90f1f7a91 /hw/9pfs/virtio-9p-proxy.h
parenthw/9pfs: Add new proxy filesystem driver (diff)
downloadqemu-17bff52b6225419931703aa04cc454c16cf5adad.tar.gz
qemu-17bff52b6225419931703aa04cc454c16cf5adad.tar.xz
qemu-17bff52b6225419931703aa04cc454c16cf5adad.zip
hw/9pfs: File system helper process for qemu 9p proxy FS
Provide root privilege access to QEMU 9p proxy filesystem using socket communication. Proxy helper is started by root user as: ~ # virtfs-proxy-helper -f|--fd <socket descriptor> -p|--path <path-to-share> Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/virtio-9p-proxy.h')
-rw-r--r--hw/9pfs/virtio-9p-proxy.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p-proxy.h b/hw/9pfs/virtio-9p-proxy.h
index 2d60b0ecd9..97c5574de6 100644
--- a/hw/9pfs/virtio-9p-proxy.h
+++ b/hw/9pfs/virtio-9p-proxy.h
@@ -14,6 +14,15 @@
#define PROXY_MAX_IO_SZ (64 * 1024)
+/*
+ * proxy iovec only support one element and
+ * marsha/unmarshal doesn't do little endian conversion.
+ */
+#define proxy_unmarshal(in_sg, offset, fmt, args...) \
+ v9fs_unmarshal(in_sg, 1, offset, 0, fmt, ##args)
+#define proxy_marshal(out_sg, offset, fmt, args...) \
+ v9fs_marshal(out_sg, 1, offset, 0, fmt, ##args)
+
typedef struct {
uint32_t type;
uint32_t size;