]> Git Repo - qemu.git/commitdiff
hw/vmmouse.c: Disable vmmouse after reboot
authorGerhard Wiesinger <[email protected]>
Wed, 25 Jan 2012 20:04:14 +0000 (21:04 +0100)
committerAnthony Liguori <[email protected]>
Wed, 1 Feb 2012 22:24:38 +0000 (16:24 -0600)
Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2
mouse.

Details:
When a guest activated the vmmouse followed by a reboot the vmmouse was still
enabled and the PS/2 mouse was therefore unsusable. When another guest is then
booted without vmmouse support (e.g. PS/2 mouse) the mouse is not working.

Reason is that VMMouse has priority and disables all other mouse entities
and therefore must be disabled on reset.

Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows with VMMouse tools)
2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work
     any more. Fixes that issue.

Testscenario 2 by Jan Kiszka <[email protected]>:
Confirm that this patch fixes a real issue. Setup: qemu.git,
opensuse 11.4 guest, SDL graphic, system_reset while guest is using the
vmmouse. Without the patch, the vmmouse become unusable after the
reboot. Also, the mouse stays in absolute mode even before X starts again.

Fixed by:
Disabling the vmmouse in its reset handler.

Tested-by: Andreas F=E4rber <[email protected]>
Signed-off-by: Gerhard Wiesinger <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/vmmouse.c

index da2ea32dfb3488b40bf39e5697c7278535ff580c..5c80bc4f73e73334ea96560f7cf43408e1d07a50 100644 (file)
@@ -254,6 +254,8 @@ static void vmmouse_reset(DeviceState *d)
 
     s->status = 0xffff;
     s->queue_size = VMMOUSE_QUEUE_SIZE;
+
+    vmmouse_disable(s);
 }
 
 static int vmmouse_initfn(ISADevice *dev)
This page took 0.031084 seconds and 4 git commands to generate.