From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [PATCH v3 3/6] xen: sched: clarify use cases of schedule_cpu_switch() Date: Fri, 30 Oct 2015 05:33:47 +0100 Message-ID: <5632F32B.2080906@suse.com> References: <20151029225158.25219.4625.stgit@Solace.station> <20151029230427.25219.2409.stgit@Solace.station> <1446163172.28782.100.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zs1Nt-00079f-M0 for xen-devel@lists.xenproject.org; Fri, 30 Oct 2015 04:33:49 +0000 In-Reply-To: <1446163172.28782.100.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: George Dunlap , "xen-devel@lists.xenproject.org" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 10/30/2015 12:59 AM, Dario Faggioli wrote: > On Fri, 2015-10-30 at 00:04 +0100, Dario Faggioli wrote: >> schedule_cpu_switch() is meant to be only used for moving >> pCPUs from a cpupool to no cpupool, and from there back >> to a cpupool, *not* to move them directly from one cpupool >> to another. >> >> This is something that is reflected in the way it is >> implemented, and should be kept in mind when looking at >> it. However, that is not that clear, by just the look of >> it. >> >> Make it more evident by: >> - adding commentary and ASSERT()s; >> - update the cpupool per-CPU variable (mapping pCPUs to >> pools) directly in schedule_cpu_switch(), rather than >> in various places in cpupool.c. >> >> Signed-off-by: Dario Faggioli >> Acked-by: Juergen Gross >> > BTW, Juergen, I had the whole series tested with the script below, for > a few hourse, as per your suggestion to help confirming that this patch > is actually correct, as it seems by just looking at the code. > > Since everything was fine, I added your Ack, as you said I could. Great. Thanks for doing this! BTW: I especially like that you removed cpu 0 from Pool-0! Juergen