Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-03 Thread Daniel P. Smith
On 8/3/23 09:36, Julien Grall wrote: Hi Daniel, Hey Julien, On 03/08/2023 14:33, Daniel P. Smith wrote: On 8/2/23 03:46, Jan Beulich wrote: On 01.08.2023 22:20, Daniel P. Smith wrote: A legacy concept is that the initial domain will have a domain id of zero. As a result there are places wh

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-03 Thread Julien Grall
Hi Daniel, On 03/08/2023 14:33, Daniel P. Smith wrote: On 8/2/23 03:46, Jan Beulich wrote: On 01.08.2023 22:20, Daniel P. Smith wrote: A legacy concept is that the initial domain will have a domain id of zero. As a result there are places where a check that a domain is the inital domain is d

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-03 Thread Daniel P. Smith
On 8/2/23 03:46, Jan Beulich wrote: On 01.08.2023 22:20, Daniel P. Smith wrote: A legacy concept is that the initial domain will have a domain id of zero. As a result there are places where a check that a domain is the inital domain is determined by an explicit check that the domid is zero. It

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-03 Thread Daniel P. Smith
On 8/1/23 20:24, Stefano Stabellini wrote: On Tue, 1 Aug 2023, Daniel P. Smith wrote: A legacy concept is that the initial domain will have a domain id of zero. As a result there are places where a check that a domain is the inital domain is determined by an explicit check that the domid is zero

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-02 Thread Stefano Stabellini
On Wed, 2 Aug 2023, Jan Beulich wrote: > On 02.08.2023 02:24, Stefano Stabellini wrote: > > On Tue, 1 Aug 2023, Daniel P. Smith wrote: > >> --- a/xen/include/xen/sched.h > >> +++ b/xen/include/xen/sched.h > >> @@ -1058,6 +1058,13 @@ void scheduler_disable(void); > >> void watchdog_domain_init(stru

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-02 Thread Jan Beulich
On 01.08.2023 22:20, Daniel P. Smith wrote: > A legacy concept is that the initial domain will have a domain id of zero. As > a > result there are places where a check that a domain is the inital domain is > determined by an explicit check that the domid is zero. It might help if you at least out

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-02 Thread Jan Beulich
On 02.08.2023 02:24, Stefano Stabellini wrote: > On Tue, 1 Aug 2023, Daniel P. Smith wrote: >> --- a/xen/include/xen/sched.h >> +++ b/xen/include/xen/sched.h >> @@ -1058,6 +1058,13 @@ void scheduler_disable(void); >> void watchdog_domain_init(struct domain *d); >> void watchdog_domain_destroy(str

Re: [RFC 1/6] dom0: replace explict zero checks

2023-08-01 Thread Stefano Stabellini
On Tue, 1 Aug 2023, Daniel P. Smith wrote: > A legacy concept is that the initial domain will have a domain id of zero. As > a > result there are places where a check that a domain is the inital domain is > determined by an explicit check that the domid is zero. > > This commit seeks to abstract

[RFC 1/6] dom0: replace explict zero checks

2023-08-01 Thread Daniel P. Smith
A legacy concept is that the initial domain will have a domain id of zero. As a result there are places where a check that a domain is the inital domain is determined by an explicit check that the domid is zero. This commit seeks to abstract this check into a function call and replace all check lo