]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commit
xen/sched: fix arinc653 to not use variables across cpupools
authorJuergen Gross <jgross@suse.com>
Fri, 14 Mar 2025 09:17:11 +0000 (10:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Mar 2025 09:17:11 +0000 (10:17 +0100)
commitd0561ac8ab0e780b1e8ab41d0d15e9f9b076dee3
treef094984d91b7ad6a221c8320b5a4f62262d211f6
parentdf56af1d7af91b2383bc71bc8b292c4a2521424d
xen/sched: fix arinc653 to not use variables across cpupools

a653sched_do_schedule() is using two function local static variables,
which is resulting in bad behavior when using more than one cpupool
with the arinc653 scheduler.

Fix that by moving those variables to the scheduler private data.

Fixes: 22787f2e107c ("ARINC 653 scheduler")
Reported-by: Choi Anderson <Anderson.Choi@boeing.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Nathan Studer <nathan.studer@dornerworks.com>
xen/common/sched/arinc653.c