From: Suresh Siddha Subject: Re: [PATCH 2/2] x86: Introduce 'struct fpu' and related API Date: Tue, 04 May 2010 11:12:31 -0700 Message-ID: <1272996751.2833.10.camel@sbs-t61.sc.intel.com> References: <1272812038-32484-1-git-send-email-avi@redhat.com> <1272812038-32484-3-git-send-email-avi@redhat.com> Reply-To: Suresh Siddha Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "Cui, Dexuan" , Sheng Yang , Ingo Molnar , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" To: Avi Kivity Return-path: In-Reply-To: <1272812038-32484-3-git-send-email-avi@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Sun, 2010-05-02 at 07:53 -0700, Avi Kivity wrote: > Currently all fpu state access is through tsk->thread.xstate. Since we wish > to generalize fpu access to non-task contexts, wrap the state in a new > 'struct fpu' and convert existing access to use an fpu API. > > Signal frame handlers are not converted to the API since they will remain > task context only things. > > Signed-off-by: Avi Kivity One comment I have is the name 'fpu'. In future we can use this for non fpu state aswell. For now, I can't think of a simple and better name. We can perhaps change it in the future. Acked-by: Suresh Siddha