Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1702976pxy; Mon, 2 Aug 2021 08:13:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL19Q4e/TZdeDKKMd5mIcN94nQGYFMGkv7125zL3zYMTZ71zXhNh8PIfVvQBuBZNAUqmWq X-Received: by 2002:a50:9503:: with SMTP id u3mr19602709eda.135.1627917237804; Mon, 02 Aug 2021 08:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627917237; cv=none; d=google.com; s=arc-20160816; b=v9PA2qJmJMFYMu+RNBgitvAQuZAACCi/GmePCzTHAQQmFj2mKyaAUJxP4t3vSLiOFB 8/hJiSFMdLaxjNJIv04bUEUvBJHegxqB+bE8gCQrxdNP6W/kRb21AqqWBg2niUJtZ8fE VaytgnopuWKecdv54WogCjxJdE2EuR8Xe6jc/PzXuwecGyC7gUEPyRc5ZaOQsqM7c9Ki 7svazTB7lYyR7i9/WWv+ltV2F7zDq4bL/EIfklmfzFMUmJme7zAv2NRpDN8sby7p9KC+ eUZ6T8jMrBBdsoTxPRb8kLG37DmnR48nuhnpgc0JrauBflPbX2Y4VZeEU1xtUj8BjUEf pPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=klAhZ2sU9gQG5ENBY3HDvrJiKEjR8pMVXktb66OKWL0=; b=DfKd98XpLlmGRobj4aJ7k1hAPtcvI57jOJv4seHRF0qNWguY2v0XTe6Ro85yz6cnFr iBETBgEzGIU72NYkOSGKNYWVa+eHCG/NZvqpSBkt6D2O81JX1Who52mGVqInGI2Izuae nnOyo0qNgTINgwLJh9dD1XAVuuoPvqDR4Y26GN9bYCoTJ2FCVnQodcug6YEzd4IZfKSR khbVngNRzu9u0bsWwkrZRFArCqxhwZkQle6ou7yxycyUjAGG6slnShaWGY1BRb71OwEv 6Z3ZjvhN9/SREWDm0aJiG393o7Vw+Qjoq2W4BX9twRnbibROj3NdZDPGSdGAfSXvFadh 92ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jKEiC+1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne7si7031255ejc.648.2021.08.02.08.13.33; Mon, 02 Aug 2021 08:13:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jKEiC+1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234824AbhHBPMT (ORCPT + 99 others); Mon, 2 Aug 2021 11:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234688AbhHBPMS (ORCPT ); Mon, 2 Aug 2021 11:12:18 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06372C061760 for ; Mon, 2 Aug 2021 08:12:09 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id k4-20020a17090a5144b02901731c776526so32137531pjm.4 for ; Mon, 02 Aug 2021 08:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=klAhZ2sU9gQG5ENBY3HDvrJiKEjR8pMVXktb66OKWL0=; b=jKEiC+1+wv6ZB11QhU5jHhEwmc9DVdSPRgnk67Rt2w0A5wqNOr4tNqhVt6lusxC9Ah 5d1+hCyOHE+fLf+Gy3bXEg20t7HU24ziIxYynA89ykCfIW7ypTWg+MW55U55NeSeUEXj UsRzILNoY6I72xAtKWPZe3vOzlaD7jx5hIkbWQqRXqJtLjYsTxXdd/E9tS+x8Mc2PKI0 2UBFV8fnPQPN900/dc+OftFuW+KjvWlM5Cksvjbdj1C+rtQY7sOvvbRycHZ80VVqzuE2 G0AFgRaNy/GyFwNIXOX+jekapwkzhJ5M3JIIoHArBthZxjDJZ70beVvEuqcmwBt8/7Tt wRYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=klAhZ2sU9gQG5ENBY3HDvrJiKEjR8pMVXktb66OKWL0=; b=IX784f+k9ELY77742XkcdAqTjAnwERnNiWt7rzWMJEBxULNB0JOIq+rz/SwgYl0yxQ Xz+CV3MEJQsM+isU2oDporZ9pNqOtwmAmC107AoBxJK4EoEPG6Fzq+0QCUZJCqFuNbtN lROz20oDoFKXFa4LdYwUN96SislJ1swgvS1xKIhk1JG6RUxZ64qJMv2BQqGJlK0s42BF Edhntf5akAeZ8To4pwS2g8q8h6eP+4mIw13/0tREDvnLyou4WQZweaMlAVYneLz2fRHc Z2nBljPtoj1lZTWr6Mq1gpZZA/T7pHpWEAuk2DGhJatMwss+T8dtobYWJeeKgZjVhzdB DqAA== X-Gm-Message-State: AOAM532EHo/RLtksQpG5RGP7kT4toqIaX0PABO+xNTX/qzvF/bNTrzPX tS2bop3IHIcVz/ckTspfT6wJOA== X-Received: by 2002:a63:5fd4:: with SMTP id t203mr1490500pgb.141.1627917128408; Mon, 02 Aug 2021 08:12:08 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id 198sm9797349pfu.32.2021.08.02.08.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Aug 2021 08:12:07 -0700 (PDT) Date: Mon, 2 Aug 2021 15:12:04 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: isaku.yamahata@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, isaku.yamahata@gmail.com Subject: Re: [RFC PATCH v2 00/69] KVM: X86: TDX support Message-ID: References: <0d453d76-11e7-aeb9-b890-f457afbb6614@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 02, 2021, Paolo Bonzini wrote: > On 28/07/21 18:51, Sean Christopherson wrote: > > I strongly object to merging these two until we see the new SEAMLDR code: > > > > [RFC PATCH v2 02/69] KVM: X86: move kvm_cpu_vmxon() from vmx.c to virtext.h > > [RFC PATCH v2 03/69] KVM: X86: move out the definition vmcs_hdr/vmcs from kvm to x86 > > > > If the SEAMLDR code ends up being fully contained in KVM, then this is unnecessary > > churn and exposes code outside of KVM that we may not want exposed (yet). E.g. > > setting and clearing CR4.VMXE (in the fault path) in cpu_vmxon() may not be > > necessary/desirable for SEAMLDR, we simply can't tell without seeing the code. > > Fair enough (though, for patch 2, it's a bit weird to have vmxoff in > virtext.h and not vmxon). I don't really disagree, but vmxoff is already in virtext.h for the emergency reboot stuff. This series only touches the vmxon code.