Received: by 10.223.185.116 with SMTP id b49csp3632097wrg; Mon, 26 Feb 2018 03:28:36 -0800 (PST) X-Google-Smtp-Source: AH8x226USk6MHOdJKvTVKxkvyDlBPvjNWp21eI+qsPdW0B2HZ9RYQYX8a+UAAhQQrl6WZbXCm9+c X-Received: by 10.98.200.80 with SMTP id z77mr10060823pff.85.1519644516645; Mon, 26 Feb 2018 03:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519644516; cv=none; d=google.com; s=arc-20160816; b=QYplxiTtwLjk+EJ5M2Yu3ZtQqNYjDiua34TFSUYtRxBefFcy2pHzLtPrh7K/7LtCAR ba/sy5Qi89Um3IFYl550gWus4nnWXnHqJNeGGv/V+K7aEYC4ZNCIdQ1BCGfTrpE5266Z EKY7BP+1NgJGnPOyvFCbYb4aWOzt8YZY5kREV2p/D3/eR3HF88KTfbwslo2B1G5CGGf8 IqY+c4qSSfeoHmG6JnIJchHTTPp0m2Z6NxjqJPrULiHKxE6wjjCUzpN1yNDNrUh2zpqz uX3LCl1BAqGjJaVyTQbS3UOfl1JzdOyTb6VqeqXmmzhOrAHBnmm/z3gmQMC8q041yR9x 7qmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=wTV+kL7GWtN/XXli7uzZfWfL6AirNsqnkND4vM7K0u4=; b=zlMyhCxz2UiCnOv8XJFQrRfnepc0cehmUgRGvg7HL9dEgrmw/9GbUVGM7lQdTpoz2t VslY/2NvwIa8so/6pEj/wX6Yv8uMpOXmKYBSSrhzIzc6z0Z3wBYEX57WKVzMp8i5VO5u jqXVkoK1ACvk4H5vnQe6S7OA1Mgx9u71qFaJ6lXYnWAaVHg31Nk6BqWrzEPL6bf4fO+T 6oa+sDnos8nHV60R26kspPKmtaLyB+/5N5qKFoXgziIgSwYR35iBPXxeZ0nD58DJBXUW YgvFvI6t/Cq+0TqGjskyAC6zIfdxae/qIQPb3UfA9YkfjDoXP4KA0fNSLvZ5onZsU1m8 OA3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cdEWwzWW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v187si6598473pfv.173.2018.02.26.03.28.22; Mon, 26 Feb 2018 03:28:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cdEWwzWW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752784AbeBZLZd (ORCPT + 99 others); Mon, 26 Feb 2018 06:25:33 -0500 Received: from mail-ot0-f178.google.com ([74.125.82.178]:40852 "EHLO mail-ot0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbeBZLZ3 (ORCPT ); Mon, 26 Feb 2018 06:25:29 -0500 Received: by mail-ot0-f178.google.com with SMTP id l12so1012671otj.7; Mon, 26 Feb 2018 03:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wTV+kL7GWtN/XXli7uzZfWfL6AirNsqnkND4vM7K0u4=; b=cdEWwzWWU0iSz4isZkQOWCJ2Eyxi+nLlDABtUt9zbvpNG785E0tlYAch/znkXAlISY 88jWWPaluk8ZvDwaNcL5WT0TSsQHKfdRIKxQo/s1BrAjGynMoJMZlBO4hTpJgi0AKmAX pEVnDOo9ua9FWiPzyY6fh4Aal14DOX17CuF/U5rB3Mfnk8HC4tkcLD8E3F0yqaACrCq+ Q0Vpduic0fG0fQZegnsFGSzjdTLitXhV1DjDXSgjMtVLWf596Camyb0YNwBmx8iiRQo3 MA2P9Vz+O2K2mpisv/5z+wkRtoxr7jtqP7EsLeyNKHvt2JAJDDsV1xtyD7B1436xxGoQ wIng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wTV+kL7GWtN/XXli7uzZfWfL6AirNsqnkND4vM7K0u4=; b=AQVnpUXRXdzpOGxhoFBWNqwwKMkKEAFhxzymt/DuSMg44Q4zrEfuKCh283rKbGLpnz +sArE5L8F/T8SyoK2Ob208iUFH8Go0y1k11uL37xK+0VkHJzgMh0SRVWul28JASRHOns uECqcLxNVzEmKxt/Gu2bd5yGMpOjXIVaTKKKqXNH6AX+iT5RZrmHBIeujQIqw5WoHdYM NhM4lNA8l6+vtqxsDFiXc4YhZuN0iHMscDZkyhc0njzjwAB5yARwdJ0ZVgooBw8Yga/b +7WlkV/mffoex8G3e4Mtrwti81eiQwtkCnqTMh/xRUBMq3a/d0ZncWAeEYcCR+cD95d+ MnCA== X-Gm-Message-State: APf1xPDz289UwHKZ1Ur3h2xM5xXkRE0YQ8HsFuB+26/fG//ULBt/07Od uMN4YZdvmlRBAzVg3Y74EdDle0qWO4REem/eSgg= X-Received: by 10.157.10.227 with SMTP id 90mr4644170otq.17.1519644328815; Mon, 26 Feb 2018 03:25:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.208.10 with HTTP; Mon, 26 Feb 2018 03:25:28 -0800 (PST) In-Reply-To: <20180226111630.GB4377@pd.tnic> References: <1519629838-4898-1-git-send-email-wanpengli@tencent.com> <20180226094148.GA15539@pd.tnic> <20180226104921.GA4377@pd.tnic> <20180226111630.GB4377@pd.tnic> From: Wanpeng Li Date: Mon, 26 Feb 2018 19:25:28 +0800 Message-ID: Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version To: Borislav Petkov Cc: LKML , kvm , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-26 19:16 GMT+08:00 Borislav Petkov : > On Mon, Feb 26, 2018 at 07:02:29PM +0800, Wanpeng Li wrote: >> > So a guest will have *two* microcode revisions - both of which are most >> > likely wrong?! >> >> Just one revision. > > So what does "the non-sensical value which is written by the guest will > not reflect to guest-visible microcode revision" even mean then? > > cat /proc/cpuinfo > > in the guest shows what exactly? > > And what would RDMSR 0x8b show then? Both are the same values set by kvm userspace. > >> https://lkml.org/lkml/2017/12/9/29 The original discussion explain in >> more details. > > approach. Instead, the kernel should not look at microcode revisions if > it runs virtualized. This is correct. The link explains why the userspace sets microcode revision is still needed. Regards, Wanpeng Li