|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] arinc653: don't assume Dom0 is the control domain
commit 80f0d304a529d9f50923001dbfe5792060177a1b
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Apr 21 09:05:25 2026 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Apr 21 09:05:25 2026 +0200
arinc653: don't assume Dom0 is the control domain
Leaving aside highly disaggregated environments, the control domain is
what will invoke XEN_SYSCTL_SCHEDOP_putinfo. Its vCPU-s therefore need to
be able to run unconditionally, not those of the domain with ID 0 (which
may not exist at all).
Fixes: 9f0c658baedc ("arinc: add cpu-pool support to scheduler")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
xen/common/sched/arinc653.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/common/sched/arinc653.c b/xen/common/sched/arinc653.c
index 19249f6464..d8a5380557 100644
--- a/xen/common/sched/arinc653.c
+++ b/xen/common/sched/arinc653.c
@@ -411,10 +411,10 @@ a653sched_alloc_udata(const struct scheduler *ops, struct
sched_unit *unit,
spin_lock_irqsave(&sched_priv->lock, flags);
/*
- * Add every one of dom0's units to the schedule, as long as there are
- * slots available.
+ * Add every one of the control domain's units to the schedule, as long as
+ * there are slots available.
*/
- if ( unit->domain->domain_id == 0 )
+ if ( is_control_domain(unit->domain) && !is_idle_domain(unit->domain) )
{
entry = sched_priv->num_schedule_entries;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |