[PATCH v2] xen/arinc653: call xfree() with local IRQ enabled

2025-03-19 Thread Anderson Choi
049f8d796a sched: fix locking in a653sched_free_vdata() Signed-off-by: Anderson Choi --- Changes: v1 -> v2 * changed the title to show clearly which scheduler is modified --- xen/common/sched/arinc653.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/common/sched

[PATCH] xen/sched: call xfree() after local IRQ is enabled

2025-03-17 Thread Anderson Choi
049f8d796a sched: fix locking in a653sched_free_vdata() Signed-off-by: Anderson Choi --- xen/common/sched/arinc653.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/common/sched/arinc653.c b/xen/common/sched/arinc653.c index 0a3733c04e90..b95492e1d96f 100644 --- a/xen/co

[XEN PATCH] xen/arinc653: fix delay in the start of major frame

2025-07-08 Thread Anderson Choi
by using the value next_major_frame as the base to calculate the start of major frame and the next domain switch time. In addition, push next_switch_time until it's behind the current time to ensure positive runtime for the newly selected domain to run. Signed-off-by: Anderson Choi --- Cc: Nathan Studer

[XEN PATCH v2] xen/arinc653: fix delay in the start of major frame

2025-07-14 Thread Anderson Choi
me. Signed-off-by: Anderson Choi Suggested-by: Nathan Studer --- Changes in v2: - Changed the logic to resync major frame and to find correct minor frame after a miss suggested by Nathan --- xen/common/sched/arinc653.c | 38 - 1 file changed, 21 insertion

[XEN PATCH v3] xen/arinc653: fix delay in the start of major frame

2025-07-18 Thread Anderson Choi
e. Per suggestion from Stewart Hildebrand, the while loop to calculate the start of next major frame can be eliminated by using a modulo operation. Fixes: 22787f2e107c ("ARINC 653 scheduler") Suggested-by: Stewart Hildebrand Suggested-by: Nathan Studer Signed-off-by: Anderson Choi

[XEN PATCH v4] xen/arinc653: fix delay in the start of major frame

2025-07-24 Thread Anderson Choi
e. Per suggestion from Stewart Hildebrand, use a modulo operation to calculate the start of next major frame. Fixes: 22787f2e107c ("ARINC 653 scheduler") Suggested-by: Stewart Hildebrand Suggested-by: Nathan Studer Signed-off-by: Anderson Choi --- Changes in v4: - Check if sched_p