Re: [PATCH v3 1/6] x86/sme: Use percpu boolean to control wbinvd during kexec
From: Huang, Kai
Date: Thu Jun 26 2025 - 21:07:59 EST
On Fri, 2025-06-27 at 00:39 +0000, Edgecombe, Rick P wrote:
> On Fri, 2025-06-27 at 00:37 +0000, Huang, Kai wrote:
> > > Arguably the supported/enabled part could be moved to a separate earlier
> > > patch.
> > > The code change would just get immediately replaced, but the benefit would
> > > be
> > > that a bisect would show which part of the change was responsible.
> >
> > I am not a fan of splitting the new variable and the user into different
> > patches, as long as the patch isn't too big to review. You need to review
> > them together anyway I think, so arguably putting them together is easier to
> > review.
>
> How about if Tom thinks there is any risk, we can split them for bisectability
> help. Otherwise reduce the churn.
Sure. But I don't understand how this can impact bisect?
Let's assume we have patch 1 to introduce the boolean w/o user, and patch 2
to modify SME code. If there's any issue, the bisect will point to the
patch 2. If we have one patch then the bisect will point to this one patch
too. Is there any difference?
The downside of splitting into two patches is we need to make sure there's
no build warning when introducing a variable w/o user, for which we might
need to do additional things (e.g., it happens when adding a static function
w/o use).