[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: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Thu, 2 Apr 2026 08:32:19 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=3yf/Fj9NGf9DFpMm0y6U37tUWNDfvgAqG/ER6cYBwdM=; b=X+WLmrQx4W/HjtgxDDFPx4N8dYiVOOxm9bfhcp4AxhNb7OakcWEAcjOY8jWG2YBSaIdqyMgw+7un/v/8i4J2w1k8IysZ7lM6XoVX2SRzoq+SBDownYd2YktMNKz2cqzU/FF61iCI8ggA1vFxfFYfK7SgUn0K7dHG/hYGWJD2xiT2zLGDC16HgRH8JroB3LlXhhInjcehs6BpOG54ZiaUudi47jA+8g82nuETnabuoNJN1O8RGwuTLhw4BXenTLpWrErdFMCnWOpstcBhOqxk2o2xXSPks5GkuaZh3VivOE1zVN98wrYWDvA1zFHMJiCyZ27vWpMtYBfeKElRtnKP2A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GX7x/VnYTFxVDSGk8exq3wko2W9s3YW/uTpmw3eCoe1UcEtFiNIs/Eq4BNfetno14JycswZlUx7vYJ9YM2k3CizM+G4nIw8G3XwgAR0E4MH/m87ISFk3xACvSsg7Cmc4Hq1pAcWn51Q+mD+q80tD9lvnDw+liGjT40cx21s2PtkyijTfBQCN9tS3tcDbq27mUY5zw4UunPPX1ETjViIJT63YA3fa2uCJXvmegSM624fKItWEStgQuH9H1TuMotmhA2qP1dbN+37UK77Hg5PH1H48wgsVrOZSIzc2bxcQALGeU5gop61dZ2rQ/vg0R7xkBf6E+aPRs+LDojZwk8NaMQ==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>
  • Delivery-date: Thu, 02 Apr 2026 06:32:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

+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?

~Michal




 


Rackspace

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