Re: [Xen-devel] [PATCH] libxl/xl: add support for Xen 9pfs
On Mon, 27 Mar 2017, Stefano Stabellini wrote: > On Mon, 27 Mar 2017, Wei Liu wrote: > > On Thu, Mar 23, 2017 at 04:36:19PM -0700, Stefano Stabellini wrote: > > > docs/man/xl.cfg.pod.5.in | 31 + > > > tools/libxl/Makefile | 2 +- > > > tools/libxl/libxl.h | 10 + > > > tools/libxl/libxl_9pfs.c | 87 > > > > > > tools/libxl/libxl_create.c | 3 ++ > > > tools/libxl/libxl_internal.h | 6 +++ > > > tools/libxl/libxl_types.idl | 10 + > > > tools/libxl/libxl_types_internal.idl | 1 + > > > tools/xl/xl_parse.c | 55 ++- > > > 9 files changed, 203 insertions(+), 2 deletions(-) > > > create mode 100644 tools/libxl/libxl_9pfs.c > > > > > > diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in > > > index 505c111..699a644 100644 > > > --- a/docs/man/xl.cfg.pod.5.in > > > +++ b/docs/man/xl.cfg.pod.5.in > > > @@ -516,6 +516,37 @@ value is optional if this is a guest domain. > > > > > > =back > > > > > > +=item
Re: [Xen-devel] [PATCH] libxl/xl: add support for Xen 9pfs
On Mon, 27 Mar 2017, Wei Liu wrote: > On Thu, Mar 23, 2017 at 04:36:19PM -0700, Stefano Stabellini wrote: > > docs/man/xl.cfg.pod.5.in | 31 + > > tools/libxl/Makefile | 2 +- > > tools/libxl/libxl.h | 10 + > > tools/libxl/libxl_9pfs.c | 87 > > > > tools/libxl/libxl_create.c | 3 ++ > > tools/libxl/libxl_internal.h | 6 +++ > > tools/libxl/libxl_types.idl | 10 + > > tools/libxl/libxl_types_internal.idl | 1 + > > tools/xl/xl_parse.c | 55 ++- > > 9 files changed, 203 insertions(+), 2 deletions(-) > > create mode 100644 tools/libxl/libxl_9pfs.c > > > > diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in > > index 505c111..699a644 100644 > > --- a/docs/man/xl.cfg.pod.5.in > > +++ b/docs/man/xl.cfg.pod.5.in > > @@ -516,6 +516,37 @@ value is optional if this is a guest domain. > > > > =back > > > > +=item
Re: [Xen-devel] [PATCH] libxl/xl: add support for Xen 9pfs
On Thu, Mar 23, 2017 at 04:36:19PM -0700, Stefano Stabellini wrote: > docs/man/xl.cfg.pod.5.in | 31 + > tools/libxl/Makefile | 2 +- > tools/libxl/libxl.h | 10 + > tools/libxl/libxl_9pfs.c | 87 > > tools/libxl/libxl_create.c | 3 ++ > tools/libxl/libxl_internal.h | 6 +++ > tools/libxl/libxl_types.idl | 10 + > tools/libxl/libxl_types_internal.idl | 1 + > tools/xl/xl_parse.c | 55 ++- > 9 files changed, 203 insertions(+), 2 deletions(-) > create mode 100644 tools/libxl/libxl_9pfs.c > > diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in > index 505c111..699a644 100644 > --- a/docs/man/xl.cfg.pod.5.in > +++ b/docs/man/xl.cfg.pod.5.in > @@ -516,6 +516,37 @@ value is optional if this is a guest domain. > > =back > > +=item
Re: [Xen-devel] [PATCH] libxl/xl: add support for Xen 9pfs
On 03/23/2017 05:36 PM, Stefano Stabellini wrote: Add functions to libxl to setup a Xen 9pfs frontend/backend connection. Add support to xl to parse a xen_9pfs option in the VM config file, in the following format: xen_9pfs=["tag=share_dir,security_model=none,path=/path/share_dir"] where tag identifies the 9p share and it is required to mount it on the guest side, path is the path of the filesystem to share and the only security_model supported is "none" which means that files are stored using the same credentials as they are created on the guest (no user ownership squash or remap). FYI, similar libvirt config: So security_model == accessmode. The docs for accessmode: - The filesystem block has an optional attribute accessmode which specifies the security mode for accessing the source (since 0.8.5). Currently this only works with type='mount' for the QEMU/KVM driver. The possible values are: passthrough The source is accessed with the permissions of the user inside the guest. This is the default accessmode if one is not specified. mapped The source is accessed with the permissions of the hypervisor (QEMU process). squash Similar to 'passthrough', the exception is that failure of privileged operations like 'chown' are ignored. This makes a passthrough-like mode usable for people who run the hypervisor as non-root. - Regards, Jim ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel
[Xen-devel] [PATCH] libxl/xl: add support for Xen 9pfs
Add functions to libxl to setup a Xen 9pfs frontend/backend connection. Add support to xl to parse a xen_9pfs option in the VM config file, in the following format: xen_9pfs=["tag=share_dir,security_model=none,path=/path/share_dir"] where tag identifies the 9p share and it is required to mount it on the guest side, path is the path of the filesystem to share and the only security_model supported is "none" which means that files are stored using the same credentials as they are created on the guest (no user ownership squash or remap). Signed-off-by: Stefano StabelliniCC: wei.l...@citrix.com CC: ian.jack...@eu.citrix.com --- docs/man/xl.cfg.pod.5.in | 31 + tools/libxl/Makefile | 2 +- tools/libxl/libxl.h | 10 + tools/libxl/libxl_9pfs.c | 87 tools/libxl/libxl_create.c | 3 ++ tools/libxl/libxl_internal.h | 6 +++ tools/libxl/libxl_types.idl | 10 + tools/libxl/libxl_types_internal.idl | 1 + tools/xl/xl_parse.c | 55 ++- 9 files changed, 203 insertions(+), 2 deletions(-) create mode 100644 tools/libxl/libxl_9pfs.c diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in index 505c111..699a644 100644 --- a/docs/man/xl.cfg.pod.5.in +++ b/docs/man/xl.cfg.pod.5.in @@ -516,6 +516,37 @@ value is optional if this is a guest domain. =back +=item