|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v9 2/3] xen/domain: adjust domain ID allocation for Arm
Hi Denis, On 28/05/2025 23:50, dmkhn@xxxxxxxxx wrote: From: Denis Mukhin <dmkhn@xxxxxxxxx> From: Denis Mukhin <dmukhin@xxxxxxxx> Remove the hardcoded domain ID 0 allocation for hardware domain and replace it with a call to get_initial_domain_id() (returns the value of hardware_domid on Arm). I am not entirely why this is done. Are you intending to pass a different domain ID? If so... Update domid_alloc(DOMID_INVALID) case to ensure that get_initial_domain_id() ID is skipped during domain ID allocation to cover domU case in dom0less configuration. That also fixes a potential issue with re-using ID#0 for domUs when get_initial_domain_id() returns non-zero. Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx> --- Changes since v8: - rebased --- xen/arch/arm/domain_build.c | 4 ++-- xen/common/device-tree/dom0less-build.c | 9 +++------ xen/common/domain.c | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index e9d563c269..0ad80b020a 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -2035,9 +2035,9 @@ void __init create_dom0(void) ... naming like create_dom0() probably wants to be renamed.That said, I am not convinced a domain other than 0 should have full privilege by default. So I would argue it should stay as ...
... 0.
This is somewhat confusing to modify domid_alloc() in a patch that is meant to modify only the Arm allocation. Can you clarify why this can't be done earlier? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |