From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Julien Grall <julien@xen.org>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
<xen-devel@lists.xenproject.org>, <bertrand.marquis@arm.com>,
<michal.orzel@amd.com>, <Volodymyr_Babchuk@epam.com>,
<andrew.cooper3@citrix.com>
Subject: Re: [PATCH v3 2/5] xen/arm: dom0less: Add trap-unmapped-accesses
Date: Tue, 3 Jun 2025 14:59:49 +0200 [thread overview]
Message-ID: <aD7xxWhBG6Boap_6@zapote> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2506021555540.1147082@ubuntu-linux-20-04-desktop>
On Mon, Jun 02, 2025 at 03:57:28PM -0700, Stefano Stabellini wrote:
> On Mon, 2 Jun 2025, Julien Grall wrote:
> > Hi,
> >
> > On 02/06/2025 23:36, Stefano Stabellini wrote:
> > > On Fri, 30 May 2025, Edgar E. Iglesias wrote:
> > > > From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
> > > >
> > > > Add the trap-unmapped-accesses per-domain fdt property.
> > > >
> > > > Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
> > > > ---
> > > > docs/misc/arm/device-tree/booting.txt | 10 ++++++++++
> > > > xen/arch/arm/dom0less-build.c | 9 ++++++++-
> > > > 2 files changed, 18 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/docs/misc/arm/device-tree/booting.txt
> > > > b/docs/misc/arm/device-tree/booting.txt
> > > > index 59fa96a82e..9add6440de 100644
> > > > --- a/docs/misc/arm/device-tree/booting.txt
> > > > +++ b/docs/misc/arm/device-tree/booting.txt
> > > > @@ -225,6 +225,16 @@ with the following properties:
> > > > option is provided with a non zero value, but the platform doesn't
> > > > support
> > > > SVE.
> > > > +- trap-unmapped-accesses
> > > > +
> > > > + Optional. An integer that configures handling of accesses to unmapped
> > > > + address ranges.
> > > > + If set to 0, guest accesses will read all bits as ones, e.g
> > > > 0xFFFFFFFF
> > > > + for a 32bit access and writes will be ignored.
> > > > + If set to 1, guest accesses will trap.
> > > > +
> > > > + This option is only implemented for ARM where the default is 1.
> > >
> > > Please expand it to: "This option is only implemented for ARM where the
> > > default is 1 when trap-unmapped-accesses is absent."
> >
> > I am confused. The document is part of "docs/misc/arm" and some options like
> > "sve" are Arm specific. We don't mention this is Arm only because the
> > documention is Arm specific.
> >
> > I know that RISC-V is starting to share the bindings. So really (part of) the
> > documentation should be moved to common. Until then, I think it is misleading
> > to add "is only implemented for ARM".
>
> Yes you are right. Maybe Oleksii or Alejandro can fix this, moving this
> file to common.
>
> For this smaller patch series, I would remove the "is only implemented
> for ARM".
Thanks, I've changed that line to:
"The default is 1 when trap-unmapped-accesses is absent."
Cheers,
Edgar
next prev parent reply other threads:[~2025-06-03 13:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-30 13:45 [PATCH v3 0/5] xen/arm: Add option to optionally disable trapping on unmapped acceses Edgar E. Iglesias
2025-05-30 13:45 ` [PATCH v3 1/5] xen/arm: Add way to disable traps on accesses to unmapped addresses Edgar E. Iglesias
2025-06-02 8:45 ` Jan Beulich
2025-06-02 15:23 ` Edgar E. Iglesias
2025-06-02 22:35 ` Stefano Stabellini
2025-06-03 9:36 ` Julien Grall
2025-06-03 12:48 ` Edgar E. Iglesias
2025-05-30 13:45 ` [PATCH v3 2/5] xen/arm: dom0less: Add trap-unmapped-accesses Edgar E. Iglesias
2025-06-02 22:36 ` Stefano Stabellini
2025-06-02 22:47 ` Julien Grall
2025-06-02 22:57 ` Stefano Stabellini
2025-06-03 12:59 ` Edgar E. Iglesias [this message]
2025-05-30 13:45 ` [PATCH v3 3/5] tools/arm: Add the trap_unmapped_accesses xl config option Edgar E. Iglesias
2025-06-02 22:42 ` Stefano Stabellini
2025-06-03 9:34 ` Julien Grall
2025-06-03 12:49 ` Edgar E. Iglesias
2025-05-30 13:45 ` [PATCH v3 4/5] tools/ocaml: Update bindings for CDF_TRAP_UNMAPPED_ACCESSES Edgar E. Iglesias
2025-05-30 13:49 ` Christian Lindig
2025-05-30 13:45 ` [PATCH v3 5/5] tools/golang: Regenerate bindings for trap_unmapped_accesses Edgar E. Iglesias
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=aD7xxWhBG6Boap_6@zapote \
--to=edgar.iglesias@amd.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=edgar.iglesias@gmail.com \
--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.