[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] stubdom: fix a race that affects live migration with stubdoms



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1247059573 -3600
# Node ID 457be4ce8e7be7128e14f888e847eaa754c4cbb9
# Parent  b9f46609c74f8e7b917ed4b0da8bf70e13c0874b
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>
xen-unstable changeset:   19909:797006dadc38
xen-unstable date:        Wed Jul 08 10:51:00 2009 +0100
---
 stubdom/stubdom-dm |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r b9f46609c74f -r 457be4ce8e7b stubdom/stubdom-dm
--- a/stubdom/stubdom-dm        Wed Jul 08 14:25:17 2009 +0100
+++ b/stubdom/stubdom-dm        Wed Jul 08 14:26:13 2009 +0100
@@ -71,8 +71,8 @@ term() {
     kill %1
     (
        [ -n "$vncpid" ] && kill -9 $vncpid
+       rm /etc/xen/stubdoms/$domname-dm
        xm destroy $domname-dm
-        rm /etc/xen/stubdoms/$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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.