From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177Ab0JGOW0 (ORCPT ); Thu, 7 Oct 2010 10:22:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58907 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741Ab0JGOWZ (ORCPT ); Thu, 7 Oct 2010 10:22:25 -0400 Message-ID: <4CADD73B.8070809@zytor.com> Date: Thu, 07 Oct 2010 07:20:43 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Thunderbird/3.1.4 MIME-Version: 1.0 To: Stephane Eranian CC: mingo@elte.hu, Hans.Rosenfeld@amd.com, robert.richter@amd.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, Andreas.Herrmann3@amd.com, peterz@infradead.org, fweisbec@gmail.com, rostedt@goodmis.org, acme@redhat.com, Peter Zijlstra , eranian@gmail.com Subject: Re: [RFC 0/3] Basic support for LWP References: <1286212172-654419-1-git-send-email-hans.rosenfeld@amd.com> <20101005145155.GD173@escobedo.osrc.amd.com> <20101005182739.GE173@escobedo.osrc.amd.com> <20101005190501.GA21916@elte.hu> <20101006073558.GJ13563@erda.amd.com> <4CADD257.7080203@zytor.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2010 07:11 AM, Stephane Eranian wrote: > On Thu, Oct 7, 2010 at 3:59 PM, H. Peter Anvin wrote: >> On 10/07/2010 03:46 AM, Stephane Eranian wrote: >>> >>> As for the patch itself, I am not an expert at xsave/xrstor, but it seems to >>> me you could decouple LWP from FPU. I think Brian had the same comment. >>> I suspect this can be done and it will certainly look cleaner. >>> >> >> Well, once you're using XSAVE you're not decoupled from the FPU. Worse, >> if you're using XSAVE and not honoring CR0.TS you have a major design flaw. >> > Is that to say, that if you use LWP you will have to save/restore FPU state even > though you're not actually using it? > No, but you wouldn't be able to use lazy FPU. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.