[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 4/8] x86/acpi: separate AMD-Vi and VT-d specific functions
- To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 16 Jan 2023 17:43:44 +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=G5BypSEu7nhC4vzlRDwc4z+jEE3hL2Auckna78YSUOE=; b=nsplM/PysY2OZXz/+3ogafLU7qqKtOrXKUj5nEaC2vXgzdbNHd6EeNCYkJjZTOjpsb6kMlItnNXTFCm1Ca6Xj9dpmlL5513mn38Pt+BJqi1iSASyA8eZkJeTc1PO6FK1Vgzr9QLdzhWxauoctRqSy/BwGC+/IDK9goQqQbsSXsc9OB8yKuvI84jlmqlJBQkW6rvk6Y/DlOgIZCGVGrEpIPWQ8CE8gNXzA9abasqQt20J8JsAU4te8HegyihJlAQlaFmfL2H/kyYhq7dovAlEc0m/ngMkua8vCWsxp1JkARbNXsh4fLSO1I2woQIKE0NcIGi6IS7I9B8y4ZXVPDLLFg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G+Y+M8plUiUG7O69FlKBvv8yqCPRTSu3BDPokQvSG4qSR5GKi03EWz0+YDV/OtL4lS/4BOqWaQMCm1Pb64M76A179IteaPGr7KSB12cYch4sfogrvhaoPXV6p3jkKUuf4IclF1sF8MPIejQJi9XT+muNyFn1RrHSmUqbd7nw0P16ynb7O0N17ET0ClGJWZZ2+CbUrSp4YXv3aFNxCiXlb3Y5zrw4rrgNYSc5qydjaW2ggDJxfaZ6+D6Kyjw7+FEsYPvXHAdRAC62fRFt8lI+IyGu9s/yxOKK3AV3inwy88lWvPKmPkn1XNXinUOwOlB7TUVotbBiNEbxQGLsFbUlfw==
- 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: Mon, 16 Jan 2023 16:43:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 16.01.2023 08:04, 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_IOMMU
> 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 declaration of acpi_dmar_init from the
> x86 arch-specific header to the common header, since Intel VT-d has been
> also used on IA-64 platforms.
>
> No functional change intended.
>
> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
|