mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-03 00:07:36 +00:00

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>
25 lines
467 B
C
25 lines
467 B
C
/*
|
|
* 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
|