Received: by 10.223.185.116 with SMTP id b49csp3702922wrg; Mon, 26 Feb 2018 04:44:15 -0800 (PST) X-Google-Smtp-Source: AH8x225Bt2aVuWXTKH5+VaU46Ym5C6Ih1ohLVg9wfxE3ExQxgnBj2efHzSHEB2rc4urbRhIJ3bB4 X-Received: by 10.101.66.76 with SMTP id d12mr8303417pgq.234.1519649055246; Mon, 26 Feb 2018 04:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519649055; cv=none; d=google.com; s=arc-20160816; b=TXk5Fi5P4GjQXMfSTCDsjfTPLI2oIa5nZ4vUvJopKJJm+cMb8TzqaB8Dsqk/hLlvF4 +7y4SlrDMTkHMcPTVOl3WLE3z2Qc+68s6dkDGgpFlufuAOEKuPgPMellrEgHytmDFP3X NQqo5s1S9Sk02ty14wErsRZtk9StFsUE8L7Bu0CPrlWqX6kHrIBITq8hfYyCRhn9DcDr 1WDbnRxjtqJ6vEPNBq8zwvVjjfkTGPqwjgp54nr185s+vE3sXS1x3iit3qrh+/2dzQvU JgBg5FpzFByz2yDE/aUDRihB0xP96C8yMdpiBKXrUyzlQEKrv50xBUyMFFkBFV+1qBqz cylw== 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=7YLbROdauBDCzEPhZHNwbacLw8wBNWjsqcfXd0lOuVk=; b=oCjz0Jh3qdCmzrAAaPuyejAZUDDZV9unqqWoP60vTGtcmw5JLTAU76oxKmGQo6tgOg 4uLRztR6cLg8jXny2NrlmF2FRs6+Lq7qQoTFOv3+sngCESFyoVfvli9iJsLG29RTj9ue ay1c0ix9two06MWXuumaUhKcCuvF80s77Iuafh1rRe1hJkeXRSd14oeDbOKXUxBWJK18 JX8BS7m/FXtUtQARkZYIKmNYiYawxqxqyEQs0hDdDsIidzUlGbABK09UjHbyrv4fnNpG 8NzOnyAjv4sB3DkhEtTtgUKwjX42Ya5VW1BeISax2jTnwBKYBUmqE37QTLNAKNnQYW7E 5GrQ== 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 d23si5472411pgn.683.2018.02.26.04.44.01; Mon, 26 Feb 2018 04:44:15 -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 S1752934AbeBZMlo (ORCPT + 99 others); Mon, 26 Feb 2018 07:41:44 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35438 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752698AbeBZMll (ORCPT ); Mon, 26 Feb 2018 07:41:41 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A0BD2402242D; Mon, 26 Feb 2018 12:41:40 +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 AB52E215671B; Mon, 26 Feb 2018 12:41:39 +0000 (UTC) Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version To: Borislav Petkov Cc: Wanpeng Li , LKML , kvm , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= References: <20180226111630.GB4377@pd.tnic> <20180226113000.GC4377@pd.tnic> <20180226114409.GD4377@pd.tnic> <46cecef2-b0fb-b0c2-bbf3-983328d52763@redhat.com> <20180226121509.GE4377@pd.tnic> <24cd527d-5287-f0be-ffe8-eab341bf1d94@redhat.com> <3866d359-0ef8-6a99-6254-84890be62b93@redhat.com> <20180226122205.GG4377@pd.tnic> From: Paolo Bonzini Message-ID: Date: Mon, 26 Feb 2018 13:41:38 +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: <20180226122205.GG4377@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 26 Feb 2018 12:41:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 26 Feb 2018 12:41:40 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 13:22, Borislav Petkov wrote: > On Mon, Feb 26, 2018 at 01:18:07PM +0100, Paolo Bonzini wrote: >>> In this context, "host-initiated" write means written by KVM userspace >>> with ioctl(KVM_SET_MSR). It generally happens only on VM startup, reset >>> or live migration. >> >> To be clear, the target of the write is still the vCPU's emulated MSR. > > So how am I to imagine this as a user: > > qemu-system-x86_64 --microcode-revision=0xdeadbeef... More like "-cpu foo,ucode_rev=0xdeadbeef". But in practice what would happen is one of the following: 1) "-cpu host" sets ucode_rev to the same value of the host, everyone else leaves it to zero as is now. 2) Only Amazon uses this feature and we ignore it. :) Paolo