From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: "Jim Shu" <jim.shu@sifive.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
qemu-devel@nongnu.org, qemu-riscv@nongnu.org,
"Michael S. Tsirkin" <mst@redhat.com>,
"Peter Xu" <peterx@redhat.com>,
"David Hildenbrand" <david@kernel.org>,
"Clément Mathieu--Drif" <clement.mathieu--drif@eviden.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel Henrique Barboza" <daniel.barboza@oss.qualcomm.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Clément Chigot" <chigot@adacore.com>,
"Frederic Konrad" <konrad.frederic@yahoo.fr>
Subject: Re: [PATCH] exec: Add RISC-V WorldGuard WID field to MemTxAttrs
Date: Fri, 17 Jul 2026 11:08:28 +0100 [thread overview]
Message-ID: <87ik6e2ajn.fsf@draig.linaro.org> (raw)
In-Reply-To: <08c5f243-5aaa-4fe2-bc71-6a3fd9a1914e@linaro.org> ("Philippe Mathieu-Daudé"'s message of "Wed, 18 Mar 2026 07:42:31 +0100")
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> On 18/3/26 05:40, Jim Shu wrote:
>> On Tue, Feb 10, 2026 at 8:25 AM Richard Henderson
>> <richard.henderson@linaro.org> wrote:
>> ...
>>> Hmm. This really overlaps the secure and space fields from arm, and possibly some of the
>>> others as well (e.g. user, requester_id, pid).
>>>
>>> I don't really have a good suggestion for that right now, but it would be nice to not keep
>>> expanding the count of these sorts of fields that somehow specify the originator, but
>>> clearly cannot overlap.
>>>
>>> I'm reasonably sure we've had this discussion before, but nothing has come of it.
>>>
>>> Time to paint the bikeshed again?
>
> Last discussion IIRC:
> https://lore.kernel.org/qemu-devel/CAFEAcA8vKNkfKgp_Yymo9NA1=E2XJYXAMTgO3z6q6DHgqkAwRw@mail.gmail.com/
>
> (see also a suggestion in
> https://lore.kernel.org/qemu-devel/Z4+P3eHXqcU4Dqdx@intel.com/)
Also somewhat related:
Message-Id: <20221111182535.64844-1-alex.bennee@linaro.org>
Date: Fri, 11 Nov 2022 18:25:15 +0000
Subject: [PATCH for 8.0 v5 00/20] use MemTxAttrs to avoid current_cpu in hw/
Another case that was mentioned in a Core Collective meeting was
handling MMIO devices with IOMMUs (currently requester_id is tied to
PCI). I guess the WorldGuard WID field is a similar thing.
>
>>>
>> I can union the 'secure' and 'world_id' fields, as they are not used
>> together.
>> However, I have no idea about the 'space' fields.
>> I have seen CPUTLBEntryFull has the extra union to support
>> ARM-specific members.
>> Another idea is that also adding the extra union to MemTxAttrs to
>> place the RISC-V worid_id.
>> We can use this extra union to as SoC-specific signals in the bus,
>> like AXI AxUSER signal.
>> Do you think it is suitable?
>> Thanks,
>> Jim
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2026-07-17 10:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 11:58 [PATCH] exec: Add RISC-V WorldGuard WID field to MemTxAttrs Jim Shu
2026-02-10 0:25 ` Richard Henderson
2026-03-18 4:40 ` Jim Shu
2026-03-18 6:42 ` Philippe Mathieu-Daudé
2026-07-15 6:52 ` Jim Shu
2026-07-15 9:57 ` Peter Maydell
2026-07-16 2:47 ` Jim Shu
2026-07-16 3:12 ` Jim Shu
2026-07-17 8:59 ` Peter Maydell
2026-07-17 10:08 ` Alex Bennée [this message]
2026-07-17 11:14 ` Peter Maydell
2026-07-17 14:09 ` Alex Bennée
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=87ik6e2ajn.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=chigot@adacore.com \
--cc=clement.mathieu--drif@eviden.com \
--cc=daniel.barboza@oss.qualcomm.com \
--cc=david@kernel.org \
--cc=edgar.iglesias@gmail.com \
--cc=jim.shu@sifive.com \
--cc=konrad.frederic@yahoo.fr \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=zhao1.liu@intel.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 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.