From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out28-73.mail.aliyun.com (out28-73.mail.aliyun.com [115.124.28.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A6B61F3B85 for ; Fri, 23 Jan 2026 03:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769137480; cv=none; b=VA+r6/3odq38XbNnc6xEzptF0NfFIw5J8fEGI59MXOFOColOHTyT/AkEyXxuonf5WD4xhROtDXGSwRaFGql/h7qtaJ/CL3FXqR/tHCfUcyjBoF7fr6T6RqVb6mgPn7USj4q2pr6WTMRmRwTujKzCC2t0MYnqMvhx4wzyTvzqv3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769137480; c=relaxed/simple; bh=0/lrCLV5jUQsgn1Vh6VxUW2D9UxqSCcNQ1BlqFHxJwE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dzFcQOtvDAfDwwisgvGUNjlKbaufxb8pHJobeuYWB8Gy7FcWAYA2oux5qaR/M8DM9+7fPC0LKmLB/iNUywKq4DUaZ6tOei730lw51xS5yYjRlMzRuLXSyeTG6TFFBlIkXKexWC1p+Lup5cJG00cnWtijdhYcdOoQIKCgMJJ0BHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=WPpnOHJx; arc=none smtp.client-ip=115.124.28.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="WPpnOHJx" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1769137472; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; bh=z7QKQEit5IiI9wEnKzSXeZlrU6DLi2VCu28yIrU4sWs=; b=WPpnOHJxYtgibyltrLSi6QtyT8lfwb2kh8p2uLoBMLL8vV5intlt5Ru1lARhFoB0BtfzEYelLG0Pi3fjNG+RUiyZz4yGpyvU3FziymVcOOnJJWh6twdbPX415ibI1/ZjuU5G3YvpSGH5lfMg6AARjaPJCUGYSAdyIfKux+bls4I= Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.gDSnk6b_1769137470 cluster:ay29) by smtp.aliyun-inc.com; Fri, 23 Jan 2026 11:04:30 +0800 Date: Fri, 23 Jan 2026 11:04:30 +0800 From: Hou Wenlong To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Juergen Gross , Boris Ostrovsky , Peter Zijlstra , "Rafael J. Wysocki" , K Prateek Nayak , Li Chen , Brian Gerst , Sohil Mehta , Tim Chen , Patryk Wlazlyn , Eric Dumazet , xen-devel@lists.xenproject.org Subject: Re: [PATCH 1/2] x86/smp: Move the static call update for 'smp_ops' into smp_prepare_boot_cpu() Message-ID: <20260123030430.GA75451@k08j02272.eu95sqa> References: <20260122142156.GEaXIyhNQeGvOR5yyu@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260122142156.GEaXIyhNQeGvOR5yyu@fat_crate.local> User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Jan 22, 2026 at 03:21:56PM +0100, Borislav Petkov wrote: > On Thu, Jan 22, 2026 at 10:15:43PM +0800, Hou Wenlong wrote: > > The commit 1f60230cdc63 ("x86/smp: Use static_call for > > arch_send_call_function_ipi()") changed to use a static call for > > arch_send_call_function_ipi(), which causes two problems: > > > > First, the KVM guest also changes 'smp_ops.send_call_func_ipi' when the > > PV sched yield feature is available. However, the missing > > static_call_update() breaks the PV sched yield feature. > > > > Additionally, xen_smp_init() is called before static_call_init() during > > the booting of the XENPV guest, which triggers a warning in > > __static_call_update(). > > > > To simplify, move the static call update for 'smp_ops' into > > smp_prepare_boot_cpu() to address these two problems together. > > > > Fixes: 1f60230cdc63 ("x86/smp: Use static_call for arch_send_call_function_ipi()") > > Signed-off-by: Hou Wenlong > > --- > > I'm not sure if the XEN part is okay or not. I think there should be no > > IPI before smp_prepare_boot_cpu(), and even if there is, it's okay for > > the KVM guest to use the native version before smp_prepare_boot_cpu(). > > All three commits zapped from tip:x86/core. > > We can try again once this is resolved. > Get it, thanks! > Thx. > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette