Date: Thu, 16 Apr 2026 15:04:33 +0000 From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: d2c7300800d0 - stable/15 - Bhyve: Detect Extended Destination ID support Message-ID: <69e0fa81.1cb54.79e76e09@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=d2c7300800d01fb52c5280a746652cba34fe354a commit d2c7300800d01fb52c5280a746652cba34fe354a Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2026-02-22 04:09:00 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2026-04-16 15:04:00 +0000 Bhyve: Detect Extended Destination ID support Bhyve advertises support for the Extended Destination ID standard via bit 0 (aka CPUID_BHYVE_FEAT_EXT_DEST_ID) of the value returned in the EAX register when Bhyve features are queried via CPUID. MFC after: 3 weeks Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D55431 (cherry picked from commit 8dd9a0d52175fbc5dafed851fb95a289a94fb6cd) --- sys/x86/x86/local_apic.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c index 9bdf343886da..922809b38d78 100644 --- a/sys/x86/x86/local_apic.c +++ b/sys/x86/x86/local_apic.c @@ -74,6 +74,7 @@ #include <x86/init.h> #include <x86/kvm.h> #include <contrib/xen/arch-x86/cpuid.h> +#include <x86/bhyve.h> #ifdef DDB #include <sys/interrupt.h> @@ -2092,6 +2093,13 @@ detect_extended_dest_id(void) if (regs[0] & KVM_FEATURE_MSI_EXT_DEST_ID) apic_ext_dest_id = 1; break; + case VM_GUEST_BHYVE: + if (hv_high < CPUID_BHYVE_FEATURES) + break; + cpuid_count(CPUID_BHYVE_FEATURES, 0, regs); + if (regs[0] & CPUID_BHYVE_FEAT_EXT_DEST_ID) + apic_ext_dest_id = 1; + break; } }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e0fa81.1cb54.79e76e09>
