Received: by 10.223.185.116 with SMTP id b49csp3657926wrg; Mon, 26 Feb 2018 03:57:31 -0800 (PST) X-Google-Smtp-Source: AH8x225yZzCqYAEDtYOgAf8W8FQDYReI1DSHA12R+f5DElKye25jdF0jBNja3oWt92AMTSfJJOxs X-Received: by 10.98.223.93 with SMTP id u90mr10358877pfg.13.1519646251818; Mon, 26 Feb 2018 03:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519646251; cv=none; d=google.com; s=arc-20160816; b=AkHBBgzYhQmMU6lX3nkd7Wqjd+XkAD38GSk66VD+isQdmB1sCda/nBa+2hyX8MntT+ h1dKtnYrUl2MNm+Uz8Mp1rKoMYUJWNghz1suyB5LO/WTJWO3nJkjrfMj8KtCrt0c77LT 9cj/btW7ZhdmzW8Sby5BxIq3zz3cWv0fOM8EuNocEpCYPIuCMd6WyEp5hrHPnz1B6S39 V4DDndRc54Yd8BHIZliLKjttly9hFBeTjyMzcL0id43lBzfTa00YUsuTyJH8xcpHkHCO TfpRxV7d4HQS2NgrGQz9b4vH901nHW9iL3CseHE+RCbDfV/POAs6nWs6jG7F4mzJcbW1 ls3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=jtmHE80rPIj/89ptoqVVudNaNN7k7IPBqN+yM9dGYUU=; b=lYQOmrQmn73HVo2cmnJ1zadMvTNxXwVQkvn2DDcevcQlIpwwiXwSJ3ttea2Koa8pSN Jeeqbkunk5wcOahcXeJVOyezLkYTJyWtRwZjw03M6aKNOFjY5TrFSwcWVusPwjz01vqR PEg02cL23fRJ6pxbKhkzsPsmrvGc0voBkEZhGWfCdxWj+83t6HXirIIAbKItg6AsXJ7/ Fir4Sut9LZdUV77amCVH7NhyaJI5IkL9OfPwJZSwhhPYwh/zz5TIbZfNZwLTomeWVe/G Ql61Rf7YdblsZ+gsVF665TuVwMgf8SePsdM8J1LO6LrvtxPTVRjwEHQtyuxF2zlylh+j E+/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si5463815pgs.675.2018.02.26.03.57.17; Mon, 26 Feb 2018 03:57:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752918AbeBZLy5 (ORCPT + 99 others); Mon, 26 Feb 2018 06:54:57 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42088 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752322AbeBZLyz (ORCPT ); Mon, 26 Feb 2018 06:54:55 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3A5F3EAEA0; Mon, 26 Feb 2018 11:54:55 +0000 (UTC) Received: from [10.36.117.126] (ovpn-117-126.ams2.redhat.com [10.36.117.126]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CDE2A2026DFD; Mon, 26 Feb 2018 11:54:53 +0000 (UTC) Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version To: Borislav Petkov , Wanpeng Li Cc: LKML , kvm , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= References: <1519629838-4898-1-git-send-email-wanpengli@tencent.com> <20180226094148.GA15539@pd.tnic> <20180226104921.GA4377@pd.tnic> <20180226111630.GB4377@pd.tnic> <20180226113000.GC4377@pd.tnic> <20180226114409.GD4377@pd.tnic> From: Paolo Bonzini Message-ID: <46cecef2-b0fb-b0c2-bbf3-983328d52763@redhat.com> Date: Mon, 26 Feb 2018 12:54:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180226114409.GD4377@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 26 Feb 2018 11:54:55 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 26 Feb 2018 11:54:55 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/02/2018 12:44, Borislav Petkov wrote: >> The guest write is ignored as the original kvm implementation before the patch. > > That will never work because there's no virtualized microcode loader. > Which will be a dumb idea anyway. > > Goes to show that dealing with microcode revisions for a guest is the > wrong approach. 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)? > So that's basically what I'm saying - fix apic_check_deadline_errata() > to check whether the kernel runs as a guest. It has already been fixed for a few months, and fixing it is indeed the right thing to do independent of this patch. Paolo