From: Jan Beulich <jbeulich@suse.com>
To: Teddy Astie <teddy.astie@vates.tech>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger@xenproject.org>,
xen-devel@lists.xenproject.org
Subject: Re: [RFC PATCH v7 03/14] x86/domain: Defer domain iommu initialization.
Date: Wed, 19 Aug 2026 17:08:25 +0200 [thread overview]
Message-ID: <4fed56c0-b8b1-408b-bc60-7a1afe05ffa2@suse.com> (raw)
In-Reply-To: <c4a81e284ec202a34b8e983679dead4dc2ae248a.1763569135.git.teddy.astie@vates.tech>
On 20.11.2025 12:09, Teddy Astie wrote:
> For the IOMMU redesign, the iommu context pagetable is defined once during
> initialization. When reusing P2M pagetable, we want to ensure that this
> pagetable is properly initialized.
>
> Signed-off-by Teddy Astie <teddy.astie@vates.tech>
From what is said, I for one cannot deduce why the move is (a) necessary and
(b) correct / safe to do.
Jan
> --- a/xen/arch/x86/domain.c
> +++ b/xen/arch/x86/domain.c
> @@ -927,9 +927,6 @@ int arch_domain_create(struct domain *d,
> if ( (rc = init_domain_irq_mapping(d)) != 0 )
> goto fail;
>
> - if ( (rc = iommu_domain_init(d, config->iommu_opts)) != 0 )
> - goto fail;
> -
> psr_domain_init(d);
>
> if ( is_hvm_domain(d) )
> @@ -948,6 +945,9 @@ int arch_domain_create(struct domain *d,
> else
> ASSERT_UNREACHABLE(); /* Not HVM and not PV? */
>
> + if ( (rc = iommu_domain_init(d, config->iommu_opts)) != 0 )
> + goto fail;
> +
> if ( (rc = tsc_set_info(d, XEN_CPUID_TSC_MODE_DEFAULT, 0, 0, 0)) != 0 )
> {
> ASSERT_UNREACHABLE();
next prev parent reply other threads:[~2026-08-19 15:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-20 11:09 [RFC PATCH v7 00/14] IOMMU subsystem redesign and PV-IOMMU interface Teddy Astie
2025-11-20 11:09 ` [RFC PATCH v7 02/14] docs/designs: Add a design document for PV-IOMMU Teddy Astie
2025-11-20 11:09 ` [RFC PATCH v7 01/14] docs/designs: Add a design document for IOMMU subsystem redesign Teddy Astie
2025-11-20 11:09 ` [RFC PATCH v7 03/14] x86/domain: Defer domain iommu initialization Teddy Astie
2026-08-19 15:08 ` Jan Beulich [this message]
2026-08-20 10:10 ` Teddy Astie
2025-11-20 11:09 ` [RFC PATCH v7 04/14] iommu: Move IOMMU domain related structures to (arch_)iommu_context Teddy Astie
2026-08-19 15:15 ` Jan Beulich
2025-11-20 11:09 ` [RFC PATCH v7 05/14] iommu: Simplify quarantine logic Teddy Astie
2026-08-19 15:21 ` Jan Beulich
2025-11-20 11:09 ` [RFC PATCH v7 06/14] vtd: Remove MAP_ERROR_RECOVERY code path in domain_context_mapping_one Teddy Astie
2026-08-19 15:26 ` Jan Beulich
2025-11-20 11:09 ` [RFC PATCH v7 07/14] iommu: Simplify hardware did management Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 08/14] iommu: Introduce redesigned IOMMU subsystem Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 09/14] iommu: Provide 'X' debug key to dump IOMMU context infos Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 10/14] amd/iommu: Introduce lookup implementation Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 11/14] iommu: Introduce iommu_get_max_iova Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 12/14] x86/iommu: Introduce IOMMU arena Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 13/14] iommu: Introduce PV-IOMMU Teddy Astie
2025-11-20 11:10 ` [RFC PATCH v7 14/14] iommu: Introduce no-dma feature Teddy Astie
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=4fed56c0-b8b1-408b-bc60-7a1afe05ffa2@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=roger@xenproject.org \
--cc=teddy.astie@vates.tech \
--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.