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

Re: [PATCH v1 10/29] xen/asm-generic: introduce stub header iommu.h


  • To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 19 Oct 2023 11:44:52 +0200
  • 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=O2vX67xNJd2B+amNzju0ZJQQhZq0mv/01Z4w3PMsoK4=; b=dOBVDdkw/QMdtF6Us/r5OpLAmCHT6Yu43kYYOvWLIGAkI6WPxoqUpgPAs9nTkWJ88kSJ8KNa7RVgAEeovtd/GfHg83lDaqXcxVWFIeOd620/POaF3nfptZXn+t8pjJu4R6PRBW/D/lluuTbS7yK955xeDjKHV3QS1qk7m1HEXbM16jBSG4I5psFkr8xw0qRl9KAlSfX6RVtyAMpk2x8jStgaboSt5jdPekAPg6PVNQ7c7Wh3DGh6g/NVX5cLHLCqIJUlWwWXWpBOEh1LBIVQK2dWzN7e1kuvj7wba9SS/uMLZJ1VNn1wD/MXjZQlJN0luJrLHBZMCcQQtsJRHmbxCQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gxw8M3jp0hKvc0Kwyby2re+S6p7oxrn6jRp5ZD1IhbGI4rIqc3RCzSkkmgc+i58H4S4IoZ9QmUxNjlJd0cZApe4UZLNJrl/bIX2ugnjd7UI1ejTW488ny/IrJHXWd9u0v34aABN1aKK+E/qhk+UQgOo7fmX/vyZWVTDF7zlOjBnRL0ubh7CT3yNh6G8YekvdxImRc/9cMCs1xntgWk9Y0lv6Q6HurusK5/smP51+V+3ieASnSQZY6f5uhCm91vb8I/BojW4zYzstLph7QBnqYmdI4FGGgnFUeNt9qtDvMYlxcXHmlB6Jc3fXVK1WN65Vw9E3Yp9zxPL6PvAOXOVU0Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 19 Oct 2023 09:45:14 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.09.2023 16:56, Oleksii Kurochko wrote:
> --- /dev/null
> +++ b/xen/include/asm-generic/iommu.h
> @@ -0,0 +1,17 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +#ifndef __ASM_GENERIC_IOMMU_H__
> +#define __ASM_GENERIC_IOMMU_H__
> +
> +struct arch_iommu {
> +};
> +
> +#endif /* __ASM_IOMMU_H__ */
This one's perhaps slightly more "interesting": Yes, we have a
HAS_PASSTHROUGH Kconfig option, which both Arm and x86 select. But it
is in principle possible to support guests without any kind of IOMMU
(permitting solely emulated and PV devices). In which case what's
(imo) needed here in addition is

#ifdef CONFIG_HAS_PASSTHROUGH
# error
#endif

Jan



 


Rackspace

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