lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c8f58736bd8a5184c6dede90985bfe940558bfb0.camel@intel.com>
Date: Wed, 20 Aug 2025 21:34:20 +0000
From: "Huang, Kai" <kai.huang@...el.com>
To: "pbonzini@...hat.com" <pbonzini@...hat.com>
CC: "kvm@...r.kernel.org" <kvm@...r.kernel.org>, "x86@...nel.org"
	<x86@...nel.org>, "ashish.kalra@....com" <ashish.kalra@....com>, "Hansen,
 Dave" <dave.hansen@...el.com>, "thomas.lendacky@....com"
	<thomas.lendacky@....com>, "kas@...nel.org" <kas@...nel.org>,
	"seanjc@...gle.com" <seanjc@...gle.com>, "dwmw@...zon.co.uk"
	<dwmw@...zon.co.uk>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "mingo@...hat.com" <mingo@...hat.com>,
	"Yamahata, Isaku" <isaku.yamahata@...el.com>, "nik.borisov@...e.com"
	<nik.borisov@...e.com>, "Chatre, Reinette" <reinette.chatre@...el.com>,
	"hpa@...or.com" <hpa@...or.com>, "peterz@...radead.org"
	<peterz@...radead.org>, "sagis@...gle.com" <sagis@...gle.com>, "Chen, Farrah"
	<farrah.chen@...el.com>, "tglx@...utronix.de" <tglx@...utronix.de>,
	"Edgecombe, Rick P" <rick.p.edgecombe@...el.com>, "binbin.wu@...ux.intel.com"
	<binbin.wu@...ux.intel.com>, "bp@...en8.de" <bp@...en8.de>, "Williams, Dan J"
	<dan.j.williams@...el.com>, "Gao, Chao" <chao.gao@...el.com>
Subject: Re: [PATCH v6 7/7] KVM: TDX: Explicitly do WBINVD when no more TDX
 SEAMCALLs

On Wed, 2025-08-20 at 22:35 +0200, Paolo Bonzini wrote:
> On Wed, Aug 20, 2025 at 1:22 PM Huang, Kai <kai.huang@...el.com> wrote:
> > I think one minor issue here is, when CONFIG_INTEL_TDX_HOST is off but
> > CONFIG_KEXEC_CORE is on, there will be no implementation of
> > tdx_cpu_flush_cache_for_kexec().  This won't result in build error,
> > though, because when TDX_HOST is off, KVM_INTEL_TDX will be off too, i.e.,
> > there won't be any caller of tdx_cpu_flush_cache_for_kexec().
> > 
> > But this still doesn't look nice?
> 
> Why do you need one? It's called tdx_cpu_flush_cache_for_kexec(), you
> don't need it if TDX is disabled.

Sorry I meant the declaration will still be there w/o the function body.

> 
> > Btw, the above will provide the stub function when both KEXEC_CORE and
> > TDX_HOST is off, which seems to be a step back too?
> 
> Let's just stop here. Are we really wasting this much time discussing
> like 30 characters and 0 bytes of object code?
> 
> > To me, it's more straightforward to just rename it to
> > tdx_cpu_flush_cache_for_kexec() and remove the stub:
> 
> Sure, just rename the function and let's call it a day. If it was me,
> v6 was good enough.
> 

Thanks for your time Paolo!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ