Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp142979lqp; Tue, 11 Jun 2024 18:23:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiQzTF6zqk3LF1z51lanXxrsinCDbRtavPHrtEKv5OZCc9kDzffY0AVzMFMOZh9Oc3lNg6ttfgKo4Yle2qQfVXvQWbOKjeuHJbenv2gA== X-Google-Smtp-Source: AGHT+IGxIJDUqn1QKFow/IZEfJBYRs+BuX3DXS8Xk5N6LzFRqE4vnz1mICmyWCZhm1cmmlw/b+j+ X-Received: by 2002:a05:620a:4011:b0:795:5e01:74f2 with SMTP id af79cd13be357-797f6006fccmr35342585a.21.1718155428723; Tue, 11 Jun 2024 18:23:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718155428; cv=pass; d=google.com; s=arc-20160816; b=t/JG2tkudp9vrAL7eJUj0LsZyTimaa23KxYW0WxdDGqbLWL075uxrcHLQ/TuYzHrk3 xD0Yc22GJgpAyRYj4OvcCHGTt6hiFmLU45n4MDo3gwsn8qz+5VGBz5J/7eH98U+LcqQG FST/LAmth2RdFP1fCj9wREqy+09QT+pCGS7835QqI0xljkFU02OEhUZVKnZGTzUtD5bF /m24zYhJ6oVA2ApraBeRPjKFtufC6tEoMkE+gDe8lNgHHOBLi68xAcNXdfPVDkgK36pa ZEV9cqnEPi4UcRqq46zjy/WbPr2THdwzjvzy2ib1BKOnnUxq98/RipUT5NaYigyqxoiS zjlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=9RzYaJguaQI8ezMD1wLQZOMHWWd0f/qf7YACXyF/8fY=; fh=8Io4roOCY/8CaNh3ADTBhwDE0onG7KaNCf2Bc3jahuo=; b=IIQea/8Q3Soj6Q7WcZC7m3ymdQ/g24kkY6Mf2AoQaKf27lD9hYdwpsDJZwirWtU4KY qCvO9vZG+s0wpBYwbytm/5Kyq/3kjF0I+8frcm3l1m6HwpfrD0t8O5q1U3Qm1PH5JYq4 +VQXYvRA5kAfJIGcBcTu72APEnmGnkoM9me6XMhurwtPiAP+DMYlcTmyQKGeeCAybxEm /YZPxDbvAl7ijCI2yq6yOHSx91OUI7Ic02zX71/TO+BEZMcEa6vai2mJQDpGrOBFuV4E 7h/3RlANZZ6RWdkoCgS+xmlOwguqfepldvJlRDOuxmUhhBNrP8EFf9O2FMK23VntwxGs DH6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=R5+0wxIW; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-210761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795572dc371si863511985a.307.2024.06.11.18.23.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 18:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=R5+0wxIW; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-210761-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 71A891C21C20 for ; Wed, 12 Jun 2024 01:23:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 738144C63; Wed, 12 Jun 2024 01:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="R5+0wxIW" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 3A9634411 for ; Wed, 12 Jun 2024 01:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718155417; cv=none; b=M0UK6PQj+WNPFOAwZy7TEmgITAJ4fiMt4M62a2c3MIoTFnmM4bZ+EPFTAVNH4CS59j5C1xJSGGRftdf0Bqiqgp8I3wszjTugsRrPuwMNU1Br3FqwSLi39CgprdeqjSK3o8d9Wxry+38RDVRmkvnirnd3wvOQHvlyLTyRI8dfRJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718155417; c=relaxed/simple; bh=9joCK+5QYCvw814DBtCIuJ51y0uYUX8Tgug9gGwYU58=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RaID2bKXAtlETvonqqFSXd1NHFC9GocDwayxJ/Z6EAvf4b80eppDX54bcQ6LOt/ZXrKcjcZI7BvKG4dpFbZuzZasLNYesHK38Zu8vdQ3/c/aSXrm5wHlZQDFsZRUcPfLTAMcYroju8BeIMbgWeXHuzzBTCABoc+tRDR2w/KY8Rk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=R5+0wxIW; arc=none smtp.client-ip=209.85.219.201 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--seanjc.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dfa77d54cd2so9779536276.3 for ; Tue, 11 Jun 2024 18:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718155415; x=1718760215; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=9RzYaJguaQI8ezMD1wLQZOMHWWd0f/qf7YACXyF/8fY=; b=R5+0wxIWSbXYi5W3HQoiMfntIpjoSAqwbPLG/wTzn1CPAAg3NTzLTYY8zOs8Ljl+NA adq18X8NIhl45m1IJX721TW/A8Otu5wOYlz7yhbkpUWjPXJqpcRtIzL0ld0rcjmbbLsI ohlaxfeJpjDZRNfQYDk4Ykzz0mWmuWlnCoz3Y2R8GDR/fKJuXETn91b/KiCwWaN/Phwf bcZN+1I9Jq6b2p2fkmoZtrt0wuf3OLbMLd/pT23z7Tjkdc13tu1hgqyA1NKMbUwzUisd LIem6s1loda08mc3qCmFIDQENMCwfS++TZG9ELpnD9dQzxnCPNK1RHoFDoKJ7Qu0wCiX nDCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718155415; x=1718760215; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9RzYaJguaQI8ezMD1wLQZOMHWWd0f/qf7YACXyF/8fY=; b=vZ+aPLn9sKD9Hwl2MI1Ppqms2sRlRj3uUsd/FImwKQ5CLmC1eRqXX3ouARTf9OafeL TQ9/6yT9Yfxk+3bMIJ10z3O8AQnvsQEmonu5abumo95Yd3FjbkJqjuNAtM2Ev+awk+I2 qAd2UczUYgdJjKnNSG9dbWA9r67+c0soQUCpMFCqcSx+BOkWwxIf+itDgCkF0kTJfLP+ WKxI87Dti3A7EAXzfOm0y8sX97b3ck2KI0WBOp22B3jQ715AORI/S4LYUR5L+XD9wicc zPmhlQxx/EeGmvYJagjLdW0+9UeQ8PGRBEwN4eHvxNcy7tE/FQEBF0O8+yuDgcdg2Q4X dJ5Q== X-Forwarded-Encrypted: i=1; AJvYcCWIo4nt1+O4NVWIAJ3W66F7FQsS/dDx6abVelIz1giQsLQV7upY3flSl1Q0JHH/q3gdwu2oIFpJq/MEn2jF9dG4hubBnVaXrEO5M0LI X-Gm-Message-State: AOJu0Yy3wzIoUZl1v2A+wC3wr7xaG0Pn/WpfZUaxIWog4Yym9afhv+6Q 7YLSiHLj0Xut88EJ900/JHL4lJILpQNGQVtGcewlUjU6JcXVOvauRMx5r45HZnFehhk7YEJbvao E1Q== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:2b0c:b0:dfa:b47e:b99f with SMTP id 3f1490d57ef6-dfe65f78355mr33849276.2.1718155415290; Tue, 11 Jun 2024 18:23:35 -0700 (PDT) Date: Tue, 11 Jun 2024 18:18:46 -0700 In-Reply-To: <20240507133103.15052-1-wei.w.wang@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240507133103.15052-1-wei.w.wang@intel.com> X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog Message-ID: <171805499012.3417292.16148545321570928307.b4-ty@google.com> Subject: Re: [PATCH v4 0/3] KVM/x86: Enhancements to static calls From: Sean Christopherson To: Sean Christopherson , pbonzini@redhat.com, Wei Wang Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Tue, 07 May 2024 21:31:00 +0800, Wei Wang wrote: > This patchset introduces the kvm_x86_call() and kvm_pmu_call() macros to > streamline the usage of static calls of kvm_x86_ops and kvm_pmu_ops. The > current static_call() usage is a bit verbose and can lead to code > alignment challenges, and the addition of kvm_x86_ prefix to hooks at the > static_call() sites hinders code readability and navigation. The use of > static_call_cond() is essentially the same as static_call() on x86, so it > is replaced by static_call() to simplify the code. The changes have gone > through my tests (guest launch, a few vPMU tests, live migration tests) > without an issue. > > [...] Applied to kvm-x86 static_calls. I may or may not rebase these commits depending on what all gets queued for 6.10. There are already three conflicts that I know of, but they aren't _that_ annoying. Yet. :-) Thanks! [1/3] KVM: x86: Replace static_call_cond() with static_call() https://github.com/kvm-x86/linux/commit/161827082760 [2/3] KVM: x86: Introduce kvm_x86_call() to simplify static calls of kvm_x86_ops https://github.com/kvm-x86/linux/commit/aebed32e4985 [3/3] KVM: x86/pmu: Add kvm_pmu_call() to simplify static calls of kvm_pmu_ops https://github.com/kvm-x86/linux/commit/4dbd1f66c5bf -- https://github.com/kvm-x86/linux/tree/next