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 9BF57C001DE for ; Sun, 23 Jul 2023 12:32:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230143AbjGWMcX (ORCPT ); Sun, 23 Jul 2023 08:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjGWMcQ (ORCPT ); Sun, 23 Jul 2023 08:32:16 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D47C4 for ; Sun, 23 Jul 2023 05:32:15 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690115533; 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=LlxPcacsL4aIT5BrUbojBctYLsVxzNajJmYLpnonv1E=; b=t6cYa/jwJ0GIQsOmaX+zgLHfougTOLub3zzT5qDk1VqsuZtJxemInE3fu7Z8wpn2OhHWxd XM+1dM4BBdWiNq4IwQUEDSRh1mqDeljqwhFX/IvFMzGcjIOucJ/z9oR3yX8cCaiftqzdEs pryaIwmKo1+VQRR9rdVmBHJR6WlnlhGcv48ZE7DZRRXDhkCuolvJaMUCAEDoc34H2VUbBA KNRrDSTPsv9Uzv+vnkHPqAUPJxNeEIJi0oRm7NAIaz1udtZLHFxVe+iHlp/XsNGX3YxcKK DDlQ6hqmGh1UrvxAeJ7M3WaXScQ1LKKkwr1z4IxX5h0CXZ9RCRVQleZE9o/JXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690115533; 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=LlxPcacsL4aIT5BrUbojBctYLsVxzNajJmYLpnonv1E=; b=GRi9fQZhXp6P8k3WKbaOwMGs7X52ahnC/bxEx/cToeT4wdqj7blUNQ0Yi/PSeI/vZ2eXN9 eX98eHmak+C6c9AQ== To: "Michael Kelley (LINUX)" , LKML Cc: "x86@kernel.org" , Linus Torvalds , Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross Subject: RE: [patch 53/58] x86/apic: Convert other overrides to apic_update_callback() In-Reply-To: References: <20230717223049.327865981@linutronix.de> <20230717223226.237896259@linutronix.de> Date: Sun, 23 Jul 2023 14:32:12 +0200 Message-ID: <87edkyvmer.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 21 2023 at 17:49, Michael Kelley wrote: >> --- a/arch/x86/kernel/kvm.c >> +++ b/arch/x86/kernel/kvm.c >> @@ -624,8 +624,8 @@ late_initcall(setup_efi_kvm_sev_migratio >> */ >> static void kvm_setup_pv_ipi(void) >> { >> - apic->send_IPI_mask = kvm_send_ipi_mask; >> - apic->send_IPI_mask_allbutself = kvm_send_ipi_mask_allbutself; >> + apic_update_callback(send_IPI_mask, kvm_send_ipi_mask); >> + apic_update_callback(send_IPI_mask_allbutself, >> kvm_send_ipi_mask_allbutself); >> pr_info("setup PV IPIs\n"); >> } >> >> --- a/arch/x86/kernel/sev.c >> +++ b/arch/x86/kernel/sev.c >> @@ -1099,7 +1099,7 @@ void snp_set_wakeup_secondary_cpu(void) >> * required method to start APs under SNP. If the hypervisor does >> * not support AP creation, then no APs will be started. >> */ >> - apic->wakeup_secondary_cpu = wakeup_cpu_via_vmgexit; >> + apic_update_callback(wakeup_secondary_cpu, wakeup_cpu_via_vmgexit); > > I'm getting a build warning from the above: > > section mismatch in reference: snp_set_wakeup_secondary_cpu+0x35 (section: .text) -> __x86_apic_override (section: .init.data) snp_set_wakeup_secondary_cpu() wants to be __init. So does kvm_setup_pv_ipi(). Sigh.