Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2870680imu; Mon, 19 Nov 2018 07:21:15 -0800 (PST) X-Google-Smtp-Source: AJdET5deuHfTxR/JhXq15Pu37PGRNToCxqvv/4EFGaLVuVgKKzDxOabtIzDwic2MFotP7ps/XZjl X-Received: by 2002:a63:3f44:: with SMTP id m65mr21030020pga.115.1542640874994; Mon, 19 Nov 2018 07:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542640874; cv=none; d=google.com; s=arc-20160816; b=KEoV6pi2zI9GF/Pz6RhZ1+iWtOta/IIhCUtj3IRBPfDJ6kof0kghGtYmYtgT4xKoIf 2PLFBDEhhsOvd9hOnveG1V1e0unS6jRJgT6qVEHgOJrUGBDd5Zvl9zT3nDL+mKR1X3gA r3/hFMCwOn/eSGDAWFdYqQk1kR/zQXyC/KeA8fEuFXAM/hAq1BXxqFKvfY2q6aAGuA9I tZVHxQTKc3KMJQJa9MOBmgWqMTpcxavx8l8cNcOlsOTCjvBv8TYVDEl629dWMy0tN4FC t8P/MImOZIXSMOjTC68t86QWDCm/0JN+U/DpgWliqalyJGAi+8RKutd+rEbHXXPHt+eo WVww== 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; bh=XhC92si4X+xxppkZcalNDB9Vk2t04ew00FVAO6Hc2xs=; b=U+Fm1VX6258LB9ZNmtu1wSFZQXFbWeCGY0OJpWYSdrRqXlDKSfkhiIS07yJEAipLGN 4idOfYvN49zMqe/yQrX13fZMmyxJwDxYlCYIhXtlv1sfQ+efCfFcRDJdb8LBOON9yoQJ DEEElVSp1eiHfbAIMEQ9lv7yyhyuPCTU2TLXqYPsPgtGUI0nFwTKC2oTSkDYqaSCxEzX mRiBQi99wyP22ODVsCq0+sJ4zGG6ZUpdWXcvvvqIZKH80FgN2/Rl9s/ztDVK8OaLg8Hb BP1GUzaL811OZxFFGW/eO6UtX/lySEZ+3XEbqIFm6k/po+sLuLhLZUVINX+Nne7AHwem k5yw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si1709972plk.206.2018.11.19.07.20.47; Mon, 19 Nov 2018 07:21:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729744AbeKTBnu (ORCPT + 99 others); Mon, 19 Nov 2018 20:43:50 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:38779 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729483AbeKTBnu (ORCPT ); Mon, 19 Nov 2018 20:43:50 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1gOlL2-00011A-Be; Mon, 19 Nov 2018 16:19:48 +0100 Date: Mon, 19 Nov 2018 16:19:48 +0100 From: Sebastian Andrzej Siewior To: Dave Hansen Cc: Borislav Petkov , x86@kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org, Andy Lutomirski , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Dave Hansen Subject: Re: [PATCH] x86/fpu: Disable BH while while loading FPU registers in __fpu__restore_sig() Message-ID: <20181119151948.g27vuuavpgmyqynn@linutronix.de> References: <20181108145721.GC7543@zn.tnic> <20181109173521.2m6iijp5wkncgi77@linutronix.de> <20181109185202.GF21243@zn.tnic> <20181109232521.l2ll2n3coxygkxv4@linutronix.de> <20181112155643.vclej44qzg3pmbow@linutronix.de> <433cec57-57a9-afff-22f3-68308eda682b@intel.com> <20181119114151.e4mbs7ktfjojl3uf@linutronix.de> <982af52b-4e39-2b26-a184-2fe13f3d9f61@intel.com> <20181119150656.ylbrsvchdyavms4w@linutronix.de> <5a319c56-c165-5465-2dc6-4b0e08510abe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5a319c56-c165-5465-2dc6-4b0e08510abe@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-19 07:08:44 [-0800], Dave Hansen wrote: > On 11/19/18 7:06 AM, Sebastian Andrzej Siewior wrote: > > On 2018-11-19 07:04:35 [-0800], Dave Hansen wrote: > >> Does the local_bh_disable() itself survive? > > Not in __fpu__restore_sig(). I do have: > > | static inline void __fpregs_changes_begin(void) > > | { > > | preempt_disable(); > > | local_bh_disable(); > > | } > > > > and __fpregs_changes_begin() is introduced as part of the series. > > OK, so can we just comment *that*, please? Basically, why do we need botj? let me do this then. local_bh_disable() should be enough. However I had a discussion with PeterZ that this (local_bh_disable()) also acting as preempt_disable()) is an implementation detail and should be avoided. It is not true Preempt-RT for instance. Sebastian