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

Re: [RFC 4/7] x86/acpi: separate AMD-Vi and VT-d specific functions


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 21 Dec 2022 11:07:10 +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=hExBrsUCnDw8aWVDK/TAd380zaLaiYIrQtzjXcnytYs=; b=BHunngRvmGDWDDPGUo3TYPqoegoAb6lkaPCdjAF08nPY1ipD0mFxPZWq8ExrGiqYbsWCcP8k9YBheluIyTW2bktAw+5ZwuVMGUHq/y8aLT1whgbhuH+zNhcF5l49jV72WJ8T51vz+H4hMPQ0A3lcwkhHuwAfjybbeoxKdbAgDBK/OH6v0lxPJJEqGiBCz1nOaEvu7J/x8wQPVpiPtlp1XyG0PX32KLsLvHeG2Oh27dqeeJOVbQaKY1Q6KaZ8Hpa9ia4chl5+wEF/u/0nKLgt507Pi4T6PPyHqK85qT5zPE+ac5FD2TaRRayK8PKqEjF7DW8FVtmNs335sFrOSo0AJw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjlMFagd1ROzJDsDCF9OMSisqYf8H3LIh2UfWsODBmSoUymSSOaEzZx0IB2Rtqq6vk4CLYnsPlQVDVVeXyyagMD/C67jT2uViTOPmp5xBH5jfbvmROxPDEoKDsLYzD/FqwiMpUOHdUXbHFGsxDsvhMmxXPXK672yapzljRO/HP24HXr0Auw5V/PtVgOsxA8bP3ptpKJIGhPUf59f0/147WKwN3N+8gvuFA4RwioWdZ0DnccuvqaZOVj+MD3gQwl/BPCtkCfh88Vg04vnFPnuWwEhE3nnvtu0zo2bF9SwC335K6W6bStp3xMAOkZ7xfDrBoV4RiIC7GDlv/doPwJgkg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 21 Dec 2022 10:07:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.12.2022 07:34, Xenia Ragiadakou wrote:
> The functions acpi_dmar_init() and acpi_dmar_zap/reinstate() are
> VT-d specific while the function acpi_ivrs_init() is AMD-Vi specific.
> To eliminate dead code, they need to be guarded under CONFIG_INTEL_VTD
> and CONFIG_AMD_IOMMU, respectively.
> 
> Instead of adding #ifdef guards around the function calls, implement them
> as empty static inline functions.
> 
> Take the opportunity to move the declarations of acpi_dmar_zap/reinstate() to
> the arch specific header.
> 
> No functional change intended.
> 
> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

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