Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp343275lqp; Wed, 12 Jun 2024 03:20:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXE1KXTDPQYmp7ZiNPc4zUlKyiUEWoP826By784nPVEkTufkoTXvU+03vUw+ixfxiLqh9jPclwh845K/1RLeGVq/8VcwRAxrnkLzCEfPg== X-Google-Smtp-Source: AGHT+IFeThZwH6ZdXQxoQvOIj1XJKKmOyldUu5VVuCIWjJTfJuI4+xAWbgRpwIkwjgnOBFOqHMX/ X-Received: by 2002:a05:6808:23cd:b0:3d2:243e:e4d7 with SMTP id 5614622812f47-3d23e040b51mr1308807b6e.29.1718187626802; Wed, 12 Jun 2024 03:20:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718187626; cv=pass; d=google.com; s=arc-20160816; b=aOZrmXrEaO21vKm5eqo9Z/LgvE4ELk2ckGiya2/FfY3HYJoDrAZpm5Ur6rk1wqogqO czAhK9/mIs1NA6BXGx6Kd//FWAc5B9vjA7nxjFKAPk8oHbI2qLjylAWpztpmvxcrPCBp j3ZVCXWbqrxC6vu198pwbtDtsfKvpOaTPxrYScZyVKzqBEJ/eoNjI7nszgwlSUKurgEe pe0pE7CCJsN3XSXQFhKoMYE1LJfksvFY7LhgYBPYmTSPBPSb03sbKjNToIsQAu6slcFd AIDwd5D5iPsbaZytHqWnAusHKdLqetRHyd867honrehplIUVKW+ikk3U/c4qGFJ8DlXA KDxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rlCA4Ke/T+ZDAWf9BXbMMIWFjo2hQeBwjaAKfsSA+oo=; fh=oz26NVJqVf039ejPemErFCdH9NVIXxTD0LJDBmpSJbc=; b=gysRjHeKEfEdV4ESbcwYA1ZY9E8ZvmTCR6+ssKvzN78FRNSXiKjKY7Wuo3y8kJSqs5 v9I14nc/Eu1cdKWDkaEC5lDlKF/36sjSoWAv1ytBzP9V47fg2boGMcf594z+AmX/OjZ8 VwLKCIS0+Ycvwk8HSwrfRscqjfmD0O2Lx4z4xnVWcZhrAwKWvRibdic7BrMMlXzFzmHq H01hnTvxSpD5PbkiAtavs6zNru4kGz0gVtcNiNPYH/iKGldukeDiJzUFWhi7t1UwDsH4 QZAO76fHKLvv8wZZqXfF+6Rg8wkpK3WL2uBzbYO7bg4lhpU2l7QQGustyOgIpz7fpa8K pcPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=edRdgc+W; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 d75a77b69052e-44038a71153si153372951cf.134.2024.06.12.03.20.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 03:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211341-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=@redhat.com header.s=mimecast20190719 header.b=edRdgc+W; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 816FB1C21205 for ; Wed, 12 Jun 2024 10:20:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42B0616EC1A; Wed, 12 Jun 2024 10:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="edRdgc+W" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 0C5A016E888 for ; Wed, 12 Jun 2024 10:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718187600; cv=none; b=HE5yTipXhWdIb/V0wY/1uwQLlPsMrXJxuOgg78axqx/pm5ZkF1ruH0xJdlK9triILantjkerJX1oN/tSyo0pFAe7+i8RjWKcd6rhkSS1HdjXJNVqfgxPstTMm96PCg3c0IP9jDS58Cn1jkki5yNuXu8zctcq4WAJNivuk9BCdSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718187600; c=relaxed/simple; bh=DX/O7qdeD+FQnP5bOkwHHDCOlfBR2tLube9EHjIQaGw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AOh1DJTlz3cPFO8xFsQVdEWLsgzSWAZcYddASYJKNwP88NOAqNZWZydfnCJMQN8JDkmELJdu0cu3olCTYNIE4GabH/+P1cFSESkniDQYUj4ln25NcOU2hy3A4TGrKw1X4irdtDKgO5lKtmV+SpKU/oWH8wDE7tWrPZb1ZSNbzRk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=edRdgc+W; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718187597; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rlCA4Ke/T+ZDAWf9BXbMMIWFjo2hQeBwjaAKfsSA+oo=; b=edRdgc+WbcCi1lEtNzXr+1Sf/noEvYTT0J9FE2KshFSkxODQPeygeCUcYQNGkjPeVl0Lxo bb1xA0PKAt/oohwc9IhiiWvOsL16sH/UQOhuwKdlQCaccqAp44sM325C8X2veQ4mb7Hy2F aUaMZ3Pu/P+4Nt6R85TygcACDsG0eLI= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-522-DAfWww87PSGBgZDpzE4q0Q-1; Wed, 12 Jun 2024 06:19:56 -0400 X-MC-Unique: DAfWww87PSGBgZDpzE4q0Q-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3605cad23e0so226960f8f.0 for ; Wed, 12 Jun 2024 03:19:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718187594; x=1718792394; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rlCA4Ke/T+ZDAWf9BXbMMIWFjo2hQeBwjaAKfsSA+oo=; b=dq1s8JmmjqudlF9ZvIt1LEk3aRkIvt0Syq2j4IkgpuzBXtrcEQemrO6BTqC0AJ/GYz HNYjCxj5C6Omvx2LW2zsP/yDEv6HdDykShzQmGaOxISk/JHOgGKwuCV6W50NGF6rrmwt JR75QAnSdHUVQCwL2Xtc8DQyKJtuaDTDAbdTmYa3R0gEg3tepDwJ4UUSuQJOzcrw5PiX pr1O6TgWU7FyW4nvmZ+1d0FJ4xSROfU0FYLEJ1bO4/GjkOWq0vhB/olhAJLdD/ZLWZul DAhOPouVgy86BzjYHAsK+MFl6OirqMxtPPOF90BEs4ctZw/UoiwbRRjhBzKEwmQhjFO+ Bziw== X-Forwarded-Encrypted: i=1; AJvYcCVi+p+0rMTxSEtE9zJPGH1WeFP0dvoNQuRfYhm+QjTn7EEOUQlBhMf0u4eKYKLMLdHC9r75SlvtCXrpggIoKUVTLnJ5rZWZ7pxEZbaf X-Gm-Message-State: AOJu0Yz5lwGe6ELdnG+psxUEGtN14VoadnHd6gwcSaM6fQsZ9AnOGv1/ qc2CcAOfC5kzT6uFTWCj0zhQAFphcLafVGahGNef01KClIY5gqrK+lMwIjFJIKnQCpq0P16xtwn HbndOxvZRDBE0rSGxF4Kr1YT43xP9UN2ntx3KdUJKJhA7MSALcCWoCbqS+9Izz0A2qcqG5Xy6TM 7qhJYuX+5Ssy4Z0TboNAQPDImSUvxuVp281eIsAzxarIZZ X-Received: by 2002:a05:6000:e88:b0:35f:2a56:5b79 with SMTP id ffacd0b85a97d-35f2b273b4amr4502037f8f.7.1718187594639; Wed, 12 Jun 2024 03:19:54 -0700 (PDT) X-Received: by 2002:a05:6000:e88:b0:35f:2a56:5b79 with SMTP id ffacd0b85a97d-35f2b273b4amr4502019f8f.7.1718187594339; Wed, 12 Jun 2024 03:19:54 -0700 (PDT) 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> <171805499012.3417292.16148545321570928307.b4-ty@google.com> In-Reply-To: <171805499012.3417292.16148545321570928307.b4-ty@google.com> From: Paolo Bonzini Date: Wed, 12 Jun 2024 12:19:43 +0200 Message-ID: Subject: Re: [PATCH v4 0/3] KVM/x86: Enhancements to static calls To: Sean Christopherson Cc: Wei Wang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 3:23=E2=80=AFAM Sean Christopherson wrote: > > On Tue, 07 May 2024 21:31:00 +0800, Wei Wang wrote: > > This patchset introduces the kvm_x86_call() and kvm_pmu_call() macros t= o > > streamline the usage of static calls of kvm_x86_ops and kvm_pmu_ops. Th= e > > 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 t= he > > 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 gon= e > > 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 conf= licts > that I know of, but they aren't _that_ annoying. Yet. :-) I think it's best if we apply them directly (i.e. not through a pull request), on top of everything else in 6.11. Paolo