From patchwork Fri Dec 22 15:12:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13503432 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43B85C4706C for ; Fri, 22 Dec 2023 15:13:44 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.659413.1029054 (Exim 4.92) (envelope-from ) id 1rGhDR-0000Qu-1Y; Fri, 22 Dec 2023 15:13:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 659413.1029054; Fri, 22 Dec 2023 15:13:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rGhDQ-0000QH-Tr; Fri, 22 Dec 2023 15:13:32 +0000 Received: by outflank-mailman (input) for mailman id 659413; Fri, 22 Dec 2023 15:13:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rGhDQ-0000EM-4g for xen-devel@lists.xenproject.org; Fri, 22 Dec 2023 15:13:32 +0000 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [2a00:1450:4864:20::136]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id aa03252b-a0dc-11ee-9b0f-b553b5be7939; Fri, 22 Dec 2023 16:13:30 +0100 (CET) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50e2d00f99cso2277740e87.0 for ; Fri, 22 Dec 2023 07:13:30 -0800 (PST) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id j7-20020a056512108700b0050e6df07728sm45983lfg.180.2023.12.22.07.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 07:13:28 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: aa03252b-a0dc-11ee-9b0f-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703258009; x=1703862809; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ODGnSpcmOiq+z7wR2YwRtk5YCjWAFHvC/ahjEF0s2+M=; b=KSHKBWvcqsyGVCrR4WSbi9IGM8/kFD6vWZ+friUtYacav88cfUk4aEWpRJbh1hLAZd 7jMetzOK1e8WkEcjt0pVDDj5NOvCmVR1jK9KMsrp49qx2BfLsZRF1k5RwSpN+Lsu0tYe ndRbEZTl7y76FHzJ+cakpvNjfqZhRo6S0gF+07RJRor1TjaN7lV7v+h2EVwQGBIrHldN Qd7vIP1w54vGI/GPBSUpeGqRMPqGY7G0GZ+vxGF0Bpyc8i5exqfJROtnE3T9kM1bTCOa jqlF0umxqTrONYhEjksbRq8+s3ta19llqP4HKtLCQ1Wm9zyMkufUpbudlaUtmY5kDnWA cuwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703258009; x=1703862809; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ODGnSpcmOiq+z7wR2YwRtk5YCjWAFHvC/ahjEF0s2+M=; b=k5j4uAvRvoGD7RCXOQ0akzaIODrmtFkAH1HEa1DjKDQ7WjhWo8Mi3yS4EqEeTbZB6E B1Z7nKN8EyrC/gsc7p9GOdGNttiRHzE+a04BeSOJeHFhSlOqgONGSP9ZVQyMDZzBTq88 9IZ7098S3qGu1+xt9wPel3V7noB4bvU4Z7LWe4dgYCPAEwdJuZfeJSwOdHV2MSMyE3VH FA+i1oGyh3DF0paw6Y/YvFoKcrNoxjq1DVR0xeIlfcXaZVdQmg1D5V2bvn+3tnWucTlN EHwYjvU6fLn3YiWGXGgRo2vDh3lr43Uzl3zQE/C2hmMfA9SaY+jmx1+s6NBQeTwynOxQ 56Dg== X-Gm-Message-State: AOJu0Yzz6t+jQUcZjYH46TltoFUm9enwoblzEKth6PnZFGwan209rsvj zwG0K1mjTbnZ8lQIavssr57KUAkK1pU= X-Google-Smtp-Source: AGHT+IFpP2s6FBrAszxGjeeeFDkJndwkLyAsxHilcAwkZ/ITbUpLCmVdmFBej49keZF8X+HFho+ahw== X-Received: by 2002:a05:6512:1252:b0:50e:6f8a:777b with SMTP id fb18-20020a056512125200b0050e6f8a777bmr114341lfb.66.1703258009530; Fri, 22 Dec 2023 07:13:29 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Jan Beulich , Paul Durrant , =?utf-8?q?Rog?= =?utf-8?q?er_Pau_Monn=C3=A9?= Subject: [PATCH v3 06/34] xen: avoid generation of empty asm/iommu.h Date: Fri, 22 Dec 2023 17:12:50 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Signed-off-by: Oleksii Kurochko --- Changes in V3: - new patch. --- xen/include/xen/iommu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index f53d045e2c..8adbf29d3b 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -337,7 +337,9 @@ extern int iommu_add_extra_reserved_device_memory(unsigned long start, extern int iommu_get_extra_reserved_device_memory(iommu_grdm_t *func, void *ctxt); +#ifdef CONFIG_HAS_PASSTHROUGH #include +#endif #ifndef iommu_call # define iommu_call(ops, fn, args...) ((ops)->fn(args)) @@ -345,7 +347,9 @@ extern int iommu_get_extra_reserved_device_memory(iommu_grdm_t *func, #endif struct domain_iommu { +#ifdef CONFIG_HAS_PASSTHROUGH struct arch_iommu arch; +#endif /* iommu_ops */ const struct iommu_ops *platform_ops;