On 06.03.2025 23:03, Jason Andryuk wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -699,7 +699,7 @@ struct domain *domain_create(domid_t domid, > d->is_privileged = flags & CDF_privileged; > > /* Sort out our idea of is_hardware_domain(). */ > - if ( domid == 0 || domid == hardware_domid ) > + if ( flags & CDF_hardware || domid == hardware_domid )
Nit: If the rhs of the || needs to stay for the time being (does it?), parentheses please around the & expression. Jan