From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756588AbbCPTFa (ORCPT ); Mon, 16 Mar 2015 15:05:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44060 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754284AbbCPTF1 (ORCPT ); Mon, 16 Mar 2015 15:05:27 -0400 Message-ID: <55072962.6050909@redhat.com> Date: Mon, 16 Mar 2015 15:05:06 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Borislav Petkov , Oleg Nesterov CC: Dave Hansen , Ingo Molnar , Andy Lutomirski , Linus Torvalds , Pekka Riikonen , Suresh Siddha , LKML , "Yu, Fenghua" , Quentin Casasnovas Subject: Re: [PATCH 2/4] x86/fpu: introduce restore_init_xstate() References: <54F74F59.5070107@intel.com> <20150311173346.GB5032@redhat.com> <20150311173429.GD5032@redhat.com> <20150313103406.GB31998@pd.tnic> <20150313143928.GB21603@redhat.com> <20150313152046.GG31998@pd.tnic> In-Reply-To: <20150313152046.GG31998@pd.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/13/2015 11:20 AM, Borislav Petkov wrote: > On Fri, Mar 13, 2015 at 03:39:28PM +0100, Oleg Nesterov wrote: >> This too needs cleanups. But later ;) >> >> Note that xstate_enable_boot_cpu is not called if !cpu_has_xsave, see the >> check in xsave_init(). Howver, eagerfpu=on will force eager_fpu_init() which >> calls eager_fpu_init_bp(). > > Yahaa. > > This FPU cleanup fun will keep us busy until Christmas. > >> Btw, I was also going to kill eager_fpu_init_bp(). Probably I will >> send the patch today. > > Yap, and I'm wondering if we should kill those func ptrs games there. We > have BSP and AP CPU init paths so we can be much cleaner there. I'll wait with the optimization that defers FPU state loading to the kernel -> user space boundary, until this current stuff has stabilized...