]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/bhyve: Detect FreeBSD Bhyve hypervisor
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 11 Aug 2025 10:48:11 +0000 (11:48 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 18 Aug 2025 09:48:45 +0000 (10:48 +0100)
commit33bea49c1d0e09a512fccc862a2f8249cc3fdc57
tree45c36f81daf1f69d0718631359ea08f211f52d67
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
x86/bhyve: Detect FreeBSD Bhyve hypervisor

This detects the Bhyve hypervisor and enables 15-bit MSI support if
available.

Detecting Bhyve used to be a purely cosmetic issue, of the kernel printing
'Hypervisor detected: Bhyve' at boot time.

But FreeBSD 15.0 will support¹ the 15-bit MSI enlightenment to support
more than 255 vCPUs (http://david.woodhou.se/ExtDestId.pdf) which means
there's now actually some functional reason to do so.

¹ https://github.com/freebsd/freebsd-src/commit/313a68ea20b4

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Acked-by: Ahmed S. Darwish <darwi@linutronix.de>
arch/x86/Kconfig
arch/x86/include/asm/hypervisor.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/bhyve.c [new file with mode: 0644]
arch/x86/kernel/cpu/hypervisor.c