qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dinesh Subhraveti" <subhraveti@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] No keyboard / mouse after reboot
Date: Mon, 13 Jul 2009 18:42:01 -0700	[thread overview]
Message-ID: <h3gnpm$20t$1@ger.gmane.org> (raw)
In-Reply-To: 4A5BDB00.8030100@codemonkey.ws


"Anthony Liguori" <anthony@codemonkey.ws> wrote in message 
news:4A5BDB00.8030100@codemonkey.ws...
> 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

Good question, for which I don't know the answer.  But regardless of the 
buffer size, it fills up quite quickly with mouse events, and the guest 
would be left without a keyboard.

> 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?
>

Yeah, this doesn't seem to be a BIOS issue.  It is also reproducible 
with -kernel option.

Thanks,
Dinesh 

      reply	other threads:[~2009-07-14  1:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-13 23:26 [Qemu-devel] [PATCH] No keyboard / mouse after reboot Dinesh Subhraveti
2009-07-14  1:10 ` Anthony Liguori
2009-07-14  1:42   ` Dinesh Subhraveti [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h3gnpm$20t$1@ger.gmane.org' \
    --to=subhraveti@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).