From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQWXQ-0004HX-0B for qemu-devel@nongnu.org; Mon, 13 Jul 2009 21:10:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQWXL-0004HA-Iv for qemu-devel@nongnu.org; Mon, 13 Jul 2009 21:10:31 -0400 Received: from [199.232.76.173] (port=51807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQWXL-0004H7-GT for qemu-devel@nongnu.org; Mon, 13 Jul 2009 21:10:27 -0400 Received: from mail-qy0-f174.google.com ([209.85.221.174]:44640) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQWXL-0003wF-5W for qemu-devel@nongnu.org; Mon, 13 Jul 2009 21:10:27 -0400 Received: by qyk4 with SMTP id 4so2077063qyk.4 for ; Mon, 13 Jul 2009 18:10:26 -0700 (PDT) Message-ID: <4A5BDB00.8030100@codemonkey.ws> Date: Mon, 13 Jul 2009 20:10:24 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] No keyboard / mouse after reboot References: <04b201ca0411$514a9d40$732d2b09@DineshThinkpad> In-Reply-To: <04b201ca0411$514a9d40$732d2b09@DineshThinkpad> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dinesh Subhraveti Cc: qemu-devel@nongnu.org Needs a Signed-off-by. However... Dinesh Subhraveti wrote: > At system initialization, some guests conclude that i8042 controller > is missing when the PS2 buffer is full. As a result, the guest comes > up with no keyboard or mouse. The behavior is seen when the user > types or mouses over the VNC window during the BIOS phase of a reboot, > causing the PS2 buffer to fill up. It doesn't occur when the system > boots the first time, since the device is initially disabled and > doesn't accept events. > > This patch tunes Qemu parameters to reasonable values which make the > guest happy. Linux assumes the size of PS2 buffer to be 16 bytes, > while Qemu defines it as 256. Reducing PS2_QUEUE_SIZE to 15 ensures > that the guest never sees the buffer to be full. Why is Linux making assumptions about queue size being 16? It sounds broken to me. In fact, I looked in one of my PC hardware books and it claims that the typical KBD buffer size is around 20 bytes so if Linux is assuming 16, it's definitely broken. But there's speculation in the previous thread that we're masking a BIOS bug. Has that been ruled out? Regards, Anthony Liguori