Received: by 10.223.185.116 with SMTP id b49csp3727087wrg; Mon, 26 Feb 2018 05:09:33 -0800 (PST) X-Google-Smtp-Source: AH8x224GM6A3z+Tco/RBD3mFRhAAb9ckXpnnNdRnyy64qbEogi7UEDRQxxxx5CZ/jgtNpRJZg0KS X-Received: by 10.101.99.205 with SMTP id n13mr8531768pgv.345.1519650573699; Mon, 26 Feb 2018 05:09:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519650573; cv=none; d=google.com; s=arc-20160816; b=c4i18k+F7EHPVcB3GxNxO155JNuwT6I0Xep/ZQyEKV7gR05jBZqfuuqkj4eHQ8O9NT v5AeHLhg6yc5b/HrLfLCOf6jG2YNcBv6vZj44jkJQ0KsaPN5FzB9EPAniZ/7W498buUQ bYIEIVSvveWGuhtS1/pvRp2f2VBVZ7qnQwehXj6v7DHeEWNtTn0goULVniu8+F9Em2Br wfPdYa2LilpH/vVnpemkUg8Wc9kpykhikNPQzp6zO2N+m6yAaNkZez6jHO7X6F3t1SxG C5kcGIt6+5gfWM87WLIL2U9MVcsTfHeXjt+45ImswScVhaUMBrHCPPy6UwpZQZKjC7H7 mtGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=vvj1lOF/ZZUQHxprSdIPE/yjUatyH3Y7ZpcRpASyH3I=; b=00X0jI0GkiVXhQAAVQyJCoD6yx17w/uiaHTHUtYiKflr4NDAJBag3BVkO+ZBaKVavH nSv/AVLNgYz2Cgw0Wp/IRR6mVopSEQNB0dGIYgLDol12BzW03+V3pxjlqJqcpV5PY4x4 /9Yz2hewVKPuxku2Y9mxQDgoFVnpu/dKvsHguOC6yrDhK7cnTbsM5F15QW+HatQZ27ji zGbreF3bL0yrO7RNp8NoEUo7IXkv9zyB/bADzAqBeO6P3IE5HLfEoswQE5dBXD6wyNpE u3D2ph+KzbHTP7/aRorz1b0DZmlc7XnBmuhFYirsch/pOT0x9G6InXMUccCWGMjfsNYf j3EQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si5546944pgc.27.2018.02.26.05.09.19; Mon, 26 Feb 2018 05:09:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbeBZNIL (ORCPT + 99 others); Mon, 26 Feb 2018 08:08:11 -0500 Received: from mail.skyhub.de ([5.9.137.197]:56338 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170AbeBZNGO (ORCPT ); Mon, 26 Feb 2018 08:06:14 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hbka2ccbUPeC; Mon, 26 Feb 2018 14:06:13 +0100 (CET) Received: from pd.tnic (p200300EC2BCE210020411134B639594E.dip0.t-ipconnect.de [IPv6:2003:ec:2bce:2100:2041:1134:b639:594e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DA5271EC0452; Mon, 26 Feb 2018 14:06:12 +0100 (CET) Date: Mon, 26 Feb 2018 14:05:54 +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: <20180226130553.GI4377@pd.tnic> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 26, 2018 at 01:41:38PM +0100, Paolo Bonzini wrote: > 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. :) I fear that that might get misused and we probably should consider some trivial range checking and each qemu cpu model would have a valid range or so. Or we should better do that in kvm_set_msr_common directly... although if we do it here, it would require kvm knowing about all those different microcode revisions and qemu cpu models sounds better... -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.