From: dmkhn@proton.me
To: Jason Andryuk <jason.andryuk@amd.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>, Jan Beulich <jbeulich@suse.com>,
andrew.cooper3@citrix.com, anthony.perard@vates.tech,
roger.pau@citrix.com, teddy.astie@vates.tech, dmukhin@ford.com,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v9 2/3] xen/domain: adjust domain ID allocation for Arm
Date: Tue, 10 Jun 2025 23:48:42 +0000 [thread overview]
Message-ID: <aEjEVEdCsYqNnlfb@kraken> (raw)
In-Reply-To: <c6a8d11b-b7c1-4cf5-9c5b-e4c0920c2af0@amd.com>
On Tue, Jun 10, 2025 at 05:37:33PM -0400, Jason Andryuk wrote:
> On 2025-06-10 14:33, Stefano Stabellini wrote:
> > +Jason
> >
> > On Tue, 10 Jun 2025, Julien Grall wrote:
> >> But even if we are ok to break compatibility, I don't see the value of
> >> "control_domid". The implication of setting "hardware_domid" is you will
> >> have a separate control domain. At which point, why would it matter to specify
> >> the domain ID?
> >
> > I just wanted to say that while we (AMD) are looking for a hardware
> > domain / control domain separation for safety reasons, I don't think we
> > have a need to specify the domid for either one.
>
> Specifying domids isn't really necessary, but it can be convenience or
> usability improvement with dom0less/Hyperlaunch. But I don't think
> control_domid is necessary.
>
> hardware_domid is not used for dom0less/Hyperlaunch with split control
> and hardware domains. The "capabilities" device tree (DT) property
> specifies the role of the domain.
>
> Hyperlaunch lets you specify a domid in the DT - there is some
> auto-allocation logic, but I haven't use it. dom0less doesn't allow
> specifying a domid today, but it could. dom0less domains are assigned
> domids sequentially, so you can determine it from the order in the DT.
>
> Knowing the domids can be helpful for configuring userspace, and that
> only really matters for dom0less/Hyperlaunch. e.g. xenstored wants to
> know which domid is control.
>
> I think it's nice to have a domid property so that you know when
> configuring the system which domain is which. You can explicitly read
> the domid out of the DT and know what it is. Since dom0 userspace needs
> to refer to domids, this make it clear which domain is which for, as an
> example, connecting disks.
>
> hardware_domid= is the way of enabling later hardware domain
> functionality. dom0 boots as dom0. When it creates domid ==
> hardware_domid, that new domain becomes the hardware domain, and dom0
> loses hwdom and becomes just the control domain. It's a legacy feature
> and was a workaround for when Xen could only create a single domain at boot.
Thanks for explanation!
>
> Regards,
> Jason
next prev parent reply other threads:[~2025-06-10 23:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 22:50 [PATCH v9 0/3] xen/domain: domain ID allocation dmkhn
2025-05-28 22:50 ` [PATCH v9 1/3] xen/domain: unify " dmkhn
2025-06-05 21:58 ` Julien Grall
2025-06-06 6:55 ` dmkhn
2025-06-07 7:18 ` Julien Grall
2025-06-06 7:02 ` Jan Beulich
2025-05-28 22:50 ` [PATCH v9 2/3] xen/domain: adjust domain ID allocation for Arm dmkhn
2025-05-29 23:54 ` Stefano Stabellini
2025-06-05 22:05 ` Julien Grall
2025-06-06 21:29 ` Julien Grall
2025-06-10 6:53 ` Jan Beulich
2025-06-10 8:02 ` dmkhn
2025-06-10 8:26 ` Jan Beulich
2025-06-10 9:04 ` dmkhn
2025-06-10 9:44 ` Julien Grall
2025-06-10 18:33 ` Stefano Stabellini
2025-06-10 21:37 ` Jason Andryuk
2025-06-10 23:48 ` dmkhn [this message]
2025-06-10 23:47 ` dmkhn
2025-05-28 22:50 ` [PATCH v9 3/3] xen/domain: introduce CONFIG_MAX_DOMID dmkhn
2025-05-30 0:04 ` Stefano Stabellini
2025-06-02 9:15 ` Jan Beulich
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=aEjEVEdCsYqNnlfb@kraken \
--to=dmkhn@proton.me \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dmukhin@ford.com \
--cc=jason.andryuk@amd.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.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.