[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 <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 23 Oct 2023 12:47:15 +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=EMVdrAofRWOmzzaTnPAS6V+OshazwYhvWUdWrgBldH0=; b=NQgPALbZ24EHBFN2bb38OU4xbMFT4p+LMwWmP0PSNFpcP7H+1gkeJ/8tqxq8IICS5MeMWNPkq5i6j/Oetk5taSFvq7FDar5GxQ7khJYy4VAs7tukuexVrzpNToOKuzxtFON6b2LZWvgufNbdh06kqFVg8A9RaT2BoEQe0pv0nbUwOORJ/g2L1eJbuLPMJ2kzQY1sdR/JBoYPbULGWYB/GaVfG4wmL7UHK4MSPP4MNSinB42WmA4Na4n3BgpxoCR0wuOSitsKfrLHBCdNSIBx3GdTfxWh/feuSNInTY0a/jtaOH21uf6q311R+EuiyDu5cpEiYgbX1pi21gc1u1s8YQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NbBqsMAIgJqMBBJ1X/u9leo/RmP0CfR4AARivQ0QiU1suxFrV/V0RXx2LSidP2u1Qf8M+31TiIyoG2MWjgbvjiMVJ3dd3bSbhDSw/h3TJ9xCXQUNxD6BnvLWEAgSOhJ5xBYqOWklw7wSMAupWr0EWJszZrZlA1PfLQK1LOCDZ1sQIvqH32rvuMxcX9SO4qDwJ9dFsYPYVmfjiuuDb+ooHKxPM5P/rmscVEhHhlEilNaDQK2E9unjECKNuVgRENLgG7o+Zc8Diz1ezKm1ttHEexoU99Y+htAZiqa+UL86fe4b9M0mfZrlYBOmt7J69eWKOeAJ702mh28TJGQWu89rNA==
  • 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: Mon, 23 Oct 2023 10:47:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.10.2023 12:43, Oleksii wrote:
> On Thu, 2023-10-19 at 11:44 +0200, Jan Beulich wrote:
>> 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
> I am not 100% sure but not all platform has support of IOMMU.
> 
> And I thought that passthrough it is when a device is fully committed
> to  a guest domain with all MMIO things. So it is a question of
> properly mapping MMIO to guest domain. Am I right?

Yes. And do you expect you will get away with such a stub implementation
when you actually start supporting pass-through on RISC-V?

Jan



 


Rackspace

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