xen:arm: we never get into schedule_tail() with prev==current
PATCH 1/1 xen:arm: we never get into schedule_tail() with prev==current
From: Andrii Anisov <[email protected]>
ARM's schedule_tail() is called from two places: context_switch() and continue_new_vcpu(). Both functions are always called with prev!=current. So replace the correspondent check in schedule_tail() with ASSERT() which is the development (debug) build guard.
--- xen/arch/arm/domain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
xen/arch/arm/domain.c +3 -2
@@ -305,6 +305,8 @@ static void update_runstate_area(struct vcpu *v)static void schedule_tail (struct vcpu *prev) { +ASSERT (prev != current); +ctxt_switch_from (prev);ctxt_switch_to (current);
@@ -313,8 +315,7 @@ static void schedule_tail(struct vcpu *prev)context_saved (prev); -if ( prev != current ) -update_runstate_area (current); +update_runstate_area (current);/* Ensure that the vcpu has an up-to-date time base. */ update_vcpu_system_time (current);
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
ARM's
schedule_tail()is called from two places:context_switch()andcontinue_new_vcpu(). Both functions are always called with prev!=current. So replace the correspondent check inschedule_tail()withASSERT()which is the development (debug) build guard.Signed-off-by Andrii Anisov <[email protected]>
FWIW,
Thanks and Regards
Signature · 6 lines
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)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Julien Grall
Acked-byHi,
Quoted 8 lines · Dario Faggioli
Quoted 7 lines · Andrii Anisov
From: Andrii Anisov <[email protected]>
ARM's
schedule_tail()is called from two places:context_switch()andcontinue_new_vcpu(). Both functions are always called with prev!=current. So replace the correspondent check inschedule_tail()withASSERT()which is the development (debug) build guard.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Andrii Anisov <[email protected]>FWIW,
Reviewed-by Dario Faggioli <[email protected]>
I have now committed the patch.
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel