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

Re: [PATCH-for-4.17] xen/sched: fix restore_vcpu_affinity() by removing it


  • To: Juergen Gross <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Dario Faggioli <dfaggioli@xxxxxxxx>
  • Date: Fri, 21 Oct 2022 09:16:03 +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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yO0j/2y578dOj0tcJr9z1CwMrLdfXmWA9omaP0NToyM=; b=WTd1Ahug6EX7Q71wO7qFaWjKBmFevAvJ0GzQ20FXdNghmNSjISv/scoMAFCCdN2g2iMgUb1sXwLAn92Ga/W3FgGGNec3KDlCNqBXAokHx1mrQkhkDWdnftZ49KCW5yxQrYyn9F4vRXHrq93tBAjpwmwbSyH2elfmOEH8K6/v38xiJqCFyccVm0mQqS+yiqcqr7xF7yc6wUlK3kSXofNLfI9Zlp91Jl0kC5sAHRT0geNstT0U3LWVlunkY+U3yq0hP5Km/hCd1sPf58qbY1I9eQ5CfbSijdTDQHEKvmcArdu7CQWfk/fLK+Arq0fyUz27zm6QnKQ8sakvYrrgkgOoxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VCq46dwvJaXP9/6TjckZ5bqdMSgM5o/XbLN2E6fYfz41AxWrCVy4j44evJobGYC+oyeSkE7azoLJCnYgjj5qnaL6BydVsrDVTQNRw1uCsjl3/jKbe5ZgmXJdkc4grIz4z+S02Q4WYGk3MP6a9veTgVSa2PyTUYVEUpqKgjwamSkS9s0DBQ1ZBV8LxFht7c3KOHtCvG3PUJKSfW3u5rC6afIYCvcjbQjThnNvni49/7E14mi/QQX/apeqhzP2j3plFWeRHrYsrWG0/Q9CLNJxZY37QwWbRwm55NuqBaRhjy9GzmVoR+SSH71dWT3Hc6tGDQtvw+eFItO3gGIRfdicUw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "marmarek@xxxxxxxxxxxxxxxxxxxxxx" <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "Henry.Wang@xxxxxxx" <Henry.Wang@xxxxxxx>
  • Delivery-date: Fri, 21 Oct 2022 09:16:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHY5Rp63crRdqzTYU65u4+DFjIN7K4YbPgAgAAkTQA=
  • Thread-topic: [PATCH-for-4.17] xen/sched: fix restore_vcpu_affinity() by removing it

On Fri, 2022-10-21 at 09:06 +0200, Juergen Gross wrote:
> On 21.10.22 08:58, Juergen Gross wrote:
> > When the system is coming up after having been suspended,
> > restore_vcpu_affinity() is called for each domain in order to
> > adjust
> > the vcpu's affinity settings in case a cpu didn't come to live
> > again.
> > 
> > The way restore_vcpu_affinity() is doing that is wrong, because the
> > specific scheduler isn't being informed about a possible migration
> > of
> > the vcpu to another cpu. Additionally the migration is often even
> > happening if all cpus are running again, as it is done without
> > check
> > whether it is really needed.
> > 
> > As cpupool management is already calling cpu_disable_scheduler()
> > for
> > cpus not having come up again, and cpu_disable_scheduler() is
> > taking
> > care of eventually needed vcpu migration in the proper way, there
> > is
> > simply no need for restore_vcpu_affinity().
> > 
> > So just remove restore_vcpu_affinity() completely.
> > 
> > Fixes: 8a5d50dd0b04 ("xen: sched: simplify ACPI S3 resume path.")
> 
> This Fixes: tag is wrong. It should be:
> 
> Fixes: 8a04eaa8ea83 ("xen/sched: move some per-vcpu items to struct
> sched_unit")
> 
Acked-by: Dario Faggioli <dfaggioli@xxxxxxxx>

Thanks and Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part


 


Rackspace

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