From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.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 6606943303B for ; Tue, 14 Jul 2026 19:29:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784057381; cv=none; b=WRNht6lCZGxTYlbK/pHJZfT2NGbFZjlb0odRryi90205xiM5OMS2PsWXw/UHDqb2Byspr7m9/30y6y4G9C46EqfJz+CIYKWFW9BFjJeefZK5Txs/bLXiz03lKJPjxYuAps52XB7a6OKTb2lUUR87hMLNrn3gxxupEUXa0S+LzZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784057381; c=relaxed/simple; bh=RsnXh/8ElTU9qZWcoJsFdKmUAqmosiGYht2P9+CIDyc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=b9+sRklInEgiPTdR6l2IiCzMid7OWxNRq3EcBJM3ej58Nq1NFkeqft/s/fpRRqIAbyzImEir4eVUBQcVcRT7NJ/BqXirGHLbK6mNRvut/uk47GgldfxRR6NssBUn5Mmz1PYBkp/jug6WIyik5VKOJ1P4Zx/j4FiS148E6UTMF5s= 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=BXjx8g5S; arc=none smtp.client-ip=209.85.210.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--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BXjx8g5S" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-8488ac68185so7229946b3a.2 for ; Tue, 14 Jul 2026 12:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784057380; x=1784662180; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ri6PQl08QpvRXhW+zMfxC/oHXbkP2yHQ6ED8yzvPbFs=; b=BXjx8g5SdZOfKu/+JuU9FFVXlYvAb38SrG6o7sR+JRScE3QNzntZ/64h4X2EgUuoVW 0hdgUrbdh9GjH10y84+h50m/AZjooGvJmsvVKOX9xG7ay4AKjcyWRreYb7YGgiNtfJAN nKbnk4cxPBDGSlfeVoqiuxAdGjqN1/Yi33CpPBoFMisbKgRdHwYi79qquLV10FCw2w/O zFhP6wU4JgkRiowOEhbGNWYl3xFBmvvf96oB9/5TYC+WnP9OJebhJ8U/mjBNuaYy4ALH J2QuD7G2KMuE13TPawUgYE3DXr10++8kRQcIUFnpAm9FLQY+cpFHCgly20f/u3CyHALL 4a4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784057380; x=1784662180; h=content-type: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:content-type; bh=ri6PQl08QpvRXhW+zMfxC/oHXbkP2yHQ6ED8yzvPbFs=; b=QoXQ2tOfqwfMRw7qNkFUHO8bE2VF4kNTEVZIhKmA3X1+KmPZvBor7y2LKmvuwTTUh7 UXkj+dz572u+NsUjQ9T5cqtSCOw3yx0uYQlAfgWARsaDAJ7hAMBeyynpeoHJKb50Kis8 kkwuTIE1wwzMhvp5FmXVSCuFkhhXGSx2yGCuPVOFCKnQXMv5b3JBOXKnHpHkEcgeTyQj OBhHY9jcJkamp/hrk3xnQgxkJHBFQ16Tp/Awq2uhoKSgXPeFog/QDUr+2Tm1pvmvVo7F /XU0DEA65A2TsNFEonl/PJ9k91AaD0bMvtjPbPCJ+J+BeP6S8yUuwXVnJaBIPgX/NeXK MkMw== X-Forwarded-Encrypted: i=1; AHgh+RontlJtdm7RTyQAbRyx2rk5dXRV6wwGa6DHeUfV/blx5MCGE/wgCdYJV7ppD4q7ymN/H5/eViPyHNygI84=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9M/CsZXNK6gLJfLPQrbFr1BteVbSH8BsGWuP663DxuRAgd3Qb QVeCEePdT7mCxR/0Sq/YzOt44pQxALtIwMYKXY7FASR/J0TkNiNUw92CZbTORDJwq1bX1a5bKlm 9eRD5Ag== X-Received: from pfbdi5.prod.google.com ([2002:a05:6a00:4805:b0:848:4690:d658]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:a117:b0:848:47d3:47ec with SMTP id d2e1a72fcca58-8488967d5cemr13427366b3a.31.1784057379715; Tue, 14 Jul 2026 12:29:39 -0700 (PDT) Date: Tue, 14 Jul 2026 11:41:27 -0700 In-Reply-To: <20260630202828.440724-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260630202828.440724-1-seanjc@google.com> X-Mailer: git-send-email 2.55.0.141.g00534a21ce-goog Message-ID: <178405258631.3111985.13515439003620338114.b4-ty@google.com> Subject: Re: [PATCH v2 0/3] KVM: x86: Convert nested ops to static calls From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Vitaly Kuznetsov Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Tue, 30 Jun 2026 13:28:25 -0700, Sean Christopherson wrote: > Convert nested_ops to use static calls, mainly because the nested ops are > bizarrely different than the x86 and PMU ops, and the kvm_x86_ops.nested_ops-> > code is an eyesore (IMO). I haven't bothered to do any performance testing. > > v2: In patch 1, keep the get_evmcs_version != NULL check in kvm_get_hv_cpuid(), > then convert it to a RET0 call in patch 2. [Sashiko] > > [...] Applied to kvm-x86 misc, thanks! [1/3] KVM: x86: Reject nested CAP enablement if nested virtualization is disabled https://github.com/kvm-x86/linux/commit/b65699be2c60 [2/3] KVM: x86: Add static calls for nested virtualization ops https://github.com/kvm-x86/linux/commit/4b9819a50674 [3/3] KVM: x86: Move nested_ops out of kvm_x86_ops, to global kvm_nested_ops https://github.com/kvm-x86/linux/commit/2c56780d8ec7 -- https://github.com/kvm-x86/linux/tree/next