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 9A618C0015E for ; Tue, 1 Aug 2023 06:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231866AbjHAGmF (ORCPT ); Tue, 1 Aug 2023 02:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbjHAGlz (ORCPT ); Tue, 1 Aug 2023 02:41:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1822108 for ; Mon, 31 Jul 2023 23:41:47 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690872105; 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=EBmFkPqdo0aoTqt5xpuNYhr8rIxwQXREZDwVW4ghi7A=; b=uzM3+h7FIIWrT0bR6Ry7DlQPN0wY7/RCrFczwOLs1doln2n841WCpcrQCrhD64STWPPhpI iy0mhMl8dCHNjH7K0/SUkFxleJlFj28x/hJaBs11X3yuAPNTnhFx1BRu+cucG06a9AZ693 tqvTRxCb5VTflr1BYHI+oJ0PwBBPm4zlZ2GtI96SLSXRzuYCg6uUVKSbNDaH1N0gqTXnfL AagP1aev5GbDMSR0whWpKpUVMZFwJ8EBxVd8/bWiqm2ON31n5JLe91nLEQDCXN8jrHSbys fJ1LtwwG2E8T3XE+ek7S6PEi2tZUuax1EcEAXgTCTmuRlGCWthx+QDG23hwoVg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690872105; 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=EBmFkPqdo0aoTqt5xpuNYhr8rIxwQXREZDwVW4ghi7A=; b=HsLkurgmYEixfFvyupoR/PvAD2XFNGzHKi1I4WyQGOW9rHpG3o9vWXnQI9kSAnwZzxruon 7wLU+8YLw0QQHMCg== 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: <87pm48nktc.ffs@tglx> References: <20230724131206.500814398@linutronix.de> <20230724132047.554355840@linutronix.de> <87v8e0nskd.ffs@tglx> <87pm48nktc.ffs@tglx> Date: Tue, 01 Aug 2023 08:41:45 +0200 Message-ID: <87v8dzl0wm.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 17:48, Thomas Gleixner wrote: > 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. Doesn't work because XEN overrides it already. So sure, lets just go with the solution you proposed. One more ugly or less in XEN/PV does not really matter much :) Let me grab this and put it into the right position in the queue. Thanks, tglx