From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel@lists.xenproject.org,
Oleksii Kurochko <oleksii.kurochko@gmail.com>
Subject: Re: [PATCH v3 for-4.19 1/3] x86/irq: deal with old_cpu_mask for interrupts in movement in fixup_irqs()
Date: Tue, 18 Jun 2024 13:15:11 +0200 [thread overview]
Message-ID: <ZnFsP9Xt4e1cQsCA@macbook> (raw)
In-Reply-To: <f92fc38b-aba9-4f8f-b95c-4723049523d0@suse.com>
On Mon, Jun 17, 2024 at 03:18:42PM +0200, Jan Beulich wrote:
> On 13.06.2024 18:56, Roger Pau Monne wrote:
> > Given the current logic it's possible for ->arch.old_cpu_mask to get out of
> > sync: if a CPU set in old_cpu_mask is offlined and then onlined
> > again without old_cpu_mask having been updated the data in the mask will no
> > longer be accurate, as when brought back online the CPU will no longer have
> > old_vector configured to handle the old interrupt source.
> >
> > If there's an interrupt movement in progress, and the to be offlined CPU (which
> > is the call context) is in the old_cpu_mask clear it and update the mask, so it
> > doesn't contain stale data.
>
> Perhaps a comma before "clear" might further help reading. Happy to
> add while committing.
Maybe, I'm trying to think of other ways to word the sentence in order
to make is simpler, but I'm out of ideas.
> > Note that when the system is going down fixup_irqs() will be called by
> > smp_send_stop() from CPU 0 with a mask with only CPU 0 on it, effectively
> > asking to move all interrupts to the current caller (CPU 0) which is the only
> > CPU to remain online. In that case we don't care to migrate interrupts that
> > are in the process of being moved, as it's likely we won't be able to move all
> > interrupts to CPU 0 due to vector shortage anyway.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
Thanks, Roger.
next prev parent reply other threads:[~2024-06-18 11:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 16:56 [PATCH v3 0/3] x86/irq: fixes for CPU hot{,un}plug Roger Pau Monne
2024-06-13 16:56 ` [PATCH v3 1/3] x86/irq: deal with old_cpu_mask for interrupts in movement in fixup_irqs() Roger Pau Monne
2024-06-17 13:18 ` [PATCH v3 for-4.19 " Jan Beulich
2024-06-18 8:11 ` Oleksii K.
2024-06-18 11:15 ` Roger Pau Monné [this message]
2024-06-13 16:56 ` [PATCH v3 2/3] x86/irq: handle moving interrupts in _assign_irq_vector() Roger Pau Monne
2024-06-17 13:31 ` [PATCH v3 for-4.19 " Jan Beulich
2024-06-18 8:16 ` Oleksii K.
2024-06-18 11:22 ` Roger Pau Monné
2024-06-13 16:56 ` [PATCH v3 3/3] x86/irq: forward pending interrupts to new destination in fixup_irqs() Roger Pau Monne
2024-06-17 13:41 ` Jan Beulich
2024-06-18 11:30 ` Roger Pau Monné
2024-06-18 14:34 ` Jan Beulich
2024-06-18 14:50 ` Roger Pau Monné
2024-06-18 16:30 ` Jan Beulich
2024-06-19 7:05 ` Roger Pau Monné
2024-06-19 7:24 ` Jan Beulich
2024-06-19 8:32 ` Roger Pau Monné
2024-06-19 9:10 ` Jan Beulich
2024-06-14 7:28 ` [PATCH v3 0/3] x86/irq: fixes for CPU hot{,un}plug Roger Pau Monné
2024-06-14 11:52 ` Oleksii K.
2024-06-14 12:33 ` Roger Pau Monné
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=ZnFsP9Xt4e1cQsCA@macbook \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=oleksii.kurochko@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.