From nobody Sun Feb 8 14:31:36 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30F56C0015E for ; Wed, 9 Aug 2023 20:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234604AbjHIUgU (ORCPT ); Wed, 9 Aug 2023 16:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234476AbjHIUgI (ORCPT ); Wed, 9 Aug 2023 16:36:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FBDC210D; Wed, 9 Aug 2023 13:36:07 -0700 (PDT) Date: Wed, 09 Aug 2023 20:36:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691613366; h=from:from:sender:sender:reply-to: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=HqQREe5s5t0jawKfWIjoBUzhTBBvOGOobL6oF/1tVUs=; b=FtQkt73nX7mVe4Em0Dk/Hn0DS6Ui0JQIemvAOAyHlv4C1T8WFzbZ7vdMvOUJro0i46rdEL yyuyEdKPPDHIIKzvCbOtcWEtUk+RKvfL/EJkCXzBn3KjlZmu8D+sJrAno52LaXgjz20vLy mgrWMsOPV2DyC5WnoxilIjQiQpHkEZP31J912z3RsQvHlAvnzdCCBjocXRREA+N6q6zqpH nYNHp1M/jhwhiCFeC5t1tS8duyBYnAKCieLP+6Yb0z1UoYjdJlF9P7l+0CA94RlTnrngzc g4BVQ8lgiZ9JZhIftBho+Wj0iMlt+eP4aOkGpD4brVeU4Ac3miek8SxVIGnrNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691613366; h=from:from:sender:sender:reply-to: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=HqQREe5s5t0jawKfWIjoBUzhTBBvOGOobL6oF/1tVUs=; b=PBpyYsXr9KtTZIgntOR9qiATEd4zJtxsTp0ixEkaKPA8iwrmrGjP+a65f39bt48WAxrDCB 3k4G1CQAdrpGVqCg== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/xen/apic: Mark apic __ro_after_init Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169161336571.27769.15995204331486892801.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: ac72b92d8cec9ee96f15301a4d5a3dd455c0a7cf Gitweb: https://git.kernel.org/tip/ac72b92d8cec9ee96f15301a4d5a3dd45= 5c0a7cf Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:04:21 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 12:00:46 -07:00 x86/xen/apic: Mark apic __ro_after_init Nothing can change it post init. Remove the 32bit callbacks and comments as XENPV is strictly 64bit. While at it mop up the whitespace damage which causes eyebleed due to an editor which is highlighting it. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) Cc: Juergen Gross --- arch/x86/xen/apic.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index 315ffd8..7ad9122 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c @@ -123,43 +123,41 @@ static int xen_cpu_present_to_apicid(int cpu) return BAD_APICID; } =20 -static struct apic xen_pv_apic =3D { - .name =3D "Xen PV", - .probe =3D xen_apic_probe_pv, +static struct apic xen_pv_apic __ro_after_init =3D { + .name =3D "Xen PV", + .probe =3D xen_apic_probe_pv, .acpi_madt_oem_check =3D xen_madt_oem_check, =20 /* .delivery_mode and .dest_mode_logical not used by XENPV */ =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D default_check_apicid_used, /* Used on 32-bit */ - .ioapic_phys_id_map =3D default_ioapic_phys_id_map, /* Used on 32-bit */ .cpu_present_to_apicid =3D xen_cpu_present_to_apicid, .phys_pkg_id =3D xen_phys_pkg_id, /* detect_ht */ =20 .max_apic_id =3D UINT_MAX, - .get_apic_id =3D xen_get_apic_id, - .set_apic_id =3D xen_set_apic_id, /* Can be NULL on 32-bit. */ + .get_apic_id =3D xen_get_apic_id, + .set_apic_id =3D xen_set_apic_id, =20 .calc_dest_apicid =3D apic_flat_calc_apicid, =20 #ifdef CONFIG_SMP - .send_IPI_mask =3D xen_send_IPI_mask, - .send_IPI_mask_allbutself =3D xen_send_IPI_mask_allbutself, - .send_IPI_allbutself =3D xen_send_IPI_allbutself, - .send_IPI_all =3D xen_send_IPI_all, - .send_IPI_self =3D xen_send_IPI_self, + .send_IPI_mask =3D xen_send_IPI_mask, + .send_IPI_mask_allbutself =3D xen_send_IPI_mask_allbutself, + .send_IPI_allbutself =3D xen_send_IPI_allbutself, + .send_IPI_all =3D xen_send_IPI_all, + .send_IPI_self =3D xen_send_IPI_self, #endif .read =3D xen_apic_read, .write =3D xen_apic_write, .eoi =3D xen_apic_eoi, =20 - .icr_read =3D xen_apic_icr_read, - .icr_write =3D xen_apic_icr_write, + .icr_read =3D xen_apic_icr_read, + .icr_write =3D xen_apic_icr_write, }; +apic_driver(xen_pv_apic); =20 void __init xen_init_apic(void) { x86_apic_ops.io_apic_read =3D xen_io_apic_read; } -apic_driver(xen_pv_apic);