From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42038 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7C3v-0002cj-RK for qemu-devel@nongnu.org; Tue, 05 Apr 2011 15:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7C3Y-0006kn-Sw for qemu-devel@nongnu.org; Tue, 05 Apr 2011 15:36:53 -0400 Received: from belushi.uits.indiana.edu ([129.79.1.188]:52513 helo=internal-relay.indiana.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7C3Y-0006kg-NJ for qemu-devel@nongnu.org; Tue, 05 Apr 2011 15:36:52 -0400 Received: from mail-relay.iu.edu (candy.uits.indiana.edu [129.79.1.201]) by internal-relay.indiana.edu (8.14.4/8.14.4/IU Messaging Team) with ESMTP id p35Jap8G002522 for ; Tue, 5 Apr 2011 15:36:51 -0400 Received: from [129.79.35.119] (nibbler.dlib.indiana.edu [129.79.35.119]) (authenticated bits=0) by mail-relay.iu.edu (8.14.4/8.14.4/IU Messaging Team Submission) with ESMTP id p35JaoGr004637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Apr 2011 15:36:51 -0400 Subject: Re: [Qemu-devel] Questions about chardev (and ps/2 mouse) From: Brian Wheeler In-Reply-To: <1302029716.31961.24.camel@nibbler.dlib.indiana.edu> References: <1302029716.31961.24.camel@nibbler.dlib.indiana.edu> Content-Type: text/plain; charset="UTF-8" Date: Tue, 05 Apr 2011 15:36:50 -0400 Message-ID: <1302032210.31961.25.camel@nibbler.dlib.indiana.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, 2011-04-05 at 14:55 -0400, Brian Wheeler wrote: > I'm trying to disable the ps/2 mouse in favor of the serial mouse > provided by -chardev msmouse since the ps/2 mouse has had lots of > problems with older OSes (OpenStep, OS/2, Win 3.1, etc). I've got a > couple of questions: > > 1) If I change a VMState something by appending a field (i.e. > "unplugged"), do I have to update version_id? How do the > minimum_version_id{,_old} fields fit in? > > 2) I've had to hardcode the unplugged value in ps2_mouse_reset since the > call is pretty deep in the call stack, 8042->pckbd->ps2. Ideally, I'd > like to set (*PS2MouseState)->unplugged from qemu_chr_open_msmouse() so > that if the serial mouse is set up the ps/2 mouse would be disabled. > > 3) When I enable the msmouse (via -chardev msmouse,id=mouse) qemu > segfaults. I've traced it back to the CharDriverSTate for msmouse not > having a valid handler_opaque (it is null). How would I connect that to > the serial port (any of them, but ideally the 2nd one) > Ignore the last question. I realized I had to use: -chardev msmouse,id=msmouse -device isa-serial,chardev=msmouse to connect them :) > Thanks for any hints! > Brian > >