|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] stubdom: fix a race that affects live mig
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1247046660 -3600
# Node ID 797006dadc3804bdff4b6ebba13d216e3b7fc07d
# Parent 01ae7dc043bae5987a67e9aee4109839b1e40996
stubdom: fix a race that affects live migration with stubdoms
This patch fixes a race during live migration with stubdoms: right
after the stubdom dies the configuration file of the VM is removed by
stubdom-dm but, in case of a live migration, the configuration file
could be the one of the new VM in the process of being created.
Removing the config file before destroying the stubdom is enough to
solve the race.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
stubdom/stubdom-dm | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 01ae7dc043ba -r 797006dadc38 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm Tue Jul 07 14:38:59 2009 +0100
+++ b/stubdom/stubdom-dm Wed Jul 08 10:51:00 2009 +0100
@@ -82,8 +82,8 @@ term() {
kill %1
(
[ -n "$vncpid" ] && kill -9 $vncpid
+ rm ${stubdom_configdir}/$domname-dm
xm destroy $domname-dm
- rm ${stubdom_configdir}/$domname-dm
) &
# We need to exit immediately so as to let xend do the commands above
exit 0
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] stubdom: fix a race that affects live migration with stubdoms,
Xen patchbot-unstable <=
|
|
|
|
|