Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Jun 2018 08:43:15 -0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fVvBR-0003oF-Uy for speck@linutronix.de; Thu, 21 Jun 2018 10:43:14 +0200 Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVvBQ-0004TC-7g for speck@linutronix.de; Thu, 21 Jun 2018 08:43:12 +0000 Date: Thu, 21 Jun 2018 10:43:10 +0200 From: Peter Zijlstra Subject: [MODERATED] Re: [PATCH v2.1 4/6] [PATCH v2.1 4/6] Patch #4 Message-ID: <20180621084310.GS2494@hirez.programming.kicks-ass.net> References: <20180620204351.997227234@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: <20180620204351.997227234@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, Jun 20, 2018 at 04:43:00PM -0400, speck for konrad.wilk_at_oracle.com wrote: > x86/KVM: Warn user if KVM is loaded SMT and L1TF CPU bug being present. > > If the L1TF CPU bug is present we allow the KVM module to be loaded > as the major of users that use Linux and KVM have trusted guests > and do not want a broken setup. Why on module load? Doesn't the module get loaded unconditionally? My desktop seems to have it loaded and I'm pretty sure i've never used KVM on it. Would it not make more sense to do this in kvm_create_vm() ? Then only people actually using KVM get to deal with it.