From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDgJp-00018z-K7 for qemu-devel@nongnu.org; Mon, 08 Jun 2009 10:59:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDgJj-00017q-TD for qemu-devel@nongnu.org; Mon, 08 Jun 2009 10:59:24 -0400 Received: from [199.232.76.173] (port=43085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDgJj-00017i-Ff for qemu-devel@nongnu.org; Mon, 08 Jun 2009 10:59:19 -0400 Received: from mx2.redhat.com ([66.187.237.31]:60160) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDgJi-0003T8-Sd for qemu-devel@nongnu.org; Mon, 08 Jun 2009 10:59:19 -0400 Message-ID: <4A2D2743.4050501@redhat.com> Date: Mon, 08 Jun 2009 17:59:15 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [SOLUTION] "i8042.c: No controller found" -> OS sees no keyboard if I type "in BIOS" References: <4A0C232D.1020201@wpkg.org> <4A13CDC4.3000704@wpkg.org> <4A1405E1.70405@wpkg.org> <20090607040410.GA25831@amt.cnet> <4A2D1752.1080004@wpkg.org> <4A2D1C75.2040006@wpkg.org> In-Reply-To: <4A2D1C75.2040006@wpkg.org> 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: Tomasz Chmielewski Cc: Anthony Liguori , Marcelo Tosatti , qemu-devel@nongnu.org Tomasz Chmielewski wrote: > Tomasz Chmielewski wrote: >> Marcelo Tosatti wrote: >> >>>> Or Qemu, for having its keyboard buffer too large (I'm not sure, >>>> but probably 256 bytes)? >>> >>> All references (*) i could find mention 16 bytes of output buffer >>> (including the Linux source as you mentioned, which was reduced from 32 >>> to 16 somewhere in the 2.6.10 era). >>> >>> http://www.computer-engineering.org/ps2protocol/ >>> >>> http://linux.bkbits.net:8080/linux-2.6.28-stable/drivers/input/serio/i8042.h?PAGE=diffs&REV=4203735dp_doSExYU6ido8KnczbjzQ >>> >>> >>> Reducing PS2_QUEUE_SIZE to 16 also makes the Linux detection loop >>> happy. >>> >>> If QEMU claims to emulate i8042, it should be similar to real hardware. >>> >>> However i'm not familiar with PS/2 or i8042. Anthony? >> >> This: >> >> #define KBD_QUEUE_SIZE 256 >> >> dates back to qemu-0.5.1, where it was defined in vl.c. >> >> Seems like it's in Qemu from the very beginning? >> >> >> PS2_QUEUE_SIZE 256 was introduced in qemu-0.8.0. > > BTW, with "PS2_QUEUE_SIZE 16" I'm still able to trigger: > > i8042.c: No controller found. > > > Only with "PS2_QUEUE_SIZE 15" keyboard is detected every time I boot > the guest (unless that's what you meant by setting it to 16). > I think this points to a bug in the bios. The keyboard-internal queue size shouldn't cause any problems. -- error compiling committee.c: too many arguments to function