xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Thomas Goetz <tcgoetz@gmail.com>
Cc: Simon Graham <simon.graham@virtualcomputer.com>,
	xen-devel@lists.xensource.com,
	Konrad Rzeszutek Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Re: Losing PS/2 Interrupts
Date: Mon, 23 May 2011 14:02:31 +0100	[thread overview]
Message-ID: <4DDA77070200007800042E74@vpn.id2.novell.com> (raw)
In-Reply-To: <1D3BFCDD-9D53-48BA-9ECD-D009AD535C2B@gmail.com>

>>> On 23.05.11 at 14:09, Thomas Goetz <tcgoetz@gmail.com> wrote:
> My assumption is that at the point that the i8042 driver reads the data 
> register a new interrupt happens. There is gap in time between when the data 
> register is read and when the event channel pending state is cleared. Since 
> the hypervisor ACKed the previous real interrupt before delivering it to the 
> guest, there is nothing to stop the i8042 device from interrupting 
> immediately after the data register is read. If it interrupt before the event 
> channel pending state is cleared, then it will not be delivered to the guest 

That would be a bug in the control flow then. In our (non-pvops)
kernel we make sure to clear the pending bit *before* calling
handle_irq() (and after masking the event channel), which clearly
is a requirement at least for edge triggered interrupts (not
necessarily before calling handle_irq(), but before calling the
device driver's handler, i.e. in chip->ack()).

Jan

> and the EOI mechanism will be set up, but I haven't found anything in that 
> that will set up a delayed delivery of the second interrupt.
> 
> In this situation the i8042 device has every reason to believe the second 
> interrupt will be delivered. The previous interrupt was received and handled. 
> Nothing is masked.
> 
> Am I missing something?
> 
> ---
> Tom Goetz
> tcgoetz@gmail.com 

  reply	other threads:[~2011-05-23 13:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 21:45 Losing PS/2 Interrupts Thomas Goetz
2011-05-20 15:53 ` Thomas Goetz
2011-05-20 17:50   ` Konrad Rzeszutek Wilk
2011-05-20 18:06     ` Thomas Goetz
2011-05-23  8:26       ` Jan Beulich
2011-05-23 12:09         ` Thomas Goetz
2011-05-23 13:02           ` Jan Beulich [this message]
2011-05-23 13:45           ` Stefano Stabellini
2011-05-23 17:16             ` Thomas Goetz
2011-05-23 17:28               ` Thomas Goetz
2011-05-23 18:39                 ` Thomas Goetz
2011-05-24 13:53                   ` Stefano Stabellini
2011-05-24 15:37                     ` Thomas Goetz
2011-05-24 15:58                       ` Stefano Stabellini
2011-05-24  9:07                 ` Jan Beulich
2011-05-24 11:04                   ` Stefano Stabellini
2011-05-24 12:24                     ` Jan Beulich
2011-05-24 12:58                       ` Konrad Rzeszutek Wilk
2011-05-24 15:40                         ` Jan Beulich
2011-05-24 16:00                           ` Stefano Stabellini
2011-05-24 13:52                       ` Stefano Stabellini
2011-05-24 15:37                         ` Jan Beulich
2011-05-24 16:35                           ` Stefano Stabellini

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=4DDA77070200007800042E74@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=konrad.wilk@oracle.com \
    --cc=simon.graham@virtualcomputer.com \
    --cc=tcgoetz@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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).