Commit 67a10235 authored by Sean Christopherson's avatar Sean Christopherson Committed by Greg Kroah-Hartman
Browse files

x86/CPU/AMD: WARN when setting EFER.AUTOIBRS if and only if the WRMSR fails



[ Upstream commit 49207766 ]

When ensuring EFER.AUTOIBRS is set, WARN only on a negative return code
from msr_set_bit(), as '1' is used to indicate the WRMSR was successful
('0' indicates the MSR bit was already set).

Fixes: 8cc68c9c ("x86/CPU/AMD: Make sure EFER[AIBRSE] is set")
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/Z1MkNofJjt7Oq0G6@google.com
Closes: https://lore.kernel.org/all/20241205220604.GA2054199@thelio-3990X


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 68570b5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment