Re: [PATCH v3 1/6] xen/arm: report proper GIC version via XEN_DOMCTL_getdomaininfo
"Orzel, Michal" <[email protected]>
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On 16-Jul-26 16:11, Julian Vetter wrote: > When creating a domain on ARM, and passing XEN_DOMCTL_CONFIG_GIC_NATIVE > for the gic_version field in the struct xen_arch_domainconfig, > arch_sanitise_domain_config() resolves this to the approrpiate GIC_V2 or > GIC_V3 version the domain actually has, based on the host's > gic_hw_version(). That value is stored in the domain as > d->arch.vgic.version, but can't be queried through any other domctl > later. Toolstacks that create and build a domain in the same call > already have this info from the createdomain reply and never need to ask > again. > > Toolstacks that create a domain and build it later from a separate > process do need to ask again. But, the ARM implementation only fills in > info->flags and info->gpaddr_bits. info->arch_config is left zeroed, so > XEN_DOMCTL_getdomaininfo always reports gic_version as > XEN_DOMCTL_CONFIG_GIC_NATIVE (0) regardless of what was actually > configured earlier. > > Signed-off-by: Julian Vetter <[email protected]> > Reviewed-by: Andrew Cooper <[email protected]> Reviewed-by: Michal Orzel <[email protected]> ~Michal