From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [PATCH v2] x86/fpu: Disable BH while while loading FPU registers in __fpu__restore_sig() Date: Mon, 19 Nov 2018 09:32:44 -0800 Message-ID: References: <20181119160410.ne7oiq2gkwt6jiqg@linutronix.de> <20181119171128.2lxnhga3pym2zlok@linutronix.de> <20181119172743.GE14688@zn.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: x86@kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org, Andy Lutomirski , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Dave Hansen To: Borislav Petkov , Sebastian Andrzej Siewior Return-path: In-Reply-To: <20181119172743.GE14688@zn.tnic> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 11/19/18 9:27 AM, Borislav Petkov wrote: >>> I was really hoping for code comments. :) >> I though we agreed to make those in the larger series because those >> comments in __fpu__restore_sig() would be removed anyway (as part of the >> series). > Also, over local_bh_disable() does not really fit as this is generic > code and Sebastian said ARM does the whole thing a bit differently, for > one. > > We probably should put that comment somewhere prominent in > arch/x86/kernel/fpu/core.c or similar - somewhere people poking at FPU > stuff will see it. Ahh, got it. arch/x86/kernel/fpu/core.c would be a fine spot.