From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH 10/11] x86/fpu: prepare copy_fpstate_to_sigframe for TIF_LOAD_FPU Date: Mon, 15 Oct 2018 17:24:31 +0200 Message-ID: <20181015152431.GD11434@zn.tnic> References: <20181004140547.13014-1-bigeasy@linutronix.de> <20181004140547.13014-11-bigeasy@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org, "Jason A. Donenfeld" To: Dave Hansen , Sebastian Andrzej Siewior , Rik van Riel Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, Oct 12, 2018 at 12:40:19PM -0700, Dave Hansen wrote: > > + __fpregs_changes_end(); > > Do we really need the __fpregs_changes_*() abstraction for this single > call site? Yap, I'm staring at those in patch 2, there's no documentation there what they're supposed to do, only the commit message of patch 11 says: "The __fpregs_changes_{begin|end}() section ensures that the register remain unchanged. Otherwise a context switch or a BH could save the registers to its FPU context and processor's FPU register would remain random." So I'd say we should drop that abstraction, use preempt_* and put that text above the single usage site. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.