All of lore.kernel.org
 help / color / mirror / Atom feed
From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Bertrand Marquis <bertrand.marquis@arm.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Jens Wiklander <jenswi@kernel.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	Michal Orzel <michal.orzel@amd.com>
Subject: Re: [PATCH v3 6/6] xen/arm: ffa: Deliver VM-to-VM notifications locally
Date: Thu, 26 Nov 2026 01:50:02 +0000	[thread overview]
Message-ID: <87ld6gicon.fsf@epam.com> (raw)
In-Reply-To: <24033eeb87446cda8c91f27a453317417328fd5f.1788268510.git.bertrand.marquis@arm.com>

Hi Bertrand,

Bertrand Marquis <bertrand.marquis@arm.com> writes:

> VM notification binding and pending tracking exist for non-secure
> endpoints, but FFA_NOTIFICATION_SET still only forwards secure
> destinations to the SPMC. Non-secure VMs therefore cannot receive
> notifications from other VMs. Local NPI delivery also needs explicit
> re-arm tracking so repeated raises are not lost while the interrupt is
> already pending.
>
> Add a local VM notification delivery path for non-secure destinations.
> notification_set_vm() resolves the destination endpoint, verifies that
> every requested bit is bound to the sender, sets the receiver's
> vm_pending bitmap under notif_lock, and raises an NPI only when local
> pending state is not already armed.
>
> Track whether a local NPI is already armed with notif_irq_raised,
> clear that state once both VM and hypervisor pending bitmaps are
> drained, and keep notif_lock held across the VM notification injection
> attempt. If no destination vCPU is online, leave the pending bits set
> and keep notif_irq_raised clear so delivery can be retried later.
> Also expose firmware notification availability so FFA_FEATURES only
> advertises notification support when it is actually provided by the
> firmware or by CONFIG_FFA_VM_TO_VM.
>
> Functional impact: when CONFIG_FFA_VM_TO_VM is enabled, non-secure
> FFA_NOTIFICATION_SET delivers VM-to-VM notifications locally and keeps
> NPI delivery reliable across repeated raises.
>
> Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>

Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

[...]

-- 
WBR, Volodymyr

  reply	other threads:[~2026-11-26  1:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 14:43 [PATCH v3 0/6] xen/arm: ffa: Harden notifications and enable VM-to-VM delivery Bertrand Marquis
2026-09-03 14:43 ` [PATCH v3 1/6] xen/arm: ffa: Fix NPI injection when vcpu0 is offline Bertrand Marquis
2026-11-25 23:40   ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 2/6] xen/arm: ffa: Track hypervisor notifications in a bitmap Bertrand Marquis
2026-11-26  0:29   ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 3/6] xen/arm: ffa: Tighten notification parameter validation Bertrand Marquis
2026-11-26  3:01   ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 4/6] xen/arm: ffa: Preserve secure notification state when polling SPMC Bertrand Marquis
2026-11-29 21:27   ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 5/6] xen/arm: ffa: Track VM notification bindings locally Bertrand Marquis
2026-11-29 22:03   ` Mykola Kvach
2026-09-03 14:43 ` [PATCH v3 6/6] xen/arm: ffa: Deliver VM-to-VM notifications locally Bertrand Marquis
2026-11-26  1:50   ` Volodymyr Babchuk [this message]
2026-11-29 22:59   ` Mykola Kvach

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=87ld6gicon.fsf@epam.com \
    --to=volodymyr_babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=jenswi@kernel.org \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=sstabellini@kernel.org \
    --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.