mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
This commit is contained in:
1 parent
365d2a5be3
commit
01b4b39e2e
1 file changed
+13
-1
@@ -444,7 +444,19 @@ static value alloc_domaininfo(xc_domaininfo_t * info)
|
|||||||
|
|
||||||
Store_field(result, 15, tmp);
|
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 */
|
tag = 1; /* tag x86 */
|
||||||
|
|
||||||
|
|||||||