[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH][4.15] libxl/Arm: correct xc_shadow_control() invocation to fix build


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 12 Oct 2022 15:05:01 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b2sXbvaGhT3VwITSLxnrPr1tyc6+JoIMGDhu4msM+tc=; b=DSL8XjEli1hDoo96iGppZ5L5NyQ1DJvSXFzhGyo0AoPT79JExUWuMNNqURL3ycpGxpsJT/fE9lL8Ia1EBV0SYdNccEv/tA4YStPiStFjMN56IH7/Xo70DzZ5UmE942o5S4DJbUDtgs+PNI+8MRvSZpCYaNdVN65Nwk9JBqa/aQDu3D5HEeP/bBWQ0eWk1z03ZaM/QmX/TBLkXpqq/OQ4yAf4MJpr4ejQr0cyCIIyKNiIkr+Jqm0AGIaKlaG+IyBKPI1hXVLUhUO3MZMk0AwmQsMsjArYzislwJGZTRg9VADo9GPB326nj/PDMjx643oLSwFUAQ8fiAsFBaXe+o0hVQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q+jqd7oVkMRzUR+TScJsTt35j+ecBiOv1BR+wBMXP7RdLeceEtRtaBWKkOApnJbBSLFjDzJ9y4fv0o8YGLgBzMBQOHbryBSx18baSD3kv6rN+R000878PWdx9mOOSHHAM7VbfKhm0R1I93vUjRwCyYn4HF8kIALCsB65GcZg5MSZAFlD6jhY/5hrxeBtIyDh1Bgi1TUF/bGn7FCFyHDSokSn1cd8Pe0mv9kT/YHegpELOPHjc6yLCxkwsG6ut/nuVBUIubKRm5a+4xKJpvgw402envLKMvJcofKoy4lZuPw/hcWYXiBzdRA9nmDPNLlMr65SAxAoLzdJO6uSCx1xmQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Julien Grall <julien@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 12 Oct 2022 13:05:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxx>
---
Also applicable to 4.14 and 4.13.

--- a/tools/libs/light/libxl_arm.c
+++ b/tools/libs/light/libxl_arm.c
@@ -136,7 +136,7 @@ int libxl__arch_domain_create(libxl__gc *gc,
 
     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);



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.