aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2024-01-09 15:22:27 +0000
committerAndrew Turner <andrew@FreeBSD.org>2024-02-21 18:55:32 +0000
commit47e073941f4e7ca6e9bde3fa65abbfcfed6bfa2b (patch)
tree12952882180198ce097077e4b86efa2440229635 /sys/modules/Makefile
parent0f4071978e3dae6637d4988212661164115f6be8 (diff)
Import the kernel parts of bhyve/arm64
To support virtual machines on arm64 add the vmm code. This is based on earlier work by Mihai Carabas and Alexandru Elisei at University Politehnica of Bucharest, with further work by myself and Mark Johnston. All AArch64 CPUs should work, however only the GICv3 interrupt controller is supported. There is initial support to allow the GICv2 to be supported in the future. Only pure Armv8.0 virtualisation is supported, the Virtualization Host Extensions are not currently used. With a separate userspace patch and U-Boot port FreeBSD guests are able to boot to multiuser mode, and the hypervisor can be tested with the kvm unit tests. Linux partially boots, but hangs before entering userspace. Other operating systems are untested. Sponsored by: Arm Ltd Sponsored by: Innovate UK Sponsored by: The FreeBSD Foundation Sponsored by: University Politehnica of Bucharest Differential Revision: https://reviews.freebsd.org/D37428
Diffstat (limited to 'sys/modules/Makefile')
-rw-r--r--sys/modules/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 606ab4cb0536..dcd9e25b1cb3 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -841,7 +841,9 @@ _sgx= sgx
_sgx_linux= sgx_linux
_smartpqi= smartpqi
_p2sb= p2sb
+.endif
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
.if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
.if ${KERN_OPTS:MSMP}
_vmm= vmm