From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752806AbeBZMPf (ORCPT ); Mon, 26 Feb 2018 07:15:35 -0500 Received: from mail.skyhub.de ([5.9.137.197]:54336 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353AbeBZMPd (ORCPT ); Mon, 26 Feb 2018 07:15:33 -0500 Date: Mon, 26 Feb 2018 13:15:09 +0100 From: Borislav Petkov To: Paolo Bonzini Cc: Wanpeng Li , LKML , kvm , Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version Message-ID: <20180226121509.GE4377@pd.tnic> References: <20180226094148.GA15539@pd.tnic> <20180226104921.GA4377@pd.tnic> <20180226111630.GB4377@pd.tnic> <20180226113000.GC4377@pd.tnic> <20180226114409.GD4377@pd.tnic> <46cecef2-b0fb-b0c2-bbf3-983328d52763@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <46cecef2-b0fb-b0c2-bbf3-983328d52763@redhat.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 12:54:52PM +0100, Paolo Bonzini wrote: > I don't understand how one thing follows from the other. How are writes > to 0x8B related to having a virtualized microcode loaded (which is a > concept that actually makes no sense at all)? I'm questioning the whole idea. 0x8b is the MSR which gives you the microcode revision. Most CPUs don't even allow writing to it, AFAICT. (SDM says "may prevent writing" on VM transitions.) So how is that host-initiated write to 0x8b is even going to work, in reality? kvm module writes the microcode version in there? How does the admin work around that? > It has already been fixed for a few months, and fixing it is indeed the > right thing to do independent of this patch. Yap. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.