RE: [PATCH] Mutilated form of Andi Kleen's AMD prefetch errata patch

From: Nakajima, Jun
Date: Tue Sep 30 2003 - 20:54:59 EST


> I think we should fix up userspace.
What do you mean by this? Patch user code at runtime (it's much more
complex than it sounds) or remove prefetch instructions from userspace?

Jun

> -----Original Message-----
> From: linux-kernel-owner@xxxxxxxxxxxxxxx [mailto:linux-kernel-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Andrew Morton
> Sent: Tuesday, September 30, 2003 5:27 PM
> To: Jamie Lokier
> Cc: davej@xxxxxxxxxx; torvalds@xxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
> richard.brunner@xxxxxxx
> Subject: Re: [PATCH] Mutilated form of Andi Kleen's AMD prefetch
errata
> patch
>
> Jamie Lokier <jamie@xxxxxxxxxxxxx> wrote:
> >
> > What I'd really like your opinion on is the appropriate userspace
> > behaviour. If we don't care about fixing up userspace, then
> > __ex_table is a much tidier workaround for the prefetch bug.
>
> I think we should fix up userspace.
>
> > If we do
> > care about fixing up userspace, then do we need a policy decision
that
> > says it's not acceptable to run on AMD without userspace fixups from
> > 2.6.0 onwards - it must fixup userspace or refuse to run?
>
> If you're saying that the kernel should refuse to boot if it discovers
> that
> a) the CPU needs the workaround and b) the kernel does not implement
the
> workaround then yup.
>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/