Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934172AbeAIQLa (ORCPT + 1 other); Tue, 9 Jan 2018 11:11:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40286 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932862AbeAIQL2 (ORCPT ); Tue, 9 Jan 2018 11:11:28 -0500 Subject: Re: [PATCH 9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability To: Liran Alon Cc: jmattson@google.com, x86@kernel.org, dwmw@amazon.co.uk, bp@alien8.de, aliguori@amazon.com, thomas.lendacky@amd.com, rkrcmar@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <901c4def-b0a4-42aa-9a88-cae3c3f64cf0@default> From: Paolo Bonzini Message-ID: <4f15b6d7-6f1e-f578-2310-6dfb639b5771@redhat.com> Date: Tue, 9 Jan 2018 17:11:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <901c4def-b0a4-42aa-9a88-cae3c3f64cf0@default> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 09 Jan 2018 16:11:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 09/01/2018 16:58, Liran Alon wrote: > > The only thing I a bit dislike is that currently these MSRs are always pass-through to guest and therefore > there is no case vmx_set_msr() is called with !msr_info->host_initiated. > Don't you think we should BUG_ON(!msr_info->host_initiated)? All this is in flux. We'll probably get per-VCPU MSR bitmaps anyway before this patch (which is not part of the initial, minimal fix) is committed. Paolo