[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200414162221.GQ20713@hirez.programming.kicks-ass.net>
Date: Tue, 14 Apr 2020 18:22:21 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Mihai Carabas <mihai.carabas@...cle.com>
Cc: linux-kernel@...r.kernel.org, Borislav Petkov <bp@...en8.de>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH] x86: microcode: fix return value for microcode late
loading
On Tue, Apr 14, 2020 at 12:55:35PM +0300, Mihai Carabas wrote:
> The return value from stop_machine might not be consistent.
>
> stop_machine_cpuslocked returns:
> - zero if all functions have returned 0
> - a non-zero value if at least one of the functions returned
> a non-zero value
>
> There is no way to know if it is negative or positive. So make
> __reload_late return 0 on success, or negative otherwise.
>
> Signed-off-by: Mihai Carabas <mihai.carabas@...cle.com>
Isn't the right fix to disable late-loading?
Powered by blists - more mailing lists