From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbbEFEys (ORCPT ); Wed, 6 May 2015 00:54:48 -0400 Received: from mail-wi0-f194.google.com ([209.85.212.194]:35943 "EHLO mail-wi0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbbEFEyr (ORCPT ); Wed, 6 May 2015 00:54:47 -0400 From: Ingo Molnar X-Google-Original-From: Ingo Molnar Date: Wed, 6 May 2015 06:54:43 +0200 To: Dave Hansen Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Fenghua Yu , "H. Peter Anvin" , Linus Torvalds , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH 201/208] x86/fpu: Clean up xstate feature reservation Message-ID: <20150506045443.GB12393@gmail.com> References: <1430848712-28064-1-git-send-email-mingo@kernel.org> <1430848712-28064-41-git-send-email-mingo@kernel.org> <55492446.4050304@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55492446.4050304@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen wrote: > On 05/05/2015 10:58 AM, Ingo Molnar wrote: > > struct xregs_state { > > struct fxregs_state i387; > > struct xstate_header header; > > - struct ymmh_struct ymmh; > > - struct lwp_struct lwp; > > - struct bndreg bndreg[4]; > > - struct bndcsr bndcsr; > > - /* New processor state extensions will go here. */ > > + u8 __reserved[XSTATE_RESERVE]; > > } __attribute__ ((packed, aligned (64))); > > Just to reiterate. The size of 'XSTATE_RESERVE' is completely > unknown at compile time. [...] Yes, see my previous mail. > [...] It's wrong in the existing kernel, but we should fix it up > instead of mucking with it like this. I'm not mucking with it, I'm slowly migrating it towards a dynamic model that doesn't suck - see my other mails. Thanks, Ingo