freebsd-src/sys/conf
Doug Rabson e97ad33a89 Add an implementation of the 9P filesystem
This is derived from swills@ fork of the Juniper virtfs with many
changes by me including bug fixes, style improvements, clearer layering
and more consistent logging. The filesystem is renamed to p9fs to better
reflect its function and to prevent possible future confusion with
virtio-fs.

Several updates and fixes from Juniper have been integrated into this
version by Val Packett and these contributions along with the original
Juniper authors are credited below.

To use this with bhyve, add 'virtio_p9fs_load=YES' to loader.conf. The
bhyve virtio-9p device allows access from the guest to files on the host
by mapping a 'sharename' to a host path. It is possible to use p9fs as a
root filesystem by adding this to /boot/loader.conf:

	vfs.root.mountfrom="p9fs:sharename"

for non-root filesystems add something like this to /etc/fstab:

	sharename /mnt p9fs rw 0 0

In both examples, substitute the share name used on the bhyve command
line.

The 9P filesystem protocol relies on stateful file opens which map
protocol-level FIDs to host file descriptors. The FreeBSD vnode
interface doesn't really support this and we use heuristics to guess the
right FID to use for file operations.  This can be confused by privilege
lowering and does not guarantee that the FID created for a given file
open is always used for file operations, even if the calling process is
using the file descriptor from the original open call. Improving this
would involve changes to the vnode interface which is out-of-scope for
this import.

Differential Revision: https://reviews.freebsd.org/D41844
Reviewed by: kib, emaste, dch
MFC after: 3 months
Co-authored-by: Val Packett <val@packett.cool>
Co-authored-by: Ka Ho Ng <kahon@juniper.net>
Co-authored-by: joyu <joyul@juniper.net>
Co-authored-by: Kumara Babu Narayanaswamy <bkumara@juniper.net>
2024-06-19 13:12:04 +01:00
..
config.mk Revert "config.mk: Add MK_VIMAGE knob" 2024-04-25 22:43:36 +01:00
dtb.build.mk
dtb.mk
files Add an implementation of the 9P filesystem 2024-06-19 13:12:04 +01:00
files.amd64 Hyper-V: TLB flush enlightment using hypercall 2024-06-07 07:56:07 +00:00
files.arm Remove the arm FIQ support 2024-06-10 15:16:10 +00:00
files.arm64 arm64: Support BTI checking in most of the kernel 2024-06-05 09:23:40 +00:00
files.i386 files.x86: Pull in some more duplicate lines from files.{amd64,i386} 2024-04-12 14:35:45 -07:00
files.powerpc
files.riscv riscv: Move sigcode out of locore.S 2024-06-04 20:18:05 -03:00
files.x86 x86/iommu: extract useful utilities into x86_iommu.c 2024-05-25 08:32:01 +03:00
kern.mk arm64: Disable outling atomics 2024-06-05 09:23:40 +00:00
kern.opts.mk Revert "config.mk: Add MK_VIMAGE knob" 2024-04-25 22:43:36 +01:00
kern.post.mk
kern.pre.mk Fix bnxt build in LINT 2024-05-29 09:49:53 -06:00
kmod.mk kmod.mk use ${XARGS} 2024-05-10 12:05:05 -07:00
kmod.opts.mk
kmod_syms.awk
kmod_syms_prefix.awk
ldscript.amd64
ldscript.arm
ldscript.arm64
ldscript.i386
ldscript.kmod.amd64
ldscript.kmod.i386
ldscript.powerpc
ldscript.powerpc64
ldscript.powerpc64le
ldscript.powerpcspe
ldscript.riscv
Makefile.amd64
Makefile.arm
Makefile.arm64 sys: Build arm64 per-thread SSP with GCC 2024-05-22 08:20:01 +00:00
Makefile.i386
Makefile.powerpc
Makefile.riscv
newvers.sh
NOTES snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver. 2024-05-09 19:36:40 +01:00
options Add an implementation of the 9P filesystem 2024-06-19 13:12:04 +01:00
options.amd64
options.arm
options.arm64
options.i386 i386: Use DEV_HYPERV to enable HyperV APIC vector 2024-04-13 19:10:44 -07:00
options.powerpc
options.riscv
std.debug sys: add conf/std.debug, generic debugging options 2024-04-23 15:13:31 -06:00
std.nodebug
sysent.mk
systags.sh
vdso_amd64.ldscript
vdso_amd64_ia32.ldscript
WITHOUT_SOURCELESS
WITHOUT_SOURCELESS_HOST
WITHOUT_SOURCELESS_UCODE