On 12.06.2024 12:55, Chen, Jiqian wrote: > On 2024/6/12 18:34, Jan Beulich wrote: >> On 12.06.2024 12:12, Chen, Jiqian wrote: >>> On 2024/6/11 22:39, Jan Beulich wrote: >>>> On 07.06.2024 10:11, Jiqian Chen wrote: >>>>> + r = xc_domain_gsi_permission(ctx->xch, domid, gsi, map); >>>> >>>> Looking at the hypervisor side, this will fail for PV Dom0. In which case >>>> imo >>>> you better would avoid making the call in the first place. >>> Yes, for PV dom0, the errno is EOPNOTSUPP, then it will do below >>> xc_domain_irq_permission. >> >> Hence why call xc_domain_gsi_permission() at all on a PV Dom0? > Is there a function to distinguish that current dom0 is PV or PVH dom0 in > tools/libs?
That's a question to the tools folks, I suppose? Jan