diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2011-12-14 13:49:28 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-01-04 20:13:39 +0530 |
commit | 4c793dda22213a7aba8e4d9a814e8f368a5f8bf7 (patch) | |
tree | 8e74ae998bb6e9edcc1376f9c9464d3fa7d4744d /hw/9pfs/virtio-9p-proxy.h | |
parent | ddca7f86ac022289840e0200fd4050b2b58e9176 (diff) |
hw/9pfs: Add new proxy filesystem driver
Add new proxy filesystem driver to add root privilege to qemu process.
It needs a helper process to be started by root user.
Following command line can be used to utilize proxy filesystem driver
-virtfs proxy,id=<id>,mount_tag=<tag>,socket_fd=<socket-fd>
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.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p-proxy.h b/hw/9pfs/virtio-9p-proxy.h new file mode 100644 index 0000000000..2d60b0ecd9 --- /dev/null +++ b/hw/9pfs/virtio-9p-proxy.h @@ -0,0 +1,24 @@ +/* + * Virtio 9p Proxy callback + * + * Copyright IBM, Corp. 2011 + * + * Authors: + * M. Mohan Kumar <mohan@in.ibm.com> + * + * This work is licensed under the terms of the GNU GPL, version 2. See + * the COPYING file in the top-level directory. + */ +#ifndef _QEMU_VIRTIO_9P_PROXY_H +#define _QEMU_VIRTIO_9P_PROXY_H + +#define PROXY_MAX_IO_SZ (64 * 1024) + +typedef struct { + uint32_t type; + uint32_t size; +} ProxyHeader; + +#define PROXY_HDR_SZ (sizeof(ProxyHeader)) + +#endif |