[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH][4.15] libxl/Arm: correct xc_shadow_control() invocation to fix build
- To: Henry Wang <Henry.Wang@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Wed, 12 Oct 2022 15:13:00 +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=S1ZFKrD/744ZTHAWmpFvq+z8nzMaq45rAAJQQ+JwLmY=; b=CfIntN3W/hkyFtAmS7v+bOEBXATF067/ZIh89vbaN0hUbMBBnVVdJdeLLum6pg9bGsfSMtPZrOWJpcVa7KnapdSFAgF43soS36sqhyFGOtKG08WFUiwYpF1mJR45fJGlXk2B+O69WdpIJYlPa2N2GW+CIi5JlqeBGIgI+Ulr/QAu+fSsvwIiouTepLRquBLWlLmuoqhwbLlSmNeez/GlxK8xeDqO4a7/DH0nyOqcFbkOpC9iJiJWMZdiG9sXtHLiL2LWK/E3+yLg5caavjx7Tcbylxh+yp2ZMnxlSXWeKHT5jmv2OGAnPaILliGkb0QeN83scrrMq7jWbIUCYKoiqg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gj2AEV36PbLMFtXaxmSAvqblTg6dpQEIFzkNTQ1OrykM4YKAfU+HHpUHyT7T19JIXHhweACGDYUASav6BGqBfRBX2Is6ib941VItko/xOdECzPZE7MORWCoMtDgEKSjoipejYh/zOdEcAKRXtGn4EUmCqn5s7x/O79XgBpGdqAXbyBNwwD4pNsTFVwMGZC1MKYXdDDGCCe6YcQ0ZWFfxtNnWw6DYke9TwLY37ghMBBJ+gZ1Xp2oLdYdE6I+hngixv7G6BSzoqvdObdZW31TKUGRk6YhKxVelBnaPgf3fniPv8XGL+2eWNU3VF2NzDCJFQnXyaZfj2uBfoDSZchnaTQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Julien Grall <julien@xxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 12 Oct 2022 13:13:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 12.10.2022 15:07, Henry Wang wrote:
> I thought to send my patch for fixing this issue tomorrow, but since you are
> sending...
Well, I was hoping to get something in before the day closes.
>> -----Original Message-----
>> From: Jan Beulich <jbeulich@xxxxxxxx>
>> Subject: [PATCH][4.15] libxl/Arm: correct xc_shadow_control() invocation to
>> fix build
>>
>> 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,
>>
>
> The definition of shadow_mb should also be changed to unsigned long,
> and...
>
>> 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);
>
> ...here should be %lu.
Oh, indeed. Why did I not pay attention when looking at the reverse x86
change in 4.16? Thanks for pointing out.
Jan
|