qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Fix to disable vmmouse after rebo


From: Gerhard Wiesinger
Subject: Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Fix to disable vmmouse after reboot
Date: Wed, 4 Jan 2012 18:25:01 +0100 (CET)
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)

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

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

Ciao,
Gerhard

--
http://www.wiesinger.com/


On Wed, 4 Jan 2012, Andreas Färber wrote:

Am 04.01.2012 17:54, schrieb Gerhard Wiesinger:
Bugfix after reboot when vmmouse was enabled and another OS which uses
e.g. PS/2
mouse.

Could you please be a bit more verbose on what symptoms that fixes?

Thanks,
Andreas


Signed-off-by: Gerhard Wiesinger <address@hidden>
---
 hw/vmmouse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/vmmouse.c b/hw/vmmouse.c
index 1113f33..f9f5b53 100644
--- a/hw/vmmouse.c
+++ b/hw/vmmouse.c
@@ -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)

--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]