From nobody Thu Apr 16 15:04:30 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fxLrt5sZNz6ZpD7 for ; Thu, 16 Apr 2026 15:04:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fxLrt37vDz4Hx2 for ; Thu, 16 Apr 2026 15:04:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776351870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dXJUNAqJicINFaHqExLyAGcDJfOjmlvdp9himdz75wU=; b=D4ATyGDvQygoGBFMYkTcbkTMKHp6D0vkyNlVDTghZ7DDqFZdI3Icn+U2MQFmq4GBgabd2e obB9Ky4Sw7N2BXTS84bQ9dTcO8/mrG30ERLiBYojxydnAun/KQ/gQAV1jfHwmkaBpMoS2g BYgcZEdnff9HxyLvTJKH5nqI1fgs+cKqLGyml/24BbZKAxsAoPdw4V+EBPMU7UdykxPD11 ylvDf70YSVkKmQhgugcnEAW+8wQlQD+zsAd9K7DKvn4vL+1fDd4I659MNKQIrtz56/55ac TKluDRMgGfR0ANA4RrwMyg3MUNDXtKxK1Qiiw8tZjyF5SAeDuAFMYvbxRyxBEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776351870; a=rsa-sha256; cv=none; b=CVVq4x0PTz/J1d0node7k3htA5sAg6XvVHNvrFHiAjPHJOLcBIiCJXtza1hAXjWbIgG2Vd xK2BryuyBxvRQtwes8rDuDKN8lBawM2PufG6Q02xhucWfNpwrdAnJCvU/4aTGS85o/cz8E IvF/DQ5VQxhjQdp1HACLw9BTzsXM0DdP06kPAny5STyObPjy9zPpB77HGM8D6XUKPGheeJ +04eAAWyzTIUAjJT6BWTLv6fALPJGf1iCbfYojb3MuiAtlaeXSTxSA3+lZXHLBNAyoXsdk GPMFn+2FE7nXHGWau2qvx7KrFUvNFdoXcFUjK9sT/bE301qXSlz0yjx6/PVlUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776351870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dXJUNAqJicINFaHqExLyAGcDJfOjmlvdp9himdz75wU=; b=pDWk8vwdLzx91R8zhMtNME4qvcKRt3R+Gy3mTPkIgLdzrnzo15kIv6m6vgKMWxoCeTgVBW Oe1ZrRw5GjmhLIcsNINFgYjCGFtsOZkNcMrAJS8i2GFOpicK4FHgReb7kIp+TBnZUq/0O1 ZCcib0APdwYrlIdfF4Hx1BP45tLBPY46dL+i4pu5wWsmfSoRpz4LZNf/j0fR/pJ7xXtYzt M6jcUh9lfBKG7gX69q88HvTPBnCzKx046pBPdsQkzhFLo/v3owQQ8GizsEOsplQ+f32sef p0AhlGofqMxAYCuJindLP5HcNSuTgHFrovXl0ET63kbS4KebcPfVDKO3ToDJ5A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fxLrt2Zx1z1BSq for ; Thu, 16 Apr 2026 15:04:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e284 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 16 Apr 2026 15:04:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Roger Pau =?utf-8?Q?Monn=C3=A9?= From: Colin Percival Subject: git: b54646e37a2b - stable/15 - x86/cpuid: add CPUID flag for Extended Destination ID support List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: b54646e37a2b65025151e04a5c4a3b3c23e0202c Auto-Submitted: auto-generated Date: Thu, 16 Apr 2026 15:04:30 +0000 Message-Id: <69e0fa7e.1e284.666e342c@gitrepo.freebsd.org> The branch stable/15 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=b54646e37a2b65025151e04a5c4a3b3c23e0202c commit b54646e37a2b65025151e04a5c4a3b3c23e0202c Author: Roger Pau Monné AuthorDate: 2022-02-18 08:17:47 +0000 Commit: Colin Percival CommitDate: 2026-04-16 15:03:59 +0000 x86/cpuid: add CPUID flag for Extended Destination ID support Introduce the CPUID flag to be used in order to signal the support for using an extended destination ID in IO-APIC RTEs and MSI address fields. Such format expands the maximum target APIC ID from 255 to 32768 without requiring the usage of interrupt remapping. The design document describing the feature can be found at: http://david.woodhou.se/15-bit-msi.pdf Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich (cherry picked from commit 8c986d1645312487adf21a9104d667ac1e19c25f) --- sys/contrib/xen/arch-x86/cpuid.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/contrib/xen/arch-x86/cpuid.h b/sys/contrib/xen/arch-x86/cpuid.h index ce46305bee99..f2b2b3632c2d 100644 --- a/sys/contrib/xen/arch-x86/cpuid.h +++ b/sys/contrib/xen/arch-x86/cpuid.h @@ -102,6 +102,13 @@ #define XEN_HVM_CPUID_IOMMU_MAPPINGS (1u << 2) #define XEN_HVM_CPUID_VCPU_ID_PRESENT (1u << 3) /* vcpu id is present in EBX */ #define XEN_HVM_CPUID_DOMID_PRESENT (1u << 4) /* domid is present in ECX */ +/* + * With interrupt format set to 0 (non-remappable) bits 55:49 from the + * IO-APIC RTE and bits 11:5 from the MSI address can be used to store + * high bits for the Destination ID. This expands the Destination ID + * field from 8 to 15 bits, allowing to target APIC IDs up 32768. + */ +#define XEN_HVM_CPUID_EXT_DEST_ID (1u << 5) /* * Leaf 6 (0x40000x05)