From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
Subject: Re: [PATCH] xen: do not clear and mask evtchns in __xen_evtchn_do_upcall
Date: Tue, 5 Apr 2011 12:19:27 +0100 [thread overview]
Message-ID: <alpine.DEB.2.00.1104051211420.16492@kaball-desktop> (raw)
In-Reply-To: <20110404171739.GA15070@dumpdata.com>
On Mon, 4 Apr 2011, Konrad Rzeszutek Wilk wrote:
> > I reworded this part of the commit message, see below updated patch.
> >
> [looking]
> .. snip..
> > > Can you expand? As in for the GSI? Or for the MSI/MSI-X?
> >
> > Linux on native would use handle_edge_irq for edge irqs and msis, and
> > handle_fasteoi_irq for everything else.
>
> What about per_cpu one?
>
That is the simplest case, we are already using the same semantic as in
the native code.
> > > OK. You need a big comment about this in the code. Explain
> > > why this is happening. B/c if you look at this from code
> > > it seems like wrong thing to do for gsi's (as in you would
> > > think handle_level_irq would the right choice).
> >
> > Except handle_level_irq is not used anymore anywhere in the kernel, give
> > a look at arch/x86/kernel/apic/io_apic.c:ioapic_register_intr.
>
> 'make_8259A_irq' ? But yeah, I don't think we will hit machines with
> that architecture anymore.
Actually I was looking at:
setup_IO_APIC_irqs -> __io_apic_setup_irqs -> io_apic_setup_irq_pin
> > Updated patch, rebased on 2.6.39-rc1 follows:
> >
> > ---
> >
> >
> > commit 6978531913b45abf3aff048475a2174a2cdaf288
> > Author: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> > Date: Tue Mar 29 14:15:06 2011 +0000
> >
> > xen: do not clear and mask evtchns in __xen_evtchn_do_upcall
> >
> > Change the irq handler of virqs and pirqs that don't need EOI (pirqs
> > that correspond to physical edge interrupts) to handle_edge_irq.
> >
> > Use handle_fasteoi_irq for pirqs that need eoi (they generally
> > correspond to level triggered irqs), no risk in loosing interrupts
> > because we have to EOI the irq anyway.
> >
> > This change has the following benefits:
> >
> > - it uses the very same handlers that Linux would use on native for the
> > same irqs (handle_edge_irq for edge irqs and msis, and
> ^^^-'MSIs/MSI-Xs'
> > handle_fasteoi_irq for everything else);
> >
> > - it uses these handlers in the same way Linux would use them: it let
> ^- 's'
>
> > Linux mask\unmask and ack the irq when Linux want to mask\unmask and ack
> ^- 's'
> > the irq;
> >
> > See genericirq in the kernel docbook docs for more informations.
>
> Say 'Documentation/DocBook/genericirq.tmpl'
>
> [edit: The patch looks OK to me, but let me think about this some more over this
> week and sketch out the flow].
done
next prev parent reply other threads:[~2011-04-05 11:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 14:15 Stefano Stabellini
2011-03-29 15:13 ` [Xen-devel] " Jan Beulich
2011-03-29 15:19 ` Stefano Stabellini
2011-03-30 15:46 ` Konrad Rzeszutek Wilk
2011-04-04 16:46 ` Stefano Stabellini
2011-04-04 17:17 ` Konrad Rzeszutek Wilk
2011-04-05 11:19 ` Stefano Stabellini [this message]
2011-04-05 8:51 ` [Xen-devel] " Ian Campbell
2011-04-05 11:53 ` 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=alpine.DEB.2.00.1104051211420.16492@kaball-desktop \
--to=stefano.stabellini@eu.citrix.com \
--cc=Jeremy.Fitzhardinge@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®