Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10966430imu; Mon, 31 Dec 2018 10:05:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4OtniyyzvNDaQwqN7bhYg8+Bjj2dcGv5vpCIyFRnCk8fgPRBOtU7hh2VUghltdIupcCxPV X-Received: by 2002:a62:1e45:: with SMTP id e66mr38419710pfe.152.1546279544869; Mon, 31 Dec 2018 10:05:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546279544; cv=none; d=google.com; s=arc-20160816; b=uuhFB2kk+kp7sHMKYVTCnqv4gwS52MvVp7BI8uZjCkkHfxPdlgrnrzOO43pCZubp4+ V3ig1aHZow8iJuwxwYKOcuUc3mMz1uOcF5XCDWgj9JzFEuf3zo+Abj/cossc1yq5Kwr9 MwtsTAqEk7hSVVEG4cf89h4gW0UAzGzN+GSAcmBYkZ+AboWEFVaueD0pYMv50HxJmQ4t 0QOUae8nbF40NkXo9r16naoj/uPS6gvh4OTEepxBjwbQUbCWABZcD/u/lE1/+AuutFeX UQjkkewjh1pGf4HofZz2/NfBlWSuPdPdY5dgwmG3w8IHZClGKqschNvOc7FpQO8cqKrY K90w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-filter; bh=ii2y9SbbkAD4PoTbN3+ZcxplKbkflb4l5JXfo32saKQ=; b=UJ2t4BBnPgV5ipbkFo1PlP9nfpIsnJ2lyc+ouZOoNiu1Bi0GXVzBJYWzCdgGvAK78m sRAF5oDjTRSC0Y3lCHn5X/4Vd6LHcJbIefEdsinhvquXOmTHT4XWPu7hsGee7q2jtG++ UYo3CT2pKJBP85QAzuo7HKYglUKP6ldtIl2Tq36O/UdZACkUexHlILlaoo/divN50xw7 iohylb0TLVtWkZ0WNFl8IjLruZdXLPE1nxmF3hzmEdNNC1rPmCap2ZIRDlE5euvRXWBJ dgGjbZGMVMSiGxshzKPnYob64qXBVeVejQzfALVKLNcenmNTJrJanpm/4YP0jXnkrjth T7yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=LxnOl42N; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si546620pgv.512.2018.12.31.10.05.09; Mon, 31 Dec 2018 10:05: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=pass header.i=@candelatech.com header.s=default header.b=LxnOl42N; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbeLaQXM (ORCPT + 99 others); Mon, 31 Dec 2018 11:23:12 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:41044 "EHLO mail2.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbeLaQXL (ORCPT ); Mon, 31 Dec 2018 11:23:11 -0500 Received: from [192.168.1.47] (104-235-168-9.evrt.wa.frontiernet.net [104.235.168.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail2.candelatech.com (Postfix) with ESMTPSA id 1D93740A626; Mon, 31 Dec 2018 08:22:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail2.candelatech.com 1D93740A626 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1546273388; bh=NNnK+sMWElOcWI7DzR+H+uq1YtnavaNDDxCsIuiq/KE=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=LxnOl42NZ8RqSRBOgpnVAZR5ANuQ1XKsZBglRHWzDImhmIMjXQO1eIut1wT+QMHFJ Ul4Qhfcwp4+hZeJ9fqROGWlhUDR0sL4MbZ2OuOSKTZYEeFX1VyY+gha/xwr9ep5xxN hb25Cx2i07PQmnr/5An7EDZ3iz33sOl3MLWkkV5E= Subject: Re: [PATCH] x86/speculation: Add document to describe Spectre and its mitigations To: Tim Chen , Thomas Gleixner References: <64efec3fda40c0758601bf9b1480a35d76d3c487.1545413988.git.tim.c.chen@linux.intel.com> <1c7923ec-70aa-25d4-3de1-f1b1768bb80b@candelatech.com> Cc: Jiri Kosina , Linus Torvalds , Tom Lendacky , Ingo Molnar , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Andi Kleen , Dave Hansen , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Greg KH , Borislav Petkov , linux-kernel@vger.kernel.org, x86@kernel.org, stable@vger.kernel.org From: Ben Greear Message-ID: <5d45f3ef-a91f-815a-f532-62e75899e697@candelatech.com> Date: Mon, 31 Dec 2018 08:22:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/21/2018 05:17 PM, Tim Chen wrote: > On 12/21/18 1:59 PM, Ben Greear wrote: >> On 12/21/18 9:44 AM, Tim Chen wrote: >>> Thomas, >>> >>> Andi and I have made an update to our draft of the Spectre admin guide. >>> We may be out on Christmas vacation for a while. But we want to >>> send it out for everyone to take a look. >> >> Can you add a section on how to compile out all mitigations that have anything >> beyond negligible performance impact for those running systems where performance >> is more important than security? >> > > If you don't worry about security and performance is paramount, then > boot with "nospectre_v2". That's explained in the document. There seem to be lots of different variants of this type of problem. It was not clear to me that just doing nospectre_v2 would be sufficient to get back full performance. And anyway, I would like to compile the kernel to not need that command-line option, so I am still interesting in what compile options need to be set to what values... Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com