Return-Path: Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fLu4C-00045o-UM for speck@linutronix.de; Thu, 24 May 2018 19:30:21 +0200 Received: by mail-pg0-x229.google.com with SMTP id d14-v6so1090682pgv.8 for ; Thu, 24 May 2018 10:30:20 -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 b13-v6sm29345715pgu.54.2018.05.24.10.30.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 10:30:13 -0700 (PDT) Sender: Linus Torvalds Date: Thu, 24 May 2018 10:30:10 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: L1D-Fault KVM mitigation In-Reply-To: <47bca42e-656b-4918-14de-1f26ad932df1@linux.intel.com> 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> <47bca42e-656b-4918-14de-1f26ad932df1@linux.intel.com> 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 Dave Hansen wrote: > > The most straightforward thing is to do trigger the same behavior as > "noht" as part of our arch/x86/kernel/cpu/bugs.c code whenever KVM is > compile-time enabled. Absolutely not. The whole HT issue is only for people who run untrusted loads. Lots of people use kvm for testing, but also for just running qemu etc. They have absolutely zero reason to disable HT in general. The only people who worry are Amazon etc. We should document the hell out of it, and happily the tech press will be very happy to inform everybody about the issue. But most people won't care one whit, and will run only "good" loads (ie operating systems that have been fixed) in their vm's and not random garbage. Don't try to make this HT workaround be anything but what it is: an issue for the Amazons and googles of the world. Linus