Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid save/restoring AMX registers to avoid a SPR erratum #15168

Merged
merged 1 commit into from
Aug 26, 2023

Commits on Aug 10, 2023

  1. Avoid save/restoring AMX registers to avoid a SPR erratum

    Intel SPR erratum SPR4 says that if you trip into a vmexit while
    doing FPU save/restore, your AMX register state might misbehave...
    and by misbehave, I mean save all zeroes incorrectly, leading to
    explosions if you restore it.
    
    Since we're not using AMX for anything, the simple way to avoid
    this is to just not save/restore those when we do anything, since
    we're killing preemption of any sort across our save/restores.
    
    If we ever decide to use AMX, it's not clear that we have any
    way to mitigate this, on Linux...but I am not an expert.
    
    Fixes: openzfs#14989
    
    Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
    rincebrain committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    4ef5b01 View commit details
    Browse the repository at this point in the history