]> xenbits.xensource.com Git - xen.git/commit
xen/sched: fix arinc653 to not use variables across cpupools
authorJuergen Gross <jgross@suse.com>
Thu, 20 Mar 2025 11:53:29 +0000 (12:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 20 Mar 2025 11:53:29 +0000 (12:53 +0100)
commit80cbb296127b6c1729f4625498b27cdb41bb614b
treee8b5a515b3732bdd91315916ecd295df72993d8a
parentf2ddbeb9dd1de651e5065a0f0ec6ef8ca39e12e2
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>
master commit: d0561ac8ab0e780b1e8ab41d0d15e9f9b076dee3
master date: 2025-03-14 10:17:11 +0100
xen/common/sched/arinc653.c