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] [thread-next>] [day] [month] [year] [list]
Message-ID: <aTooGaNq353hlGkE@yzhao56-desk.sh.intel.com>
Date: Thu, 11 Dec 2025 10:10:33 +0800
From: Yan Zhao <yan.y.zhao@...el.com>
To: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
CC: "sagis@...gle.com" <sagis@...gle.com>, "Du, Fan" <fan.du@...el.com>, "Li,
 Xiaoyao" <xiaoyao.li@...el.com>, "quic_eberman@...cinc.com"
	<quic_eberman@...cinc.com>, "Hansen, Dave" <dave.hansen@...el.com>,
	"david@...hat.com" <david@...hat.com>, "thomas.lendacky@....com"
	<thomas.lendacky@....com>, "tabba@...gle.com" <tabba@...gle.com>,
	"vbabka@...e.cz" <vbabka@...e.cz>, "kvm@...r.kernel.org"
	<kvm@...r.kernel.org>, "michael.roth@....com" <michael.roth@....com>,
	"seanjc@...gle.com" <seanjc@...gle.com>, "Weiny, Ira" <ira.weiny@...el.com>,
	"pbonzini@...hat.com" <pbonzini@...hat.com>, "binbin.wu@...ux.intel.com"
	<binbin.wu@...ux.intel.com>, "ackerleytng@...gle.com"
	<ackerleytng@...gle.com>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "Yamahata, Isaku" <isaku.yamahata@...el.com>,
	"Peng, Chao P" <chao.p.peng@...el.com>, "kas@...nel.org" <kas@...nel.org>,
	"Annapurve, Vishal" <vannapurve@...gle.com>, "Miao, Jun"
	<jun.miao@...el.com>, "zhiquan1.li@...el.com" <zhiquan1.li@...el.com>,
	"x86@...nel.org" <x86@...nel.org>, "pgonda@...gle.com" <pgonda@...gle.com>
Subject: Re: [RFC PATCH v2 10/23] KVM: TDX: Enable huge page splitting under
 write kvm->mmu_lock

On Thu, Dec 11, 2025 at 03:49:26AM +0800, Edgecombe, Rick P wrote:
> On Wed, 2025-12-10 at 11:16 -0600, Sagi Shahar wrote:
> > From what I saw this is not just a
> > theoretical race but happens every time I try to boot a VM
I don't think we mentioned that the retry for TDX_INTERRUPTED_RESTARTABLE is
theoretical, did we? :)

On my SPR, to boot a VM with 8 vCPUs 8 GB memory, on average there are
271.4 demotes, with 1.1 retry for TDX_INTERRUPTED_RESTARTABLE.

   #    | demote cnt | retry cnt (for TDX_INTERRUPTED_RESTARTABLE)
--------|------------|----------
   1    |    271     |    2
   2    |    273     |    0
   3    |    271     |    1
   4    |    270     |    2
   5    |    271     |    3
   6    |    271     |    0
   7    |    274     |    0
   8    |    270     |    0
   9    |    271     |    2
  10    |    272     |    0
 
> Oh, interesting.
> 
> > , even for a
> > small VM with 4 VCPUs and 8GB of memory.
> 
> It probably more matters what else is happening on the system to cause a host
> interrupt.
Agreed.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ