Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759329AbeAIQkz (ORCPT + 1 other); Tue, 9 Jan 2018 11:40:55 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:36488 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759280AbeAIQkv (ORCPT ); Tue, 9 Jan 2018 11:40:51 -0500 X-Google-Smtp-Source: ACJfBosbtM/d+ocNLwXEY1kxdIuDaLE0fSXL0ijcjV6S+X61EjAdkE1RnVga4LKF5V7NDgQfyBJGHiYwX0GYlsNhzMc= MIME-Version: 1.0 In-Reply-To: <4f15b6d7-6f1e-f578-2310-6dfb639b5771@redhat.com> References: <901c4def-b0a4-42aa-9a88-cae3c3f64cf0@default> <4f15b6d7-6f1e-f578-2310-6dfb639b5771@redhat.com> From: Jim Mattson Date: Tue, 9 Jan 2018 08:40:50 -0800 Message-ID: Subject: Re: [PATCH 9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability To: Paolo Bonzini Cc: Liran Alon , "the arch/x86 maintainers" , dwmw@amazon.co.uk, bp@alien8.de, aliguori@amazon.com, Tom Lendacky , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , LKML , kvm list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: I'm going to try to get per-vCPU MSR bitmaps out today or tomorrow. On Tue, Jan 9, 2018 at 8:11 AM, Paolo Bonzini wrote: > 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 >