xen: add basic hypervisor filesystem support
authorJuergen Gross <jgross@suse.com>
Fri, 29 May 2020 08:15:50 +0000 (10:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 May 2020 08:15:50 +0000 (10:15 +0200)
commit5b5ccafb0c425b85a60fd4f241d5f6951d0e4928
tree243998090844773926fc4ea2ba3a5c8bc92d7751
parent0e9dcd0159c671608e154da5b8b7e0edd2905067
xen: add basic hypervisor filesystem support

Add the infrastructure for the hypervisor filesystem.

This includes the hypercall interface and the base functions for
entry creation, deletion and modification.

In order not to have to repeat the same pattern multiple times in case
adding a new node should BUG_ON() failure, the helpers for adding a
node (hypfs_add_dir() and hypfs_add_leaf()) get a nofault parameter
causing the BUG() in case of a failure.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
19 files changed:
tools/flask/policy/modules/dom0.te
xen/arch/arm/traps.c
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/hypercall.c
xen/arch/x86/pv/hypercall.c
xen/common/Kconfig
xen/common/Makefile
xen/common/hypfs.c [new file with mode: 0644]
xen/include/Makefile
xen/include/public/hypfs.h [new file with mode: 0644]
xen/include/public/xen.h
xen/include/xen/hypercall.h
xen/include/xen/hypfs.h [new file with mode: 0644]
xen/include/xlat.lst
xen/include/xsm/dummy.h
xen/include/xsm/xsm.h
xen/xsm/dummy.c
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors