Received: by 10.223.148.5 with SMTP id 5csp7178153wrq; Thu, 18 Jan 2018 01:53:30 -0800 (PST) X-Google-Smtp-Source: ACJfBovnfMd4K1eC0o6fhS8SpFPcIObb9weqq+mFKCd6VG8kMWwCmoWjQTrWb7J/ml0oBTjsvsw4 X-Received: by 10.98.93.157 with SMTP id n29mr32577717pfj.195.1516269210461; Thu, 18 Jan 2018 01:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516269210; cv=none; d=google.com; s=arc-20160816; b=QIrDZZFrrth9V2uhT/wib/omvS+hypO+DVIgXE4sbhJansgiOc/ts84BAT0CXlBf5+ pZ4FuWLC/QIwdsop8bCvPpcQqWNdLaa4WqP95+iYYp3XrJAF/VUkSFp5/BFoXHV/W5Oc +LCqoG2Kt6McNtv2xMn5oDy6odJYU1y6GRWJ1JNV3V0iuVdGiKG60EPlH6n1FTCOvRyJ GNJQHovgQ3HHCOmjuSG1LSfh7E58e+Ell1N0mrgdqJukgyW22r3pVLZe8ic6vjv3gRwr 0IywtTRg9WcgB8dl3ODjJ6V+4csQwEljSzh3aWIu3goGzeGlrxc9q/EtroVF9d/32cK5 zpOg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=IwRI5/bP2ZbtREm1rl+fgJFBrIgDw4lzrNzRfLLu/1o=; b=Gkm4Iutwf3Jyqliud5VFG1BeYbuzkdAYxOkasQUg3uAKy/RTrXOiHjxdHkTfb/VPKS Ya51PqFncnBaXSTB5y2tyvPElgs9SEqVNDUoBt2ik6VLqGYv6IsFH/ugoE5lKGjoYgpE aqGPZ7qdw2T2VI5ETNhhWZYaogw3DwYRVgCvcwkM66AwIbd77bKy/TEGt+vdW0bzK3i1 9HPIGI1hZ1mhzLZ/gs/liqUoojDg1jgrGrcJEqx58iJvv/VaOYFDZyf9C1qNj4zUpi3y 0kXUvMZH1U+d3hd4fuWT2PuuMXhNhGZBqumLSWc4M9PuKRb/IqE7MilJUT5OvsCl3a7x MwPA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh3si6278470plb.795.2018.01.18.01.53.16; Thu, 18 Jan 2018 01:53:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932231AbeARJwe (ORCPT + 99 others); Thu, 18 Jan 2018 04:52:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43058 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932089AbeARJwa (ORCPT ); Thu, 18 Jan 2018 04:52:30 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A9CB2C9747; Thu, 18 Jan 2018 09:52:30 +0000 (UTC) Received: from gondolin (ovpn-117-185.ams2.redhat.com [10.36.117.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3AEE5C57E; Thu, 18 Jan 2018 09:52:27 +0000 (UTC) Date: Thu, 18 Jan 2018 10:52:23 +0100 From: Cornelia Huck To: Martin Schwidefsky Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, Heiko Carstens , Paolo Bonzini , Greg Kroah-Hartman , Jon Masters , Marcus Meissner , Jiri Kosina Subject: Re: [PATCH 3/6] s390: add options to change branch prediction behaviour for the kernel Message-ID: <20180118105223.595f6c74.cohuck@redhat.com> In-Reply-To: <1516182519-10623-4-git-send-email-schwidefsky@de.ibm.com> References: <1516182519-10623-1-git-send-email-schwidefsky@de.ibm.com> <1516182519-10623-4-git-send-email-schwidefsky@de.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 18 Jan 2018 09:52:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jan 2018 10:48:36 +0100 Martin Schwidefsky wrote: > Add the PPA instruction to the system entry and exit path to switch > the kernel to a different branch prediction behaviour. The instructions > are added via CPU alternatives and can be disabled with the "nospec" > or the "nobp=0" kernel parameter. If the default behaviour selected > with CONFIG_KERNEL_NOBP is set to "n" then the "nobp=1" parameter can be > used to enable the changed kernel branch prediction. > > Acked-by: Christian Borntraeger > Signed-off-by: Martin Schwidefsky > --- > arch/s390/Kconfig | 17 +++++++++++++ > arch/s390/include/asm/processor.h | 1 + > arch/s390/kernel/alternative.c | 23 ++++++++++++++++++ > arch/s390/kernel/early.c | 2 ++ > arch/s390/kernel/entry.S | 50 ++++++++++++++++++++++++++++++++++++++- > arch/s390/kernel/ipl.c | 1 + > arch/s390/kernel/smp.c | 2 ++ > 7 files changed, 95 insertions(+), 1 deletion(-) Acked-by: Cornelia Huck [This looks sane; but as I don't have insight into the details of the new instructions, I don't feel confident enough to give a R-b]