Return-Path: Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fMg6l-0003rc-3k for speck@linutronix.de; Sat, 26 May 2018 22:48:11 +0200 Received: by mail-pf0-x22f.google.com with SMTP id x9-v6so4096297pfm.2 for ; Sat, 26 May 2018 13:48:11 -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 l67-v6sm4301407pfj.66.2018.05.26.13.48.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 May 2018 13:48:02 -0700 (PDT) Sender: Linus Torvalds Date: Sat, 26 May 2018 13:48:01 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: L1D-Fault KVM mitigation In-Reply-To: <20180526204319.GB4486@tassilo.jf.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> <20180526204319.GB4486@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sat, 26 May 2018, speck for Andi Kleen wrote: > > Keep in mind that we don't need to synchronize when the other CPU is idle > in the guest, so it's only a problem when all the CPUs are busy. What? No. Maybe you mean "idle in the _host_"? Which is not necessarily at all the same thing. > That should be the common case for boot. Again, no. The guest booting has absolutely nothing to do with the host being idle or not. If the argument is that "most of the time you have idle host CPU resources", then the solution to that is simple: "turn off HT". Linus