From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiUbu-0003sS-Jk for qemu-devel@nongnu.org; Wed, 04 Jan 2012 12:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiUbs-0008Hv-Oe for qemu-devel@nongnu.org; Wed, 04 Jan 2012 12:26:46 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:50255 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiUbs-0008HX-A2 for qemu-devel@nongnu.org; Wed, 04 Jan 2012 12:26:44 -0500 Date: Wed, 4 Jan 2012 18:25:01 +0100 (CET) From: Gerhard Wiesinger In-Reply-To: <4F0487EE.6090502@suse.de> Message-ID: References: <4F0487EE.6090502@suse.de> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811584-1199341297-1325697901=:28156" Subject: Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Fix to disable vmmouse after reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: qemu-devel@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811584-1199341297-1325697901=:28156 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by wiesinger.com id q04HP17k029390 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) =3D> PS/2 mouse doesn= 't=20 work any more. Fixes that issue. Reason is that VMMouse has priority and disables all other mouse=20 entities and therefore must be disabled on reset. Ciao, Gerhard -- http://www.wiesinger.com/ On Wed, 4 Jan 2012, Andreas F=E4rber 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 >> --- >> 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 =3D 0xffff; >> s->queue_size =3D VMMOUSE_QUEUE_SIZE; >> + >> + vmmouse_disable(s); >> } >> >> static int vmmouse_initfn(ISADevice *dev) > > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg > > > ---1463811584-1199341297-1325697901=:28156--