From mboxrd@z Thu Jan 1 00:00:00 1970 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 66B1AC001DE for ; Mon, 31 Jul 2023 15:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232766AbjGaPtG (ORCPT ); Mon, 31 Jul 2023 11:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjGaPsw (ORCPT ); Mon, 31 Jul 2023 11:48:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D64188 for ; Mon, 31 Jul 2023 08:48:49 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690818528; 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: in-reply-to:in-reply-to:references:references; bh=Bdw1u0UgivtOuM/ZUVOI9YZuGeR4kVBk9GgPaRb/C2Q=; b=BVnC/4BVp3sAm48kQYtjVlICmRUND4lsCAkiZ4O+nSe8rrMCspC030IbSt/YtOFGTH6hCe oiu9PtPH1PjRUCNfJ3EKI406XjI6ulSxE7BDYsWK+466Fa3t6pBHib2Jc9a+zSLjNtaI1o czQddf9i+4N9CboJf5Gd1qJBS4ijhc/d4MvD+3KPuoBL8Hsa+5Um3mTs7PFxNXNECNhxVd jUnx3hSFZlPCntmQ+afft4Rtkry7AeYEvORfNzcikjgw6rx3pVX6+2ichOL+NWsZgLdwH+ Ivko6eFTHe/IgkvGI1AW5bouP9isY90XTmGHvXjUZ2+zULsdxvKo1/FeHfP9qw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690818528; 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: in-reply-to:in-reply-to:references:references; bh=Bdw1u0UgivtOuM/ZUVOI9YZuGeR4kVBk9GgPaRb/C2Q=; b=Ve/yiMrGO8T2J+Jgy8Qe+F+DIBaJH5YHHl24EEylR65GHiPgWiX1HdS4A3nnqCaJcRJppJ 2DXfpvKNhV8+2bCQ== To: Juergen Gross , LKML Cc: x86@kernel.org, Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Michael Kelley , Peter Keresztes Schmidt , "Peter Zijlstra (Intel)" Subject: Re: [patch V2 50/58] x86/apic: Provide common init infrastructure In-Reply-To: References: <20230724131206.500814398@linutronix.de> <20230724132047.554355840@linutronix.de> <87v8e0nskd.ffs@tglx> Date: Mon, 31 Jul 2023 17:48:47 +0200 Message-ID: <87pm48nktc.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31 2023 at 15:10, Juergen Gross wrote: > On 31.07.23 15:01, Thomas Gleixner wrote: >>> apic_driver(xen_pv_apic); >> >> I wonder whether this explicit install is actually needed at all. >> Shouldn't the driver be installed via the APIC probing mechanism >> automagically? > > Only in case x86_init.irq.intr_mode_init is set appropriately. Today it is > a nop for Xen PV, but that can be changed. I'll have a look. You could simply set that callback to default_setup_apic_routing() and be done with it.