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

[2.1 backport] Avoid save/restoring AMX registers to avoid a SPR erratum #15969

Merged
merged 1 commit into from
Apr 3, 2024

Commits on Mar 6, 2024

  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.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rich Ercolani <[email protected]>
    Closes openzfs#14989
    Closes openzfs#15168
    
    Signed-off-by: Rich Ercolani <[email protected]>
    rincebrain committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    5b521c9 View commit details
    Browse the repository at this point in the history