Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753827AbeAIVm6 (ORCPT + 1 other); Tue, 9 Jan 2018 16:42:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50670 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753704AbeAIVmy (ORCPT ); Tue, 9 Jan 2018 16:42:54 -0500 Subject: Re: [PATCH 6/7] x86/svm: Set IBPB when running a different VCPU To: Jim Mattson , Konrad Rzeszutek Wilk Cc: Arjan van de Ven , Liran Alon , dwmw@amazon.co.uk, bp@alien8.de, aliguori@amazon.com, Tom Lendacky , LKML , kvm list References: <74e86dd8-804e-c9f2-098f-773283ac7065@redhat.com> <1255f660-55c5-86f0-07d0-b5846af35c4a@redhat.com> <20180109203909.GG19756@char.us.oracle.com> <20180109204715.GL19756@char.us.oracle.com> From: Paolo Bonzini Message-ID: <705f09f9-843f-97cb-4d4b-4b6818fcca7a@redhat.com> Date: Tue, 9 Jan 2018 22:42:46 +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.32]); Tue, 09 Jan 2018 21:42:54 +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:57, Jim Mattson wrote: > Before VM-entry, don't we need to flush the BHB and the RSB to avoid > revealing KASLR information to the guest? (Thanks to Liran for > pointing this out.) I don't know how you flush the BHB? As to the RSB, that would also be part of generic Linux code so I've not included it yet in this series which was mostly about the new MSRs and CPUID bits. Paolo