Received: by 10.223.176.5 with SMTP id f5csp1963101wra; Wed, 31 Jan 2018 14:21:46 -0800 (PST) X-Google-Smtp-Source: AH8x225uOg6LB2U5lXRz0WTuH0bUFen2/8wxpB2GDP+bPkQPHIZk1MFX9Rb/FsXVtTBYi+/omIrM X-Received: by 10.98.200.153 with SMTP id i25mr34354823pfk.241.1517437306814; Wed, 31 Jan 2018 14:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517437306; cv=none; d=google.com; s=arc-20160816; b=S8rYFa0iC5Be53fALvA4IcEtlDLuXFSicK5oc6fm/NyMBKYVrxrwV2bgB8zl6XaPAB h/7rIMMYO+g93iBcHgl2BnTBVdlRJqTvsSd8jHuCgmF3FypiX6PBI6YGmGm7HcPttHlg +7a5d4CZQMJ65i6qlPYtC5f2XocpTGw1XA8xbIuZtaUkNm4NfGTLdqkcCJMh4gdf5g5p rv+2mlaJLR5BFD3yzXt3gGlDqCOiV4m9ZMineNWyEiImzA7ZdJLKgKeHQJHkij6lfZC+ KLR4+ZXQ7TswZBtltxvwsLbzG+bynBomoJMeS+LYNw0wDQ2Tg9fyzV4GwqwMGRZpZSgX 31HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=PdVSKm8CM1BkIN5ba/1RcxPxXSsF1Mshi9fIGSsbr/E=; b=WkUwmvksaxC2Gzf4IHzgPYm8IAL/zTccUiSYEJU+uLydXnYRNMJNvJ/xuXwRvIyGAX wc73XyOVgJFv6e87gTv1Znv8238vxcuoG04CNQy2BYpX8FP/XtOjBHWDojeSXNkajbHT 6DbjMmqd5znUT/GuM0XbWiFJX5KM0gCwzomn71tWUFFxKUWUX3tT6ZEsMbSJ5F+wR4/6 DUB2CkghCokyBtSmo8aRXKcal5ID66IXdvLajKWvB/vsyG+xu3yJ+ZVRpkNdk3jbdCaN ar+3NIUvZmnPWZjXeazCc9BYEYG0uCeLen+dip7Uoon7Etd3QGW0s8zBywlC5s9iVwYd xvPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mzcSsrI8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t193si4238973pgc.38.2018.01.31.14.21.31; Wed, 31 Jan 2018 14:21:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mzcSsrI8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751632AbeAaWVH (ORCPT + 99 others); Wed, 31 Jan 2018 17:21:07 -0500 Received: from mail-io0-f169.google.com ([209.85.223.169]:40976 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433AbeAaWVE (ORCPT ); Wed, 31 Jan 2018 17:21:04 -0500 Received: by mail-io0-f169.google.com with SMTP id f4so16940657ioh.8; Wed, 31 Jan 2018 14:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PdVSKm8CM1BkIN5ba/1RcxPxXSsF1Mshi9fIGSsbr/E=; b=mzcSsrI81D8CvAL0to+yoIoEmK2tTKrK/fUf2rkFPUdJbM2mBVB2wwsXBRYL5EY6/i d4MQ/qmRnhwkoU9VpaeKWH6jRPuITBWtkwT1uJiM2PHkgZvkYM/a7wsM2NUJLuEHtm2K IRCmdLo2guG6DwyrX5Ox/Bjy447LL4C3qFW1TwmV4Xv5F5mqLtMf9v/gdaDoenyfOwOY 4HZAxM89HGYVeM59zVz8bV6MTYO2qLQBzoVvGo45V5Eu+PAANrLQrtLxtn2a7WxmJlMH HicYtPiuULc5NinXU2s3CWBVLF57IaG/Pv+2lWRDZTlCwakN4+24d9rvJCbv9v8f7I94 +gVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PdVSKm8CM1BkIN5ba/1RcxPxXSsF1Mshi9fIGSsbr/E=; b=SVk6mV515VtRhvU3KN9WDN61jcf9iAhIoQBFnQBrswAtXUDjyxOJV5Rjf3vP+Nog3b Vxw4/YnF4ZTpWfRkdVE8RxfD/810Jgj0n4XJuhI2NMfBkDJGgUxMbch2n1MLGdEJtVjv Nh2Y35hJC6JxkfkRPO5lOOUZipUfLsTyPzRKUmuo5adTLDukQmJqxqLTrl3xVyZLoQz5 0tL2chUBYUFOG/YVNP2v9EdweC3MfqHpGVGtGgZmOnJpk/3utsaZVN9UlOSb6WApEHrX 4N8jMg/Ery4huhaSckbxGCgYxMqv0APDSAFJwsla2Y/c3T8cU45B2qq2A+CBaHaf3BIJ ajJg== X-Gm-Message-State: AKwxytcNujYyIj7H5tljSAW3DyUMjeByvVkm7Fx4vHJtZ70ZrTZYLUDb YtqDpvKf+ivIEIEAzxTP3ei/LjSfqn0zqHCCbsA= X-Received: by 10.107.132.3 with SMTP id g3mr35606853iod.46.1517437263544; Wed, 31 Jan 2018 14:21:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Wed, 31 Jan 2018 14:21:02 -0800 (PST) In-Reply-To: <1517436624.18619.224.camel@infradead.org> References: <1517427467-28567-1-git-send-email-karahmed@amazon.de> <1517427467-28567-5-git-send-email-karahmed@amazon.de> <06cb88da-f355-41ed-380f-7daa8ddf6159@amazon.com> <67dca2bb-1298-c7fa-f681-018e4edc6725@redhat.com> <16d89e09-fbfc-4a08-00a6-40cfb4776018@redhat.com> <1517435981.18619.215.camel@infradead.org> <1517436624.18619.224.camel@infradead.org> From: Linus Torvalds Date: Wed, 31 Jan 2018 14:21:02 -0800 X-Google-Sender-Auth: Bx0oNhTIWqITHTLwVkEdxhWX2Dg Message-ID: Subject: Re: [PATCH v5 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL To: David Woodhouse Cc: Jim Mattson , Paolo Bonzini , KarimAllah Ahmed , KarimAllah Ahmed , kvm list , LKML , "the arch/x86 maintainers" , Asit Mallick , Arjan Van De Ven , Dave Hansen , Andi Kleen , Andrea Arcangeli , Tim Chen , Thomas Gleixner , Dan Williams , Jun Nakajima , Greg KH , Andy Lutomirski , Ashok Raj Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 31, 2018 at 2:10 PM, David Woodhouse wrote: > > Given that IBRS_ALL is supposed to be a sanely-performing option, I'd > rather convince Intel to just make it unconditional. If they've added > the appropriate tagging to the BTB, why even *have* this deliberately > insecure mode when IBRS==0? > > I understand that until/unless they get a *proper* fix, software is > still going to have to use IBPB as appropriate. But there's no need for > the IBRS bit to do *anything*. Amen, brother! Please please please can Amazon and friends push this? The current situation with IBRS_ALL is complete nasty horrible garbage. It's pointless on current CPU's, and it's not well-defined enough on future CPU's. The whole "you can enable this, but performance may or may not be acceptable, and we won't tell you" thing is some bad mumbo-jumbo. Before IBRS is good, we'll do retpoline and BTB stuffing and have those (hopefully very rare) IBPB's. So the whole "badly performing IBRS_ALL" is completely pointless, and actively wrong. Linus