From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50209 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7BPZ-0007K3-2u for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:55:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7BPO-0003IA-3A for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:55:24 -0400 Received: from hartman.uits.indiana.edu ([129.79.1.194]:40735 helo=internal-relay.indiana.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7BPN-0003HD-VI for qemu-devel@nongnu.org; Tue, 05 Apr 2011 14:55:22 -0400 Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by internal-relay.indiana.edu (8.14.4/8.14.4/IU Messaging Team) with ESMTP id p35ItIwN013048 for ; Tue, 5 Apr 2011 14:55:18 -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 p35ItH1J007151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 5 Apr 2011 14:55:18 -0400 From: Brian Wheeler Content-Type: text/plain; charset="UTF-8" Date: Tue, 05 Apr 2011 14:55:16 -0400 Message-ID: <1302029716.31961.24.camel@nibbler.dlib.indiana.edu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Questions about chardev (and ps/2 mouse) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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) Thanks for any hints! Brian