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

Re: [PATCH] public: xen: Define missing guest handle for int32_t


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 18 Apr 2024 09:29:59 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com 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=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=bRaiKWp+xsdI4WLMgfOVM3FLsbmAXpU2D4zBgQEyjs0=; b=GKkv10J7zAbJl13LZUvvZj0FnCXcIK/xIFpsDruH3bl/dB61S266+Rz4PLD7AagYHKGI6W8fLaCByGEiGDdk4jMFPxUoabV5R813s0D1qLanCoIsb3RgONu6001KVMFIk/mZUPOfmysxsE2sR+JbGFENzYUT1+c17pdYzy48lQpM3zA/9xrp4hOgAbmgw2nDsy/tNM7798caRD1fmb9SQ4o4jVaGS2iCIf95ATCYAb48gLUrfa31snYQo+HN1d6cwNaStTvaMOZPK5DQkDdOYIcZY8Wpuamz+Sudz0Oah07knExZq8kfuy+QlgNleXYLsZz+14nFUD4ZPiOONamnRQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n1gARDwOC5jZsGOZ2r59pSrOiFPKHIUS8Q3/ahiQ+iOg8XbvYB24CLsPRDts0soSb50TNrzhx6stHPMNtGARuL7+0NT0PaQCAQ8f9prqGHoM/o6J7zllZnUce4MDZx/S4FnwsNLCAJ2eSvzC65Av9RgBwILrcNt+PhnwI7wo+D9gdsHUdiB3XXkgR6sYR7gTIN1jLnQgVm+jkN1Nr1i153Q3VxYrmoNXRYKj3MUnDxFquCBEUbTdPoO5eQtBHjtm5j4hjvuqdg1V8Er/N6GukmbDLGjedb5dXUze4bZC/hTKj83X1DnKulMKZo54Qk3AgyAappSfrgh2ES7pMb7w2A==
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 18 Apr 2024 07:30:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Jan,

On 18/04/2024 09:26, Jan Beulich wrote:
> 
> 
> On 17.04.2024 14:14, Michal Orzel wrote:
>> Commit afab29d0882f ("public: s/int/int32_t") replaced int with int32_t
>> in XEN_GUEST_HANDLE() in memory.h but there is no guest handle defined
>> for it. This results in a build failure. Example on Arm:
>>
>> ./include/public/arch-arm.h:205:41: error: unknown type name 
>> ‘__guest_handle_64_int32_t’
>>   205 | #define __XEN_GUEST_HANDLE(name)        __guest_handle_64_ ## name
>>       |                                         ^~~~~~~~~~~~~~~~~~
>> ./include/public/arch-arm.h:206:41: note: in expansion of macro 
>> ‘__XEN_GUEST_HANDLE’
>>   206 | #define XEN_GUEST_HANDLE(name)          __XEN_GUEST_HANDLE(name)
>>       |                                         ^~~~~~~~~~~~~~~~~~
>> ./include/public/memory.h:277:5: note: in expansion of macro 
>> ‘XEN_GUEST_HANDLE’
>>   277 |     XEN_GUEST_HANDLE(int32_t) errs;
>>
>> Fix it. Also, drop guest handle definition for int given no further use.
> 
> Such cannot be done like this. Consumers of the header may have grown their
> own uses. The declaration needs to remain active for any consumers
> supplying __XEN_INTERFACE_VERSION__ < 0x00041900. Which means you need to
> bump __XEN_LATEST_INTERFACE_VERSION__ and wrap the handle type declaration
> in #ifdef. Provided the removal of that handle type for newer interface
> versions is really warranting all this effort.
I think we could just leave this guest handle definition as is then.

~Michal



 


Rackspace

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