opnsense-src/sys
Mark Johnston ddd241d221 vmm: Deduplicate VM and vCPU state management code
Now that the machine-independent fields of struct vm and struct vcpu are
available in a header, we can move lots of duplicated code into
sys/dev/vmm/vmm_vm.c.  This change does exactly that.

No functional change intended.

MFC after:	2 months
Sponsored by:	The FreeBSD Foundation
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D53585

(cherry picked from commit ed85203fb7a0334041db6da07e45ddda4caef13d)
2026-03-31 15:57:29 +00:00
..
amd64 vmm: Deduplicate VM and vCPU state management code 2026-03-31 15:57:29 +00:00
arm arm/broadcom: Fix a typo in a source code comment 2026-02-22 13:09:38 +01:00
arm64 vmm: Deduplicate VM and vCPU state management code 2026-03-31 15:57:29 +00:00
bsm sys: add AUE_PDRFORK 2026-02-01 23:38:48 +02:00
cam style(9): white space after ; and around binary operators 2026-02-05 22:52:32 +01:00
cddl dtrace: Implement ustackdepth for arm64 2026-03-31 15:57:28 +00:00
compat compat/linux: Avoid waitid() kernel stack disclosure 2026-03-20 09:36:36 -04:00
conf snd_dummy: Add to sys/conf/files and sys/conf/NOTES 2026-03-31 11:54:35 +02:00
contrib MFC: MFV: zlib 1.3.2. 2026-03-26 23:22:02 -07:00
crypto OpenSSL: commit sys/crypto changes for 3.5.5 2026-02-21 20:34:23 -08:00
ddb
dev vmm: Deduplicate VM and vCPU state management code 2026-03-31 15:57:29 +00:00
dts
fs nullfs: Fix handling of doomed vnodes in nullfs_unlink_lowervp() 2026-03-31 15:57:29 +00:00
gdb
geom
gnu
i386 x86: change signatures of ipi_{bitmap,swi}_handler() to take pointer 2026-03-10 13:41:31 +02:00
isa isa_common: allow multiple device instances 2026-03-04 21:57:46 +08:00
kern pipe: Avoid unnecessary priv_check() calls in pipespace_new() 2026-03-31 15:57:29 +00:00
kgssapi
libkern libkern: Use proper prototype for SYSINIT functions 2026-02-01 01:01:04 +08:00
modules vmm: Deduplicate VM and vCPU state management code 2026-03-31 15:57:29 +00:00
net if_types: Fix a typo in a source code comment 2026-03-30 13:26:19 +02:00
net80211 net80211: fix VHT160/80P80/80 chanwidth selection in the "40-" case 2026-03-11 16:53:24 +00:00
netgraph bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY 2026-01-30 18:30:10 +02:00
netinet divert: Use a better source identifier for netisr_queue_src() calls 2026-03-31 15:57:29 +00:00
netinet6 ip_mroute: Make the routing socket private 2026-03-31 15:57:28 +00:00
netipsec ipsec_offload: add comment stating why ipsec_accel_sa_newkey_cb() returns 0 2026-03-04 03:15:59 +02:00
netlink rtnetlink: Add support for nexthop expiration in new/get route 2026-03-26 12:42:10 +03:30
netpfil pf: Pass v6 packets to the divert socket 2026-03-31 15:57:27 +00:00
netsmb
nfs nfs: Use proper prototype for SYSINIT functions 2026-02-01 01:01:06 +08:00
nfsclient
nfsserver
nlm
ofed ofed: Fix a typo in a source code comment 2026-03-30 13:26:38 +02:00
opencrypto
powerpc sdt: Enable on 32-bit powerpc and powerpc64le 2026-02-16 13:42:10 +00:00
riscv vmm: Deduplicate VM and vCPU state management code 2026-03-31 15:57:29 +00:00
rpc rpc: Improve socket locking in svc_vc_accept() 2026-03-31 15:57:27 +00:00
security MAC/do: Comments: Rephrase one, fix a typo in another 2026-03-30 11:36:07 +02:00
sys vmm: Allow the use of PCI passthrough in a jail 2026-03-31 15:57:29 +00:00
teken vt: Fix handling of backtab 2026-02-23 09:22:55 -05:00
tests
tools sound: Retire unused emu10k1-mkalsa.sh 2026-03-31 11:54:44 +02:00
ufs renameat2(2): implement AT_RENAME_NOREPLACE flag 2026-03-10 13:41:31 +02:00
vm Provide more precise error explanations for mmap(2) EINVAL errors. 2026-03-25 22:43:25 -07:00
x86 amd64: revert back struct trapframe to the pre-FRED definition 2026-03-27 01:42:57 +02:00
xdr
xen sys/xen: Use __printflike() instead of format(printf) 2026-01-04 02:46:49 +01:00
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures