Received: by 10.223.185.116 with SMTP id b49csp3546242wrg; Mon, 26 Feb 2018 01:43:33 -0800 (PST) X-Google-Smtp-Source: AH8x225vlcEnv8V0NSEhX/ShgXHBXBZFEODSO3kwSbWP3xDYs9HcryH2SyMUI/qiZhxqF0gYe5x0 X-Received: by 10.98.253.17 with SMTP id p17mr10005635pfh.105.1519638213793; Mon, 26 Feb 2018 01:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519638213; cv=none; d=google.com; s=arc-20160816; b=hffqOeaZ6vigTRuu73QQKsMt2daLuIwtexbAH0Iy+cXTeY2StELXBKyLxYAmlz7zIR TecKu0Pu9XlrkOZ7VXkNEOm7VTqS7mCjFA03k3eKjmC5PLQpNABK8KlSCRl0XWv8ZivB xj3OgHqdWjlR2MhRKk1GnbEZqH8Tcf9JbbSGJgW3LMpCLkiAlgtoyrTJCc2hxkogwkxe 6DkMzzAFNyCp/9g9MK7fn7eWRwn1W0O4orAsPAvzus6SBUMd3AeWgm2OyqKWBPdBZAPz 2BKk02vm8oYLYV49yyg2aaMxdaywfkxDOGItU/7ftM/6UI4bLEP0aP3tFvZLTlSOG9/t vYhA== 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=yRHqEMdladQ7JYfKShaSfvSk3WcFtA/IPNv8Qy5KUoI=; b=TOrEuDK/M8jEBpaC8nh9E81a+ibc0edVG2/HDz1+CBLujD1iN7mAFd/54a7AA4BYlv k19HxxafKhgl+Y+2tHGhUcPXCWvHrFg3tFcseLqZFTrEdLQ1tKX4OwKB+N7R2nmtDlri h/ITn2/cLOvmTktIBdzr3Dnu1hH1/GYAuJ7/9oZ01vHeVp3RR+zj9uvNidCOgoeSD0ym ZBC4QbWZcmqlF7Bo3Dk7mVT0IS55NK57JdxGnAiri9ScBVZpPf6bYDnmQhgYmuHXeuPS 0FPEl7B5jE+4Tg0huprtDNuYCz5XTjdqQaheGqO1gAS7OQA0E/VbirPjKmzqK62b3spK LKyA== 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 q9-v6si6417587plr.110.2018.02.26.01.43.19; Mon, 26 Feb 2018 01:43: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 S1752258AbeBZJmO (ORCPT + 99 others); Mon, 26 Feb 2018 04:42:14 -0500 Received: from mail.skyhub.de ([5.9.137.197]:47468 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbeBZJmK (ORCPT ); Mon, 26 Feb 2018 04:42:10 -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 GTcmZlftTr6H; Mon, 26 Feb 2018 10:42:09 +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 3ABA41EC0991; Mon, 26 Feb 2018 10:42:09 +0100 (CET) Date: Mon, 26 Feb 2018 10:41:48 +0100 From: Borislav Petkov To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] KVM: X86: Allow userspace to define the microcode version Message-ID: <20180226094148.GA15539@pd.tnic> References: <1519629838-4898-1-git-send-email-wanpengli@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1519629838-4898-1-git-send-email-wanpengli@tencent.com> 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 03:23:58PM +0800, Wanpeng Li wrote: > From: Wanpeng Li > > Linux (among the others) has checks to make sure that certain features > aren't enabled on a certain family/model/stepping if the microcode version > isn't greater than or equal to a known good version. > > By exposing the real microcode version, we're preventing buggy guests that Where do we prevent userspace from coming up with some non-sensical microcode revision? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.