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

Re: [PATCH 3/3] xen/arm: vpci: Move content of xen/arch/arm/vpci.h to arch header


  • To: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Thu, 2 Apr 2026 15:58:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XpfWSwmVil6HbzgJvVm7d1Y6W9dnAroOSqqCWz94rOE=; b=i7/us2nvthidol+qCjWIoeq2MwaTNG3wTZNi76AzQF9KHjETORyxRMFiZfj8ufpill//brlilc9cXm8pvdWewYlul6l0sxNQ2N1EHvZ5JhOLFfbx/UAU9jnxnjPaEW4Pe2QYpgS6FO8LyM956l0QNRakojuPSGimr220oNFjOJqZ/WkYxghoo2y4eM6VJXn3fLmpXPEj2g1Xh1UiaUXThAYDxsxYGbcphPHTxOhq/dTkPd1GtD6a9DuBhGGl4caaoZ00TVRE4/6Xd2eAtCxKxFvg107C8xb2xi0s5TGdFPVH0IBQYjU3UliJWKLQRFjHN6oc2d41Q3qhxdQ5WJiSEw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tghpiMlACZd75LK4R9JBKJ++WtcM4WG9gY5BcmnT1lEOdrxPnYL+4VIyTRRHd10DdRA/6xxzDAX4BMKvPUy2cVLPitl7whPZfEpl29BJ9J8IxbUYxMU1vf1VhjOI0/89XkhO0Oxwd3ldPK65/s3zaxZbrrMIdMEEdz8nvuMJfGqfBE/RqlHNdyfYvmhqa3qpsZWxoCPJrGhiceOhmCN+s0z0PE6uj20EdaXoN1g6vb+lNFTWrj9ZXqDAO/RCXxa9r0S9FMvxzuvEeHUHCjFqiM85sf5rjvDGPqcC1aVuzBrbe8/gt+UYgi8IngfV3VhpwslR5T9TyBa075j0c85dCg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>
  • Delivery-date: Thu, 02 Apr 2026 15:58:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcwegF4agxAfWvg0qW+yyLTWDkbA==
  • Thread-topic: [PATCH 3/3] xen/arm: vpci: Move content of xen/arch/arm/vpci.h to arch header

Hi Michal,

"Orzel, Michal" <michal.orzel@xxxxxxx> writes:

> +Rahul
>
> On 02/04/2026 04:44, Julien Grall wrote:
>> Hi Michal,
>> 
>> On 01/04/2026 15:58, Michal Orzel wrote:
>>> Move domain_vpci_init() and domain_vpci_get_num_mmio_handlers()
>>> declarations from the private xen/arch/arm/vpci.h into the public
>>> xen/arch/arm/include/asm/vpci.h, and remove the now redundant
>>> private header.
>> 
>> Can you provide a brief explanation why we don't couldn't include 
>> "vpci.h" from "arch/arm/vpci.c"? Such approach would ...
> Yes, we could but I think it's better not to use local headers if the main 
> ones
> under include already exists. This matches the x86.
>
>> 
>>>
>>> Update domain.c to include <asm/vpci.h> instead of the removed private
>>> header.
>>>
>>> This ensures the declarations are visible where the functions are
>>> defined, resolving a MISRA C Rule 8.4 violation.
>>>
>>> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
>>> ---
>>> I'm moving a file with GPL2+ license to a file with GPL2-only. I consider 
>>> this
>>> ok in this case becase the copyright on a file with just prototypes does not
>>> make any sense and a license text was most likely blindly copy-pasted like 
>>> for
>>> most of the files in that era.
>> 
>> ... avoid the licensing discussion. I am in the opinion that it is ok to 
>> move from GPLv2+ to GPLv2 because the license says "either version 2 of 
>> the License, or (at your option) any later version". But I remember not 
>> everyone agrees on this interpretation and we never solved the 
>> discussion on whether we need to request permission from the original 
>> copyright holder.
>> 
>> Alternatively, I see this file was only modified by two companies (EPAM 
>> and Arm). I see one employee of each company are already CCed. So you 
>> could confirm with them if the change is fine.
> The header was introduced by Rahul Singh from Arm and Oleksandr Andruschenko
> from EPAM. @Rahul, @Bertrand, @Volodymyr - are you ok to move this file to
> GPL2-only?

Yes, I'm okay with that:

Acked-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

-- 
WBR, Volodymyr


 


Rackspace

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