Return-Path: Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fLzed-0003v1-D0 for speck@linutronix.de; Fri, 25 May 2018 01:28:19 +0200 Received: by mail-pg0-x232.google.com with SMTP id u7-v6so1450768pgp.3 for ; Thu, 24 May 2018 16:28:19 -0700 (PDT) Received: from i7.lan (c-73-11-52-149.hsd1.or.comcast.net. [73.11.52.149]) by smtp.gmail.com with ESMTPSA id u9-v6sm42609054pfi.60.2018.05.24.16.28.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 16:28:11 -0700 (PDT) Sender: Linus Torvalds Date: Thu, 24 May 2018 16:28:10 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: L1D-Fault KVM mitigation In-Reply-To: Message-ID: References: <20180424090630.wlghmrpasn7v7wbn@suse.de> <20180424093537.GC4064@hirez.programming.kicks-ass.net> <1524563292.8691.38.camel@infradead.org> <20180424110445.GU4043@hirez.programming.kicks-ass.net> <1527068745.8186.89.camel@infradead.org> <20180524094526.GE12198@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Thu, 24 May 2018, speck for Tim Chen wrote: > > We may need to do the co-scheduling only when VM exit rate is low, and > turn off the SMT when VM exit rate becomes too high. I don't think there's any way to actually turn off HT dynamically, is there? Yes, you can park the sibling in idle, but afaik, some core resources will still be statically partitioned, so it's different from the "turn off HT at boot" case. But if there is actually a way to turn HT off dynamically, maybe we could make it be CPU hotplug. That would certainly be _so_ much better than the nasty "turn it on/off in BIOS" even for other uses. Linus