mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Kai Huang <kai.huang@intel.com>,
	dave.hansen@intel.com, bp@alien8.de,  tglx@linutronix.de,
	peterz@infradead.org, mingo@redhat.com, hpa@zytor.com,
	 thomas.lendacky@amd.com, x86@kernel.org, kas@kernel.org,
	 rick.p.edgecombe@intel.com, dwmw@amazon.co.uk,
	linux-kernel@vger.kernel.org,  kvm@vger.kernel.org,
	reinette.chatre@intel.com, isaku.yamahata@intel.com,
	 dan.j.williams@intel.com, ashish.kalra@amd.com,
	nik.borisov@suse.com,  chao.gao@intel.com, sagis@google.com,
	farrah.chen@intel.com,  Binbin Wu <binbin.wu@linux.intel.com>
Subject: Re: [PATCH v7 7/7] KVM: TDX: Explicitly do WBINVD when no more TDX SEAMCALLs
Date: Tue, 26 Aug 2025 10:38:39 -0700	[thread overview]
Message-ID: <aK3xH4MGv9ZMxhyY@google.com> (raw)
In-Reply-To: <CABgObfaZjcDvFVWO7rsr2e_M=F6r=sEq+GHjtEp04uhj29=MuA@mail.gmail.com>

On Tue, Aug 26, 2025, Paolo Bonzini wrote:
> On Tue, Aug 26, 2025 at 7:10 PM Sean Christopherson <seanjc@google.com> wrote:
> > Can you add a comment here to explain why this is done even if the kernel doesn't
> > support kexec?  I've no objection to the superfluous flushing, but I've spent far
> > too much time deciphering old commits where the changelog says one thing and the
> > code does something else with no explanation.  I don't want to be party to such
> > crimes :-)
> 
> I asked on the review for v6 to make this conditional on CONFIG_KEXEC_CORE
> with a stub; Kai said he'd rather not and I acquiesced, but now it looks
> like we're going to need a v8 just for this comment or to follow that
> suggestion of mine, which I still prefer to a comment.

FWIW, I also prefer conditioning the flush with an #ifdef (we could even have
both an #ifdef and a comment), but it's not a hill I'll die on.

      reply	other threads:[~2025-08-26 17:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-25 22:58 [PATCH v7 0/7] TDX host: kexec/kdump support Kai Huang
2025-08-25 22:58 ` [PATCH v7 1/7] x86/kexec: Consolidate relocate_kernel() function parameters Kai Huang
2025-08-26 17:28   ` David Woodhouse
2025-08-25 22:58 ` [PATCH v7 2/7] x86/sme: Use percpu boolean to control WBINVD during kexec Kai Huang
2025-08-25 22:58 ` [PATCH v7 3/7] x86/virt/tdx: Mark memory cache state incoherent when making SEAMCALL Kai Huang
2025-08-25 22:58 ` [PATCH v7 4/7] x86/kexec: Disable kexec/kdump on platforms with TDX partial write erratum Kai Huang
2025-08-25 22:58 ` [PATCH v7 5/7] x86/virt/tdx: Remove the !KEXEC_CORE dependency Kai Huang
2025-08-25 22:58 ` [PATCH v7 6/7] x86/virt/tdx: Update the kexec section in the TDX documentation Kai Huang
2025-08-25 22:58 ` [PATCH v7 7/7] KVM: TDX: Explicitly do WBINVD when no more TDX SEAMCALLs Kai Huang
2025-08-26 17:10   ` Sean Christopherson
2025-08-26 17:18     ` Dave Hansen
2025-08-26 23:31       ` Edgecombe, Rick P
2025-08-26 17:20     ` Paolo Bonzini
2025-08-26 17:38       ` Sean Christopherson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aK3xH4MGv9ZMxhyY@google.com \
    --to=seanjc@google.com \
    --cc=ashish.kalra@amd.com \
    --cc=binbin.wu@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=chao.gao@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@intel.com \
    --cc=dwmw@amazon.co.uk \
    --cc=farrah.chen@intel.com \
    --cc=hpa@zytor.com \
    --cc=isaku.yamahata@intel.com \
    --cc=kai.huang@intel.com \
    --cc=kas@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nik.borisov@suse.com \
    --cc=pbonzini@redhat.com \
    --cc=peterz@infradead.org \
    --cc=reinette.chatre@intel.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=sagis@google.com \
    --cc=tglx@linutronix.de \
    --cc=thomas.lendacky@amd.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®