From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f202.google.com (mail-qk1-f202.google.com [209.85.222.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 541662C029D for ; Mon, 22 Dec 2025 20:14:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766434450; cv=none; b=LAaZKNMwbdV95SJGZDQh85zlqKtQonCYuDPGW/pqlycjhtPLxcz63L+CWljvdF0sjt8i0WqUj2XThWk8WthCeLtn4so6BbPfJxcDgeCAbcM7oZXfZQEK3DZtIC6FVDbqbHSn//qgwPg98BOQg7lmCv1ifV//wBd2WR0lS7S3LkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766434450; c=relaxed/simple; bh=g+GXSOeSMNCAU2h1105ZmfDzTBEE24qfm6qKIhIB8Js=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=cZajQdjoojYKL6+Mscs4tHX1gwjQv4zOhiXQltWfZDP5h4mm7LUBGfmydhfKFYx4fiC/z4jeR3IVPwIIN8szgDIE4exocAY5NLi5vvsKFzSA+29Z3O2TiWfMqmINC9FQ3pZhkQWKg2WvHZkgHrC1GC+SPNtdmRpRX6LF81zFt+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edumazet.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mW2IvVLH; arc=none smtp.client-ip=209.85.222.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edumazet.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mW2IvVLH" Received: by mail-qk1-f202.google.com with SMTP id af79cd13be357-8b245c49d0cso990640285a.3 for ; Mon, 22 Dec 2025 12:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766434448; x=1767039248; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=94aNt5pzMAeBmXROeJ3OBzOKIQy7haz4sUQwQu1BOGc=; b=mW2IvVLHkRWzj6FblusLEajetnovr8pnsRYo9TY+MTFLMYbpWQe2wpgnU6PICpw/y0 8peeoBv1gjUNQBocpP6e4R5Pp/W9mv7HkKMtLc44xd/LYH0tk7IqnzEURDqb0M2hmtsW ViLeGhJ05J1M+oc2Ey1smhDDAgqqt+uyvjkaI3yB3Ll3TEtaSD9R23ohytIyLCpV/Z5w Sa9oycqMFfuv/ZF7AavYRD/4VSiGn8lYNnKPt/tLNWvRHskf/ONnuxljde0uzJl9ZWLW QX6jpKooz+YG0xtunPVleeJAQ/VSYB0I/HifRpdlyMHAftlhs/gdBZZuqe894A1it1CK 1YuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766434448; x=1767039248; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=94aNt5pzMAeBmXROeJ3OBzOKIQy7haz4sUQwQu1BOGc=; b=St1GFAJ2szFBjucHzZsBOk0ewrFyZ1SZTGQ2XkksOrU39KUStMy9+CwTrOabBRhg9t zhBq/ubSnGOKXxT3ToexqstCHY1GVXtO7uCxcXo8QEJT3Bib1fWwQl9AmmsZZFp0nvdm oY1eAyGzFnSZHx8d8HVX4/pVDvPbw9aDhWpAhSA1jKaULNF0K1hpATqZWToPjweM6Yzs hmVdJnL6/qz/nljLXM4gqBELYK0FxMuDxV786T5THF0ItIeOnNPj/DYKJZV51EPH0e+C gyKrVie1z2L8/nJcoAlebFOZ/K0aNLQXTp+PUIIHE3dPibXafJkPjpxLOzAg4rVRsnZF T8lw== X-Gm-Message-State: AOJu0YyEjLxOgFsxYJmbgkU7R8dwi9pjLxNIScUT4z1tD3YbquPZGt0W s4F7uac+9dSSPZc0hCX2t4e0QyD+m8cclsT2H3cfq2AZEyhwIg7PSSbpCsIqPrA3ptTtuIhQILw 8zsWf4shR9sSlag== X-Google-Smtp-Source: AGHT+IEJpmKyyaRzYxBysnD8HPsQrgrw4+FJLCvqcFstMVPNhvcExggm2iyj9LQSX78elWcw0CW2Hy8fTkyntQ== X-Received: from qknvk36.prod.google.com ([2002:a05:620a:70e4:b0:8b2:44f9:8e1c]) (user=edumazet job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:4bc1:b0:8c0:ceb0:890a with SMTP id af79cd13be357-8c0ceb0891dmr919635785a.16.1766434448052; Mon, 22 Dec 2025 12:14:08 -0800 (PST) Date: Mon, 22 Dec 2025 20:14:03 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.52.0.351.gbe84eed79e-goog Message-ID: <20251222201406.3725665-1-edumazet@google.com> Subject: [PATCH 0/3] x86: Use static_call for three smp_ops methods From: Eric Dumazet To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Peter Zijlstra , x86@kernel.org, "H . Peter Anvin" Cc: linux-kernel , Eric Dumazet , Eric Dumazet Content-Type: text/plain; charset="UTF-8" Busy hosts with RFS enabled can send more than 6,000,000 IPI per second. arch_send_call_function_single_ipi() is currently using an indirect call (because Xen can override the target). Indirect calls are expensive on some platforms with retpoline. This series converts three smp_ops methods to static_call infrastructure to remove common indirect calls. Eric Dumazet (3): x86/smp: Use static_call for arch_send_call_function_single_ipi() x86/smp: Use static_call for arch_smp_send_reschedule() x86/smp: Use static_call for arch_send_call_function_ipi() arch/x86/include/asm/smp.h | 23 +++++++++++++++++------ arch/x86/kernel/smp.c | 19 +++++++++++++++++++ arch/x86/xen/smp_hvm.c | 1 + arch/x86/xen/smp_pv.c | 1 + 4 files changed, 38 insertions(+), 6 deletions(-) -- 2.52.0.351.gbe84eed79e-goog