Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753181AbeAIVkB (ORCPT + 1 other); Tue, 9 Jan 2018 16:40:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45544 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753014AbeAIVj7 (ORCPT ); Tue, 9 Jan 2018 16:39:59 -0500 Subject: Re: [PATCH V4 09/11] KVM: x86: Disable Intel Processor Trace when VMXON in L1 guest To: Jim Mattson , Luwei Kang Cc: kvm list , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , the arch/x86 maintainers , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , LKML , Joerg Roedel References: <1512937857-10477-1-git-send-email-luwei.kang@intel.com> <1512937857-10477-10-git-send-email-luwei.kang@intel.com> From: Paolo Bonzini Message-ID: <69b9277e-e547-95e9-f220-958549f45ec1@redhat.com> Date: Tue, 9 Jan 2018 22:39:51 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 09 Jan 2018 21:39:59 +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 21:16, Jim Mattson wrote: > This doesn't look right to me. pt_disable_intercept_for_msr calls > either vmx_disable_intercept_for_msr or vmx_enable_intercept_for_msr, > both of which only change vmx_msr_bitmap_legacy > and vmx_msr_bitmap_longmode. Neither of these MSR permission bitmaps is > likely to be the one in use by L1 (which is more likely to be using the > mode-appropriate x2apic or x2apic_apicv bitmap). Moreover, these changes > affect all of the VMs that are using those MSR permission bitmaps. Yeah, I replied this morning with something like this, on the thread about removing the longmode bitmaps. Paolo