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

Re: [Xen-devel] [PATCH 2/2] xen: merge temporary vcpu pinning scenarios


  • To: Juergen Gross <JGross@xxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Tue, 23 Jul 2019 15:55:34 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.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=JqsIiNDnNsmo138/skQvOCItdUNYEs40PGrLpu/+cQ8=; b=Q06+NLFn7zguuU6biKBBQSGlg0pnpNyE3zBg71dqcRD54Z/EePNIhs4FP4ET4h6T/3uhrBnQlVtBir/mdItdfDoB9BUCf1O/jrjjdL0t+1lIMdFLQZYG+Vgg7cUBaKz5qhKXmZKbV16IkMgIbXmUk1fO0sjYZ+6XF9aZF7LL/x+MBtDuILDRPe08GrZiZhXVvF0h4lus+k8wzX/wvxCa/jmCABKNRs94E9hymMPpnMYM2/JkbzN9RgHPSMd3A9FzHFtLhMSXDA3U0AdD26e7mStKcji4uxYONZBq1POiObf2L/GzuVPmAwjSnjwJLBZCsq3ihgoVzPwcL3ZSk5LVqQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BwupeFfqn81sI31nQucIGOSNn27Cy6Zg/hii3jDaFgpJCfZq1H0svg3oA0B3LMq7gMKqNVLRMkBnAlFH1OwFAVCcl98z0AaAG/jSHxHiN8EEmDE8GIDkWwIAnsS9LK8gjjdVzL1IsKSmR9BSjHGUYGijUnNogmcaX9QMbtw/NT5iSEunzrSF2rqaISOViwjM5etyKnzuo9+AJz5pE7/82xMmNMIlPSvGNjkdHt6L4qIwsQ7ZA5caazBIFJiGAMlYFL/jEORfK5aXxXkc5FmhrvKoSVX13C0BFV/Obv47Ff6Bq+/mei6mp8skA3LW+aAGCWk4XcT2R6UmhJ8qrHf42Q==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: Tim Deegan <tim@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, IanJackson <ian.jackson@xxxxxxxxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 23 Jul 2019 15:59:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQTgCmOXaxQxPLUKxvpzXZTTLrabYJaWAgAARcbKAACa/gP//4aOAgAAEQOaAAAmMAIAABVrXgAAJCYA=
  • Thread-topic: [Xen-devel] [PATCH 2/2] xen: merge temporary vcpu pinning scenarios

On 23.07.2019 17:22, Juergen Gross wrote:
> On 23.07.19 17:04, Jan Beulich wrote:
>> On 23.07.2019 16:29, Juergen Gross wrote:
>>> On 23.07.19 16:14, Jan Beulich wrote:
>>>> Oh, no. The #MC side use has gone away in 3a91769d6e, without cleaning
>>>> up other code. So there doesn't seem to be any such requirement anymore.
>>>
>>> So just to be sure: you are fine for me removing the pinning for NMIs?
>>
>> No, not the pinning as a whole. The forced CPU0 affinity should still
>> remain. It's just that there's no correlation anymore between the CPU
>> a vCPU was running on and the CPU it is to be pinned to (temporarily).
> 
> I don't get it. Today vcpu0 of the hardware domain is pinned to the cpu
> it was last running on when the NMI happened. Why is that important?
> Or do you want to change the logic and pin vcpu0 for NMI handling always
> to CPU0?

Hmm, I've been confused. To me it doesn't make sense to force
affinity other than to CPU0 for an NMI. Hence I was mis-reading
the original send_guest_trap() invocation (in particular its
middle argument). Looking at commit 355b0469a8 ("x86: MCA support")
I would guess the affinity change for NMI delivery was done by
mistake, or at best just to not distinguish NMI from #MC.

As a result, considering that before that there was no affinity
change at all, and considering further than changing to other
than CPU0 doesn't really make sense, but we got away with not
doing so for so many years, I think I agree that it can be ripped
out altogether. Personally I'd prefer a fix to make it use CPU0,
but I'm in no way going to insist.

Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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