]> xenbits.xen.org Git - xenclient/ioemu.git/commitdiff
Do you try to switch to the if the domid is the same.
authorJean Guyader <jean.guyader@eu.citrix.com>
Tue, 7 Apr 2009 16:25:37 +0000 (17:25 +0100)
committerJean Guyader <jean.guyader@eu.citrix.com>
Tue, 21 Apr 2009 17:15:47 +0000 (18:15 +0100)
dom0_driver.c

index 4c3c60623ad30c62472395bff83110145bdf23f5..1df5fd6e66d8523baa11931db432c89121e9d69e 100644 (file)
@@ -529,6 +529,12 @@ static void dom0_driver_switch_controller(int slot, int controller)
        return;
     }
 
+    if (info.domid == positions[slot])
+    {
+       DEBUG("Cannot switch controller %d to %d, already got the focus\n", controller, slot);
+       return;
+    }
+
     dom0_driver_xs_write("new-slot", slot, controller);
     dom0_driver_xs_write("timestamp", time(NULL), controller);
     dom0_driver_xs_write("state", 0, controller);