[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] x86/smpboot: Allow making an INIT IPI conditional


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Tue, 19 Jan 2021 18:20:56 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IqcBTkG054uJi2dMFL6FuFyCl0XVXMiXvtJsXBGQpzs=; b=g2QDQTeYqAqj9XTmGRd5dkBCSnQM/V409f+kr1aFxFCc2CZHGMT+jrcb/PTTNHRJoVImFzWK800zK86vCvXEkWeYwKTxrmYniFIK49xH5/ajZxZTn/1OTJFDQBml3ZxGB1e1NzIYt9HtynVLFTFBq/T2b5mKONVcpTrj0FVIcx5qaY2tMdXb9kbkAQHGs70F9Fjmh0nGNrhrAkBfHSQZhTAUiwNNEibmAz8Ndz+ISQ257UJTKtoL70vX3hY1/QwWPfuxZp4EBKUw4qqMYb5R8wx/RTYyGlMfXykJsNbO297Fe//U4BhtbiC1fEcXMc3ncYED7KWPcA4aPpARWdgRTg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lJa9GXsE5JXe3lVQlRMvUyElHgQnSFi90jJhTVdsIpl4wz+wBmJvPkNZRNUIoAaRFhUSPnMDhWD/OatJqAeCnCHmxKrLUJ4Fgntm5df/07+/I0rChVE8plR1vvtXIlQGg39ZKlpYXg2pCzHZaOZ6jvIuHwFG0O42s9Z/6mRJKy6Gb9Yl+oF+1W3uHstuLADDw7PKEhqvOtW/wau3zfPEcS7nqQwJyd4lu33D7TWYHxwTu32I/hf2nI13pU3+wMk52pN0FuSean2W5s2nD0p2u0SrRvPJ/TmqQOdH5pJnEid70fxxBJZ6GBBdCszE6bgljtsfl2Wi2dZDNVfkeJHE4w==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Marek Kasiewicz <marek.kasiewicz@xxxxxxxxx>, Norbert Kamiński <norbert.kaminski@xxxxxxxxx>, Michal Zygowski <michal.zygowski@xxxxxxxxx>, Piotr Krol <piotr.krol@xxxxxxxxx>, Krystian Hebel <krystian.hebel@xxxxxxxxx>, "Daniel P . Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Rich Persaud <persaur@xxxxxxxxx>, Christopher Clark <christopher.w.clark@xxxxxxxxx>
  • Delivery-date: Tue, 19 Jan 2021 17:21:13 +0000
  • Ironport-sdr: ntHVmXQU5t9Ms60rPvyqqUfARCEgc/RO4aoTNg9U0Ak1I9IIhNEwUzuwZ+3hHJNFFfVo7/D/JM eTMlW7fS+Wyou2r6Hd+8MblnQqX+kHo8YTYTA5nuV37pF2l3FzflT5w6wKBtscRJ4YhgjhFO+7 gXdGq2VL4ZlBK63oVxmzL4qpJOquzQ3q1B8TbRH2c5noQ1jie3x5brdYJsFJTmIf1bz8jEFHt+ hlmOezrMf/8W0hL1RR8eq3MecH42j+FklsfJOFNHx9NWou7ZVoipgssuOvY8TSI9iLAd3Yrve6 iCA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, Jan 19, 2021 at 03:05:38PM +0000, Andrew Cooper wrote:
> On 19/01/2021 14:58, Roger Pau Monné wrote:
> > On Fri, Jan 15, 2021 at 11:10:45PM +0000, Andrew Cooper wrote:
> >> A subsequent change is going to introduce SKINIT support, wherein the APs 
> >> will
> >> be already be in the wait-for-SIPI state, and an INIT must not be sent.
> >>
> >> Introduce a send_INIT boolean, so we can control sending an INIT IPI
> >> separately from sending SIPIs.
> >>
> >> No functional change.
> >>
> >> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> > I'm not opposed to introduce this, but maybe it would be better to
> > move it to a separate helper? send_init(unsigned int apicid); or some
> > such?
> >
> > Would reduce one level of indentation.
> 
> I've got a lot of cleanup planned for 4.16, but splitting this up
> INIT-SIPI-SIPI is specifically not one of them.
> 
> This will get more complicated with Intel TXT Intel, and I also want to
> integrate it more nicely with the virtualised AP boot logic.  I suspect
> we'll end up with a function pointer per platform&configuration, but
> that's too much work at this point in 4.15.

Ack, I'm fine with this, albeit I would also be fine with dropping the
variable and just open-coding the ap_boot_method check (but I guess
there will be further use of this variable in newer patches):

Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.