From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xenproject.org, sstabellini@kernel.org,
julien@xen.org, bertrand.marquis@arm.com, michal.orzel@amd.com,
Volodymyr_Babchuk@epam.com, edgar.iglesias@amd.com
Subject: Re: [PATCH v1 0/3] xen/arm: Add option to optionally disable trapping on unmapped mmio
Date: Wed, 28 May 2025 22:38:15 +0200 [thread overview]
Message-ID: <aDd0N1SD5obMbuZ-@zapote> (raw)
In-Reply-To: <2eac2199-f3e2-4fa8-b6e3-f6cbf999d436@citrix.com>
On Tue, May 27, 2025 at 09:03:11PM +0100, Andrew Cooper wrote:
> On 27/05/2025 8:56 pm, Edgar E. Iglesias wrote:
> > From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
> >
> > This follows up on the virtio-pci discussion and adds a per-domain
> > option to select the behaviour of accesses to unmapped mmio ranges.
> > The new option is trap-unmapped-mmio. For dom0less I negated it to
> > be able to use a boolean prop and keep existing behaviour, i.e
> > trap-unmapped-mmio-disabled.
> >
> > I'm happy with any name though so if you have better ideas please
> > suggest them!
> >
> > For the domain config i followed the example of x86 flags
> > and XEN_X86_MSR_RELXED, creating a flags field for ARM.
> >
> > Thanks,
> > Edgar
>
> I think this should be common, rather than ARM specific.
>
> Traditionally on x86, access to unimplemented address space was ignored
> (write discard, read ~0), but these days you do get a machine check on
> certain ranges, which is for all intents and purposes the same as a data
> abort.
>
> So even if x86 requires it to be false in the short term, I think the
> control ought to be common, so x86 and others can opt in at a later point.
We can do that, we'd need to have different default values though since
x86 wants default false and ARM default true.
>
> I don't have a good suggestion for the name, but it's not really about
> MMIO space; it's about address space generally.
What about trap-unmapped-access ?
Cheers,
Edgar
prev parent reply other threads:[~2025-05-28 20:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-27 19:56 [PATCH v1 0/3] xen/arm: Add option to optionally disable trapping on unmapped mmio Edgar E. Iglesias
2025-05-27 19:56 ` [PATCH v1 1/3] xen/arm: Add a way to disable traps on unmapped MMIO Edgar E. Iglesias
2025-05-29 0:34 ` Stefano Stabellini
2025-05-27 19:56 ` [PATCH v1 2/3] xen/arm: dom0less: Add trap-unmapped-mmio-disabled Edgar E. Iglesias
2025-05-29 0:41 ` Stefano Stabellini
2025-05-29 15:30 ` Edgar E. Iglesias
2025-05-27 19:56 ` [PATCH v1 3/3] tools/arm: Add the trap_unmapped_mmio xl config option Edgar E. Iglesias
2025-05-27 20:03 ` [PATCH v1 0/3] xen/arm: Add option to optionally disable trapping on unmapped mmio Andrew Cooper
2025-05-28 20:38 ` Edgar E. Iglesias [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=aDd0N1SD5obMbuZ-@zapote \
--to=edgar.iglesias@gmail.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=edgar.iglesias@amd.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.