From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Teddy Astie <teddy.astie@vates.tech>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH for-4.22 v2 3/4] xen/irq: handle IRQ being disabled while executing its handler
Date: Mon, 29 Jun 2026 16:29:44 +0200 [thread overview]
Message-ID: <akKBWHftre8AF3f7@macbook.local> (raw)
In-Reply-To: <d965a04d-c66b-4c7c-8ce7-c1da029a6b7e@suse.com>
On Mon, Jun 29, 2026 at 12:31:56PM +0200, Jan Beulich wrote:
> On 29.06.2026 11:45, Roger Pau Monne wrote:
> > It's possible for IRQ_DISABLED to be set while running the handler
> > execution loop in do_IRQ(). Such disabling can be done by the handler
> > itself, or from a remote CPU.
>
> I don't think the handler itself can legitimately call any of the functions
> setting IRQ_DISABLED.
Hm, yes, we still have no interrupt handlers that set IRQ_DISABLED,
but we will gain one in the next patch, where ns16550_interrupt() will
call disable_irq() that does set IRQ_DISABLED.
> > Check for IRQ_DISABLED not being set in the loop condition, as to not
> > execute the handler if the IRQ has been disabled.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>
> Preferably with the description adjusted (or it being pointed out what I may
> be overlooking):
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
I'm happy to clarify the commit message to note that while we have no
instances ATM, but that future changes might introduce some.
Thanks, Roger.
next prev parent reply other threads:[~2026-06-29 14:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 9:45 [PATCH for-4.22 v2 0/4] ns16550: bound interrupt handler execution time Roger Pau Monne
2026-06-29 9:45 ` [PATCH for-4.22 v2 1/4] riscv/irq: define a per-arch irq_to_desc() Roger Pau Monne
2026-06-29 10:01 ` Oleksii Kurochko
2026-06-29 10:06 ` Jan Beulich
2026-06-29 9:45 ` [PATCH for-4.22 v2 2/4] xen/ppc: introduce a dummy irq_to_desc() Roger Pau Monne
2026-06-29 10:07 ` Jan Beulich
2026-06-29 10:09 ` Oleksii Kurochko
2026-06-29 14:26 ` Oleksii Kurochko
2026-06-29 9:45 ` [PATCH for-4.22 v2 3/4] xen/irq: handle IRQ being disabled while executing its handler Roger Pau Monne
2026-06-29 10:31 ` Jan Beulich
2026-06-29 14:29 ` Roger Pau Monné [this message]
2026-06-29 14:31 ` Jan Beulich
2026-06-29 13:37 ` Oleksii Kurochko
2026-06-29 9:45 ` [PATCH for-4.22 v2 4/4] char/ns16550: bound execution time of ns16550_interrupt() Roger Pau Monne
2026-06-29 10:39 ` Jan Beulich
2026-06-29 14:44 ` Roger Pau Monné
2026-06-29 13:49 ` Oleksii Kurochko
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=akKBWHftre8AF3f7@macbook.local \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=oleksii.kurochko@gmail.com \
--cc=teddy.astie@vates.tech \
--cc=xen-devel@lists.xenproject.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