Return-Path: Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fN1Jo-000426-JF for speck@linutronix.de; Sun, 27 May 2018 21:27:04 +0200 Received: by mail-pl0-x232.google.com with SMTP id f1-v6so5499655plt.6 for ; Sun, 27 May 2018 12:27:04 -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 q8-v6sm48734583pfh.26.2018.05.27.12.26.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 May 2018 12:26:56 -0700 (PDT) Sender: Linus Torvalds Date: Sun, 27 May 2018 12:26:55 -0700 (PDT) From: Linus Torvalds Subject: [MODERATED] Re: L1D-Fault KVM mitigation In-Reply-To: Message-ID: References: <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> <20180527182550.GC4486@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: speck@linutronix.de List-ID: On Sun, 27 May 2018, speck for Andrew Cooper wrote: > > Xen doesn't ever vcpus enter idle themselves.  We trap HLT/etc and will > either schedule another VM, or choose to idle the host if there really > is nothing else to do. Right. But then there is never any such thing as "guest idle". There is only "host idle" or "host is doing something else entirely". You _could_ have a "idle polling" mode which is separate from the regular host idle loop, I guess. > I've never come across a plausible usecase for letting non-root mode > idle the cores into a low power state.  They simply aren't in a position > to know whether other work needs doing or not. Afaik, it mainly makes sense when there is no actual host OS at all, just the bare-metal hypervisor used for partitioning resources, not scheduling them. Linus