Received: by 10.223.185.116 with SMTP id b49csp5155531wrg; Wed, 7 Mar 2018 07:11:59 -0800 (PST) X-Google-Smtp-Source: AG47ELuNn7xcUT244zLMSv8JBlRzdF6fjvD2/+0Nda4vrscvmvjBFa9oC4dgYEs6C0Coe5rtilp2 X-Received: by 2002:a17:902:6597:: with SMTP id c23-v6mr19287288plk.414.1520435519838; Wed, 07 Mar 2018 07:11:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520435519; cv=none; d=google.com; s=arc-20160816; b=gsfCffYlY/9qSfjY9WUoOKXYnqaOENb5Y3xC1lBx2CXnBgLkJQNLQYjGrMVwHHY3yl 2tPw/K+kikPoHeao6km6BS9rb5s/zsofHf98I+T6+6PWpbro7xaxu6FWgoDaze715mwn Rs1D2nhT+m+EWjc7TP03VLPfRkFueprRpUhrb00+IwswV0bp8YvUSjIT/PM1J3QEg0a6 u0ujwh1971+1ZhmIEZdfD4+/u8XF4FcK9oDhvQ/mwNx3qKvUyFPKsI0dwTtxJPI0IIm1 RZ+ov1IleyiXQw5M7QPuhsS3mCu4tGgeRIDuBkrUur2LN38oFoEuSb+h5kFMVXlauYc2 wE+Q== 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=4VNwhfIfevwwX9QYnR1Za/YQqc+fYdRCj8Z6P0YJiPM=; b=XTXRDzZe9bZnz1cm0ndT0IDO1JfNxbncAzmXHUuuWd4OSCJ4V6+NlRjBUKfLh6qiS5 ihQ+89/2KWz7OtdnQjGi1fOa8SV6aMojV/w7TIt70sF9wM1Cz94Xwk8d3yNtWbiqqLbu 4Eheol52CwF0Rcxa/K3NBCofc58cRFfr7OEtXOYHHlIB5aaOJPG3u8CJ/mxurgjKRfvF fTVGW83WY4rZGwVCM8yKz3z567RcKxT7ldofilt27ZNNYtZLgeldk7WGIAJPy/scRZa3 rQRjAAokILuov3zXImgeE+IAhsLk9ZTG6sZDsAxXyjjFts7mQzCneuDRRyOIBsK3Ow+N ChQw== 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 a5-v6si12925983plh.450.2018.03.07.07.11.44; Wed, 07 Mar 2018 07:11:59 -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 S1754731AbeCGPKR (ORCPT + 99 others); Wed, 7 Mar 2018 10:10:17 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58458 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754608AbeCGPKO (ORCPT ); Wed, 7 Mar 2018 10:10:14 -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 E22308424D; Wed, 7 Mar 2018 15:10:13 +0000 (UTC) Received: from [10.36.118.61] (unknown [10.36.118.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B6501215CDA7; Wed, 7 Mar 2018 15:10:12 +0000 (UTC) Subject: Re: [PATCH] KVM: VMX: expose the host's ARCH_CAPABILITIES MSR to userspace To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, David Woodhouse , KarimAllah Ahmed References: <1519433546-33879-1-git-send-email-pbonzini@redhat.com> <20180226221300.GK22024@char.us.oracle.com> <20180301213205.GB29001@flask> <20180302214212.GB13606@flask> <9cad32c8-fdb6-95db-2cd3-a0e3297b1811@redhat.com> <20180307145628.GA12299@flask> From: Paolo Bonzini Message-ID: <37a89c09-e933-9256-1b7a-3a9df846a672@redhat.com> Date: Wed, 7 Mar 2018 16:10:11 +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: <20180307145628.GA12299@flask> 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.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Mar 2018 15:10:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Mar 2018 15:10:13 +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 07/03/2018 15:56, Radim Krčmář wrote: > The MSR_F10H_DECFG default is questionable -- MSR_F10H_DECFG is an > architectural MSR, so we'd be changing the guest under the sight of > existing userspaces. > A potential security risk if they migrate the guest to a CPU that > doesn't serialize LFENCE. ARCH_CAPABILITIES are at least hidden by a > new CPUID bit. Good point. Perhaps we should add a KVM-specific CPUID bit for serializing LFENCE. > The feature MSR defaults are going to be a mess anyway: we have > MSR_IA32_UCODE_REV that is tightly coupled with CPUID. Not a good > candidate for passing by default and currently also has a default value. Yeah, ucode revision is out of question. Paolo