From: Marc Zyngier <maz@kernel.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>,
Christoffer Dall <cdall@kernel.org>,
shashi.mallela@linaro.org,
Arnd Bergmann <arnd.bergmann@linaro.org>,
kvmarm@lists.cs.columbia.edu, stratos-dev@op-lists.linaro.org
Subject: Re: Configuring the host GIC for guest to guest IPI
Date: Mon, 13 Dec 2021 12:10:26 +0000 [thread overview]
Message-ID: <87pmq0k8nh.wl-maz@kernel.org> (raw)
In-Reply-To: <87fsqwn2sd.fsf@linaro.org>
Hi Alex,
On Mon, 13 Dec 2021 11:40:41 +0000,
Alex Bennée <alex.bennee@linaro.org> wrote:
>
> Hi GIC experts,
>
> This came up last week in the Stratos sync call when we were discussing
> Vincent's SCMI setup:
>
> https://linaro.atlassian.net/wiki/spaces/STR/pages/28665741503/2021-12-09+Project+Stratos+Meeting+Notes
>
> with the shared memory between the two guests the only reason we
> currently exit to the guest userspace (QEMU) is to forward notifications
> of virtqueue kicks from one guest to the other. I'm vaguely aware from
> my time looking at GIC code that it can be configured for IPI IRQs
> between two cores. Do we have that ability between two vCPUs from
> different guests?
>
> If not what would it take to enable such a feature?
SGIs (the interrupt type used to implement IPIs) are by definition
local to a system (be it physical or virtual), and the idea of being
able to route these outside the system doesn't hold.
So as far as KVM is concerned, this is a strong *never*.
The per-CPU nature of these interrupts is also pretty bad. It means
that the guest cannot suspend some CPUs without also losing access to
the device/shared memory. Bad.
If you want to generate a signal that is used between VMs, why not use
a global interrupt (SPI), where each VM treats the other one as a
device rather than a peer? At least the semantics are manageable, and
all you need to implement is some irqfd plumbing in both direction,
much along the lines of what vfio (and probably vhost) already does
for the exact same purpose (signalling in-kernel events to a VM).
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
prev parent reply other threads:[~2021-12-13 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 11:40 Configuring the host GIC for guest to guest IPI Alex Bennée
2021-12-13 12:10 ` Marc Zyngier [this message]
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=87pmq0k8nh.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=alex.bennee@linaro.org \
--cc=arnd.bergmann@linaro.org \
--cc=cdall@kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=shashi.mallela@linaro.org \
--cc=stratos-dev@op-lists.linaro.org \
--cc=vincent.guittot@linaro.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.