]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cpu: Detect FreeBSD Bhyve hypervisor
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 16 Aug 2025 10:06:32 +0000 (11:06 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 15 Sep 2025 12:06:44 +0000 (14:06 +0200)
commitfa1d117162aa820a8f73a31ccab85bde6c84725b
tree9ada1e6de56b109b9f30d0769bd41fc6fdef491e
parentf83ec76bf285bea5727f478a68b894f5543ca76e
x86/cpu: Detect FreeBSD Bhyve hypervisor

Detect the Bhyve hypervisor and enable 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

  [ bp: Massage, move tail comment ontop. ]

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Ahmed S. Darwish <darwi@linutronix.de>
Link: https://lore.kernel.org/03802f6f7f5b5cf8c5e8adfe123c397ca8e21093.camel@infradead.org
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