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

Re: [RFC 7/7] x86/dpci: move hvm_dpci_isairq_eoi() to generic HVM code


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 21 Dec 2022 12:27:43 +0100
  • 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=Y6CdcOa0QfwpwAUK/mvGWQ793ReWlVPtgdT65FJCkss=; b=aepp4GQg3DM25/nQEWH2mK1M4hlqt1rTfamwo71itu3pKlFSignJJZWoYu6Gwf92ZUJpbGxmr57lVg9+ZxOG8edJ5VdwLPB2uUjhXvJoJZd6Qa8KOCUZ+MSMORA7HhfhAQOfZGDCBqo8hoe3P7c3sCt7b07CVVZLD9tTDonqafF1qaqyRrwYKMYiV2gdAZw9ObL8FV3PaeUpqjtiVqaOV6FPZQ00JD9TfO2JMAB/FbPn/GKJ5GktDG+UOw8LQZSgfuKm2LHF5uJ9ZrfnUNMl40QZ7gGccNMwdiUo9PEkKbb6/Hk+riAr8xadL0dmbpJ8JjC++hg+0iC095pdT8ypWg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BUIZtXAUjvMdPjOHV4n/9S7Ovd5gt1PbPbDaogwUgqR8DCtpnTxdNEb0bxpacXdLLQebtXKaBFXbkl8MvXs5EfIicD8LxhlY3mc8JxdPUEromBh2rKQW8W9tNmh3c7KZWVIxk4bgp+mwSSoMgD0uRioZO8BmGru9f1oi/tIQr9x0TItdMqGtCdXLkN2rtlfBGTftSDZZz6mswyD1sAGseFaHlM6wNu9kbT4LvlgnYT9XikmZJzqgQvK16PSKERkia5drqeCy9jXZh4Q/mD5RuaU3eAmsUoRfFNcOQhtqQQZ2THkEk6oQTCsZEh6oshQ7VEVTHuVolbTsp3tkNcX65g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Paul Durrant <paul@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 21 Dec 2022 11:27:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.12.2022 12:13, Xenia Ragiadakou wrote:
> 
> On 12/21/22 12:19, Jan Beulich wrote:
>> On 19.12.2022 07:34, Xenia Ragiadakou wrote:
>>> The function hvm_dpci_isairq_eoi() has no dependencies on VT-d driver code
>>> and can be moved from xen/drivers/passthrough/vtd/x86/hvm.c to
>>> xen/drivers/passthrough/x86/hvm.c.
>>>
>>> Remove the now empty xen/drivers/passthrough/vtd/x86/hvm.c.
>>>
>>> Since the funcion is hvm specific, move its declaration from xen/iommu.h
>>> to asm/hvm/io.h.
>>
>> While everything else looks good here, I question this part: The function
>> is both HVM- and IOMMU-specific. However, by moving the definition ...
>>
>>> No functional change intended.
>>>
>>> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
>>> ---
>>>
>>> I was not sure how to handle the copyright. I assume that I have to
>>> retain the copyright of Weidong Han <weidong.han@xxxxxxxxx>, right?
>>>
>>>   xen/arch/x86/include/asm/hvm/io.h        |  1 +
>>>   xen/drivers/passthrough/vtd/x86/Makefile |  1 -
>>>   xen/drivers/passthrough/vtd/x86/hvm.c    | 64 ------------------------
>>>   xen/drivers/passthrough/x86/hvm.c        | 42 ++++++++++++++++
>>
>> ... here, you don't need a declaration anymore anyway - the function can
>> simply become static then, as its only caller lives in this very file.
> 
> I will change it to static.
> 
> Regarding the copyright, shall I add the copyright of Weidong Han 
> <weidong.han@xxxxxxxxx>, that was in the deleted file?

Strictly speaking you probably ought to, yes.

Jan



 


Rackspace

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