Re: [PATCH v2 2/5] xen/domain.h: Centrialize is_domain_direct_mapped()

2024-03-11 Thread Shawn Anastasio
Hi Henry, On 3/7/24 7:54 PM, Henry Wang wrote: > Currently direct mapped domain is only supported by the Arm > architecture at the domain creation time by setting the CDF_directmap > flag. There is not a need for every non-Arm architecture, i.e. x86, > RISC-V and PPC, to define a stub is_domain_di

Re: [PATCH v2 2/5] xen/domain.h: Centrialize is_domain_direct_mapped()

2024-03-08 Thread Jan Beulich
On 08.03.2024 10:06, Henry Wang wrote: > On 3/8/2024 4:59 PM, Michal Orzel wrote: >> Another alternative would be to let the arch header define it if needed and >> use a centralized stub in xen/domain.h: >> >> #ifndef is_domain_direct_mapped >> #define is_domain_direct_mapped(d) ((void)(d), 0) >>

Re: [PATCH v2 2/5] xen/domain.h: Centrialize is_domain_direct_mapped()

2024-03-08 Thread Henry Wang
Hi Michal, On 3/8/2024 4:59 PM, Michal Orzel wrote: Hi Henry, On 08/03/2024 02:54, Henry Wang wrote: Currently direct mapped domain is only supported by the Arm architecture at the domain creation time by setting the CDF_directmap flag. There is not a need for every non-Arm architecture, i.e.

Re: [PATCH v2 2/5] xen/domain.h: Centrialize is_domain_direct_mapped()

2024-03-08 Thread Michal Orzel
Hi Henry, On 08/03/2024 02:54, Henry Wang wrote: > Currently direct mapped domain is only supported by the Arm > architecture at the domain creation time by setting the CDF_directmap > flag. There is not a need for every non-Arm architecture, i.e. x86, > RISC-V and PPC, to define a stub is_domain_

[PATCH v2 2/5] xen/domain.h: Centrialize is_domain_direct_mapped()

2024-03-07 Thread Henry Wang
Currently direct mapped domain is only supported by the Arm architecture at the domain creation time by setting the CDF_directmap flag. There is not a need for every non-Arm architecture, i.e. x86, RISC-V and PPC, to define a stub is_domain_direct_mapped() in arch header. Move is_domain_direct_map