Received: by 10.223.185.116 with SMTP id b49csp1064609wrg; Sun, 11 Feb 2018 03:47:44 -0800 (PST) X-Google-Smtp-Source: AH8x226ljEBFpV2mq8m3nZlx+d6fWVG1/tzhvbROYgLBDQef+sYzG9La2fshUiCWX1nbS6+7Yut0 X-Received: by 2002:a17:902:8a8a:: with SMTP id p10-v6mr7679449plo.261.1518349664280; Sun, 11 Feb 2018 03:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518349664; cv=none; d=google.com; s=arc-20160816; b=VcwFH0xKBYj2NecNHxUuvCe8HuPAhlGlHsyefr8HrfDZ5YhUzbFlLKolr3OUMxjKv/ Vq0uxLVctwiWdF0LaHhTC/bL19uYPlafmUZWg7ibgogWQWztoTGPhu5S727bODPVUU1n w7FdpKP5AsYfTHJZrQFB4BQeISLXuGV6EbbVX43NhhsXKgfJPsGP5cLmHKL24aYNmrYk ysM8iB7SQCJEaJlHtJDqnvW3pQymCQZ5fo5gT+lIgEgNtCnXxMhSg5+1BMA8kQCRqOq5 yeHEjzT2D3JssXHNZB5r28GR3XPP55qgsp3iTG++8GnSSYodJN0Wdkz/YYNeoc91W4d6 mRUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gtTgZhvstV80A6ofVKKeL2Eom6N3xheidlhnvrznD4A=; b=e12ojZJyPcfm27KqT90cjOF+8Y88HHp//xVdPNHmYo0iGpA/RM/9sx9VbdbWEFbjpl vlD7zOcJbed2HRmrerz67AumWZDuStUiClZW0ziPUDOyc0RHphW5A9ADl9mPP16o8KDk 1xOW2eJP6w3qfC55mPn35GZYe7ZLYDkn9narFZPTWicBsuU2t/Jg7v/6lmRlpVmCoM1o dnKOLrVPyZBj6R3gtpfdKDI62jBT2ZLMkxNNaaFrlkY/UziAoNMBOLt7emX+Xl6D8Kml YUHYn0Sw/tSfh+t+ViPIbzg3fEohzpWwx6nYQGTIwcFhs7cEp8HYANBnYORcYTE29gDb FFzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rZz/vtxy; 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 5-v6si4385169plx.742.2018.02.11.03.47.30; Sun, 11 Feb 2018 03:47:44 -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=rZz/vtxy; 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 S1753303AbeBKLqt (ORCPT + 99 others); Sun, 11 Feb 2018 06:46:49 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33035 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753065AbeBKLqr (ORCPT ); Sun, 11 Feb 2018 06:46:47 -0500 Received: by mail-wr0-f195.google.com with SMTP id s5so12481437wra.0; Sun, 11 Feb 2018 03:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gtTgZhvstV80A6ofVKKeL2Eom6N3xheidlhnvrznD4A=; b=rZz/vtxygoIZqaGnVL4oOrZs/c5w4hT5M+wbJAtE/+vVqkAMnysaUmVWUy6+hbUiLP RaAm0l7ZbwlVb8iwIhmpP1A1TQIhXi8DEtqbjyERu5v2rDPy2PlTnVG+zZxVYemKTVTv NlZVnFh9+C0LBMe9DgvCKq+NLxzpMS/arO8XfoKKd91a+CNo/2cr8fx82Ddhnsvikyo9 c2jbZkhA6b4M/eXFfVYSQNTTXdqe764PfIiehTkAM+jxOZz3mMRGdteijXwwSxXj6/cD /FCuzePB2V1pEPlSVr3I2Q/t1Lx3JLpJAHSQZHo6xpTuET2hjLhixOuyQ0Fml2miFsL9 yT9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=gtTgZhvstV80A6ofVKKeL2Eom6N3xheidlhnvrznD4A=; b=XIS3BWqa2yVdf2719h8d7vTlxMZ8q/nkOboRMk/fETbMe1mWRAENbD1X+91qfmT8PW BC8aQPm9V8Os4C4oFINEdqdLmMCZCvFrWF1NpMw0sBf75At2Wy68ErMn2gj2Tn8tAYTm Wex2Rk6kIpRQ3SGZDJXugVh3YoHe2GcNoy0iLO5TwqGL6pYfseq1/L7R4hngJHgOiY4q 3gUYizC3m87W2RnmjvpH0GpogQmwdHZE42JaSu4Lo8Mdj8FsSUqsbknObGO3gZ2cKpAo 1Jc6K2VRR7GlNkwX7ZHJ0ptVuMumWjLwZM6sjQHxO6I5TQoBkPor9yVvpU4H+B3G62i+ 2Quw== X-Gm-Message-State: APf1xPBVE1fmp2TolaAzli7U9xBWh+9H9H0pSSd9T9GuvMGJmtd2JWKz v2CRImzyx3ph2I+HHT+PMnY= X-Received: by 10.223.134.236 with SMTP id 41mr6850268wry.87.1518349606543; Sun, 11 Feb 2018 03:46:46 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id c5sm4737200wrb.63.2018.02.11.03.46.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 03:46:45 -0800 (PST) Date: Sun, 11 Feb 2018 12:46:43 +0100 From: Ingo Molnar To: David Woodhouse Cc: tglx@linutronix.de, karahmed@amazon.de, sironi@amazon.de, x86@kernel.org, kvm@vger.kernel.org, torvalds@linux-foundation.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, bp@alien8.de, peterz@infradead.org, jmattson@google.com, rkrcmar@redhat.com, arjan.van.de.ven@intel.com, dave.hansen@intel.com Subject: Re: [PATCH v2 6/6] x86/speculation: Use IBRS if available before calling into firmware Message-ID: <20180211114643.mek3zydznbernsdr@gmail.com> References: <1518305967-31356-1-git-send-email-dwmw@amazon.co.uk> <1518305967-31356-7-git-send-email-dwmw@amazon.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518305967-31356-7-git-send-email-dwmw@amazon.co.uk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Woodhouse wrote: > Retpoline means the kernel is safe because it has no indirect branches. > But firmware isn't, so use IBRS for firmware calls if it's available. Ok, this approach looks good to me in principle, but: > --- a/arch/x86/include/asm/apm.h > +++ b/arch/x86/include/asm/apm.h > @@ -7,6 +7,8 @@ > #ifndef _ASM_X86_MACH_DEFAULT_APM_H > #define _ASM_X86_MACH_DEFAULT_APM_H > > +#include I cannot see this header file upstream anywhere, nor in any other patch in my mbox - is there some dependency that has to be applied first? Thanks, Ingo