Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755192AbeAOJfG (ORCPT + 1 other); Mon, 15 Jan 2018 04:35:06 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:39368 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755158AbeAOJfE (ORCPT ); Mon, 15 Jan 2018 04:35:04 -0500 Date: Mon, 15 Jan 2018 10:34:59 +0100 (CET) From: Thomas Gleixner To: Paolo Bonzini cc: "Longpeng (Mike)" , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, rkrcmar@redhat.com, liran.alon@oracle.com, jmattson@google.com, aliguori@amazon.com, thomas.lendacky@amd.com, dwmw@amazon.co.uk, bp@alien8.de, x86@kernel.org, Gonglei Subject: Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest In-Reply-To: <93f6b277-fd12-71a0-3334-f92e069a9615@redhat.com> Message-ID: References: <20180109120311.27565-1-pbonzini@redhat.com> <20180109120311.27565-4-pbonzini@redhat.com> <5A59DC65.5010908@huawei.com> <93f6b277-fd12-71a0-3334-f92e069a9615@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, 15 Jan 2018, Paolo Bonzini wrote: > On 13/01/2018 11:16, Longpeng (Mike) wrote: > >> + /* > >> + * FIXME: this is only needed until SPEC_CTRL is supported > >> + * by upstream Linux in cpufeatures, then it can be replaced > >> + * with static_cpu_has. > >> + */ > >> + have_spec_ctrl = cpu_has_spec_ctrl(); > >> + if (have_spec_ctrl) > >> + pr_info("kvm: SPEC_CTRL available\n"); > >> + else > >> + pr_info("kvm: SPEC_CTRL not available\n"); > >> + > > > > In this approach, we must reload these modules if we update the microcode later ? > > I strongly suggest using early microcode update anyway. We had the discussion already and we are not going to support late micro code loading. It's just not worth the trouble. Also please do not commit any of this before we have sorted out the bare metal IBRS/IBPB support. We really don't want to have two variants of that in tree. Thanks, tglx