]> xenbits.xensource.com Git - xen.git/commitdiff
libxl/Arm: correct xc_shadow_control() invocation to fix build
authorJan Beulich <jbeulich@suse.com>
Wed, 12 Oct 2022 15:33:40 +0000 (17:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Oct 2022 15:33:40 +0000 (17:33 +0200)
The backport didn't adapt to the earlier function prototype taking more
(unused here) arguments.

Fixes: c5215044578e ("xen/arm, libxl: Implement XEN_DOMCTL_shadow_op for Arm")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_arm.c

index d21f614ed78854802b0c3cbff509805d1ac68c9e..ba548befdd25a6e49a67e8f6edf41458fb1ccb78 100644 (file)
@@ -132,14 +132,14 @@ int libxl__arch_domain_create(libxl__gc *gc,
                               uint32_t domid)
 {
     libxl_ctx *ctx = libxl__gc_owner(gc);
-    unsigned int shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024);
+    unsigned long shadow_mb = DIV_ROUNDUP(d_config->b_info.shadow_memkb, 1024);
 
     int r = xc_shadow_control(ctx->xch, domid,
                               XEN_DOMCTL_SHADOW_OP_SET_ALLOCATION,
-                              &shadow_mb, 0);
+                              NULL, 0, &shadow_mb, 0, NULL);
     if (r) {
         LOGED(ERROR, domid,
-              "Failed to set %u MiB shadow allocation", shadow_mb);
+              "Failed to set %lu MiB shadow allocation", shadow_mb);
         return ERROR_FAIL;
     }