From 35998c30ebe6588fc5cb32c0a93df59d412e2537 Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Tue, 7 Apr 2009 17:25:37 +0100 Subject: [PATCH] Do you try to switch to the if the domid is the same. --- dom0_driver.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5