Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758907AbeAIP4z (ORCPT + 1 other); Tue, 9 Jan 2018 10:56:55 -0500 Received: from mga14.intel.com ([192.55.52.115]:1819 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756793AbeAIP4x (ORCPT ); Tue, 9 Jan 2018 10:56:53 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,336,1511856000"; d="scan'208";a="25773381" Subject: Re: [PATCH 6/7] x86/svm: Set IBPB when running a different VCPU To: Liran Alon Cc: jmattson@google.com, dwmw@amazon.co.uk, bp@alien8.de, thomas.lendacky@amd.com, aliguori@amazon.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <2779f941-9011-4dd1-8ef0-6b035fbf0e2f@default> From: Arjan van de Ven Message-ID: Date: Tue, 9 Jan 2018 07:56:52 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <2779f941-9011-4dd1-8ef0-6b035fbf0e2f@default> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: >> I'm sorry I'm not familiar with your L0/L1/L2 terminology >> (maybe it's before coffee has had time to permeate the brain) > > These are standard terminology for guest levels: > L0 == hypervisor that runs on bare-metal > L1 == hypervisor that runs as L0 guest. > L2 == software that runs as L1 guest. > (We are talking about nested virtualization here) 1. I really really hope that the guests don't use IBRS but use retpoline. At least for Linux that is going to be the prefered approach. 2. For the CPU, there really is only "bare metal" vs "guest"; all guests are "guests" no matter how deeply nested. So for the language of privilege domains etc, nested guests equal their parent.