[PATCH] AMD Opteron Rev. E hack
Dag-Erling Smørgrav
des at des.no
Thu Nov 5 11:18:56 UTC 2009
Giovanni Trematerra <giovanni.trematerra at gmail.com> writes:
> I have a quick and dirty patch to address the problem as discussed on
> commit r198868 in svn-src-head@
> I introduced BROKEN_OPTERON_E kernel option for i386/amd64 arch.
> The patch isn't tested yet, I only successfully compiled on i386.
> Can you let me know if the patch is on the right direction to resolve the issue?
> style(9) tips are welcomed.
We should probably call it OPTERON_E_LFENCE_HACK or something, cf.
NO_F00F_HACK (which has the opposite semantics - the f00f hack is
enabled by default, though at this point we should probably reverse it
and just print a warning if we detect a vulnerable CPU), and the wording
of those printfs needs work, but it looks OK overall.
BTW, you should use the text/x-patch MIME type for patches, instead of
application/octet-stream.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current
mailing list