tools/ocaml: Fill arch_config for ARM in domain_getinfo{,list}()

Add the missing ARM logic, populating xen_arm_arch_domainconfig
from the raw xc_domaininfo_t the same way the x86 branch does for
xen_x86_arch_domainconfig.

Fixes: 9d683b5e37 ("tools/ocaml: Expose arch_config in domaininfo")
Fixes: 81838c9067 ("ocaml: fix arm build")
Signed-off-by: Julian Vetter <julian.vetter@vates.tech>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Teddy Astie <teddy.astie@vates.tech>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
(cherry picked from commit 01b4b39e2e)
This commit is contained in:
Julian Vetter authored and Andrew Cooper committed 2026-07-29 13:42:15 +01:00
1 parent fbfca32874
commit 7d9d7512ce
1 file changed
+13 -1
+13 -1
View File
@@ -444,7 +444,19 @@ static value alloc_domaininfo(xc_domaininfo_t * info)
Store_field(result, 15, tmp);
#if defined(__i386__) || defined(__x86_64__)
#if defined(__arm__) || defined(__aarch64__)
tag = 0; /* tag ARM */
/* xen_arm_arch_domainconfig */
arch_config = caml_alloc_tuple(3);
Field(arch_config, 0) = Val_int(info->arch_config.gic_version);
Field(arch_config, 1) = Val_int(info->arch_config.nr_spis);
tmp = caml_copy_int32(info->arch_config.clock_frequency);
Field(arch_config, 2) = tmp;
#elif defined(__i386__) || defined(__x86_64__)
tag = 1; /* tag x86 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.