Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2006 04:10:52 +0300
From:      Rostislav Krasny <rosti.bsd@gmail.com>
To:        David Xu <davidxu@freebsd.org>
Cc:        is@rambler-co.ru, cperciva@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: FreeBSD-SA-06:14.fpu
Message-ID:  <20060519041052.ab8dbbe9.rosti.bsd@gmail.com>
In-Reply-To: <200605190802.08825.davidxu@freebsd.org>
References:  <20060430142408.fcd60069.rosti.bsd@gmail.com> <44554601.5090105@freebsd.org> <20060519023732.ea4221dd.rosti.bsd@gmail.com> <200605190802.08825.davidxu@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 May 2006 08:02:08 +0800
David Xu <davidxu@freebsd.org> wrote:

> On Friday 19 May 2006 07:37, Rostislav Krasny wrote:
> > On Sun, 30 Apr 2006 16:19:29 -0700
> >
> > Colin Percival <cperciva@freebsd.org> wrote:
> > > Rostislav Krasny wrote:
> > > > Other possible solution is making the fpu_clean_state() optional by
> > > > something like following:
> > > >
> > > > #ifdef BUG_FXSAVE
> > > > #define fpu_clean_state() __fpu_clean_state()
> > > > #else
> > > > #define fpu_clean_state() ;
> > > > #endif
> > > >
> > > > ... and including "options BUG_FXSAVE" to GENERIC.
> > >
> > > Yes, this is probably the right solution.  My priority was to fix the
> > > bug; optimizing performance comes second.
> >
> > Ok. Is this solution going to be done some day? I could try to make a
> > patch but I'm not familiar with the build infrastructure internals.
> >
> > P.S. what is a better option name: "options BUG_FXSAVE" or "options
> > AMD_FXSAVE"?
> 
> Patch is welcome,

Ok. What should I do before adding the above #ifdef's? Is it enough to
change following files only?

src/sys/conf/options
src/sys/i386/conf/GENERIC
src/sys/i386/conf/NOTES
src/sys/i386/conf/PAE
src/sys/i386/conf/SMP
src/sys/amd64/conf/GENERIC
src/sys/amd64/conf/NOTES
src/sys/amd64/conf/SMP

> but I would call it BUG_FXSAVE like Linux's select()
> changed timeout value which only added incompatibility rather than
> advantage.

I don't know about Linux's select() but according to what I've seen on
their "7466f9e72dac13452d871a3fb72fc7bd9c93c864" commit they use
X86_FEATURE_FXSAVE_LEAK. What do you think about FXSAVE_LEAK instead of
BUG_FXSAVE?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060519041052.ab8dbbe9.rosti.bsd>