Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966233AbeAJRQX (ORCPT + 1 other); Wed, 10 Jan 2018 12:16:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36136 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965999AbeAJRQU (ORCPT ); Wed, 10 Jan 2018 12:16:20 -0500 Subject: Re: [PATCH 3/8] kvm: vmx: pass MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD down to the guest To: Jim Mattson Cc: Liran Alon , dwmw@amazon.co.uk, Konrad Rzeszutek Wilk , the arch/x86 maintainers , bp@alien8.de, Nadav Amit , Tom Lendacky , aliguori@amazon.com, Arjan van de Ven , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , LKML , kvm list References: <65578664-e3ec-f894-4e94-ff9fe6d7d6b3@redhat.com> From: Paolo Bonzini Message-ID: <4ceeadb7-61c0-e5b9-867d-16c2bedcabc5@redhat.com> Date: Wed, 10 Jan 2018 18:16:09 +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: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 10 Jan 2018 17:16:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 10/01/2018 18:14, Jim Mattson wrote: >>> If (a) is true, does "IBRS ALL THE TIME" usage is basically a CPU >>> change to just create all BTB/BHB entries to be tagged with >>> prediction-mode at creation-time and that tag to be compared to current >>> prediction-mode when CPU attempts to use BTB/BHB? >> >> I hope so, and I hope said prediction mode includes PCID/VPID too. > > Branch prediction entries should probably be tagged with PCID, VPID, > EP4TA, and thread ID...the same things used to tag TLB contexts. But if so, I don't see the need for IBPB. Paolo