Juergen Gross
2011-Feb-28 09:23 UTC
[Xen-devel] [PATCH] Avoid possible live-lock in vcpu_migrate
If vcpu_migrate is called for two vcpus active on different cpus resulting in swapping the cpus, a live-lock could occur as both instances try to take the scheduling lock of the physical cpus in opposite order. To avoid this problem the locks are always taken in the same order (sorted by the address of the lock). Signed-off-by: juergen.gross@ts.fujitsu.com 1 file changed, 43 insertions(+), 27 deletions(-) xen/common/schedule.c | 70 ++++++++++++++++++++++++++++++------------------- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel