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

Re: [PATCH V2] xen/arm: dm: Drop XEN_DMOP_get_ioreq_server_info from supported


  • To: Julien Grall <julien@xxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Tue, 2 Sep 2025 14:10:05 +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=aO1uF3FNGPw7ezUjoIDMsMsbcoHxMUCDEIMqDsqIAW4=; b=eO+2KLyg4QKV0mrMEA9fGCniz909834DlJxxElQgb2X/Uh08/T8L9im1UBbl4N18mMjXppS8tC9CGQlZ2sJxAQMsvZm07aFxi1xC/g74dp180wWNBQeLOc8hIt7SiNvPzqDSRfJdV5X2j1PfdkU5XPKA5jxkSDdPHM0k+365TH0lmyrPHljZ63YH2wlvyjC3Yv5dre0wG5CbS+vLyiATtgFTBOMhY0OArX+OCVjSY15wYYTIGVSuCIxPD1Wrkz8lGqfyfMKDtzDJp7B2gcHPyOeTHTY+4lMADCQYnsDgBXhyIfw+A3mxD99NoPaJo19OX4JPTGVWgjFjtdc1YC9vMg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XbGyjTshHXpQkj1qznkFoXKiwhCD45zqLwVUVtF6pL1pJncJBR7KzZDcViOuHdn/NjfuIAFG7AUs58YMzXnf6eEFRRTjXt2jyePSZDxQO8NJo4jwjIiQ8RoZjM5WuIUeibeOrZhILlJKiBLdKhnS0GpmKPDn3YPqkLjbdnRsqc/Rt24NTiA2mpsG16qgrFk0uM/EgGDqqthDQXarFLjYvhdIJMQi2Wym+8QkgAPokMSjX6ZmZUjvk/MQ6Vgb9HlfKJLSbZePzLbaD9+rgT+DsqzE3xessXaSNkBH3v0PyikzSCr/LAIDobdrvo6HYmlPcvZKnGjdSF5fIRN3xWRh5A==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 02 Sep 2025 12:10:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 02/09/2025 13:54, Julien Grall wrote:
> Hi,
> 
> On 02/09/2025 11:18, Orzel, Michal wrote:
>>
>>
>> On 02/09/2025 11:49, Oleksandr Tyshchenko wrote:
>>> The said sub-op is not supported on Arm, since it:
>>>   - does not support the buffered emulation (so bufioreq_port/bufioreq_gfn
>>>     cannot be returned), please refer to ioreq_server_create()
>>>   - does not support "legacy" mechanism of mapping IOREQ Server
>>>     magic pages (so ioreq_gfn/bufioreq_gfn cannot be returned), please
>>>     refer to arch_ioreq_server_map_pages(). On Arm, only the Acquire
>>>     Resource infrastructure is used to query and map the IOREQ Server pages.
>>>
>>> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
>> Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
>>
>> Could we perhaps add a Fixes tag here pointing to the commit introducing 
>> these
>> DM ops and thus add this patch for this release? Not sure what others think.
> 
> Fixes usually implies a bug and I don't see what bug we are solving. In 
> fact, I don't understand why we are trying to remove the subop...
Hmm, the issue is that the subop that is not supported at the moment is listed
as supported in the public header. I think if we mistakenly mention sth as
supported in e.g. SUPPORT.md we would have no issues adding a Fixes tag. There
are many cases where Fixes was used just to change something in a comment, so
I'm having a hard time reasoning about when it's appropriate to use it. As for
the code, from safety perspective if this subop is listed explicilty in Arm's
dm.c, we would need to write a separate test case and test to cover it that at
the end, still returns -EOPNOTSUPP.

~Michal




 


Rackspace

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