From: Jean Guyader Date: Tue, 7 Apr 2009 16:25:37 +0000 (+0100) Subject: Do you try to switch to the if the domid is the same. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=35998c30ebe6588fc5cb32c0a93df59d412e2537;p=xenclient%2Fioemu.git Do you try to switch to the if the domid is the same. --- diff --git a/dom0_driver.c b/dom0_driver.c index 4c3c6062..1df5fd6e 100644 --- a/dom0_driver.c +++ b/dom0_driver.c @@ -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);