From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF0052D7DDB for ; Wed, 20 May 2026 13:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779284291; cv=none; b=aNot77suusPH59kfnx+uXJAk1zVg2WI8Rtzqys8A1trq4tc5KYtm4RzL0udk+z4gMFEGxZ6Oyg5jXPzhX5eBC2s2zAEkf76McQ89uK4kUCMqP3S9hmTb4Gu2Mm679+MIA8FzPBCKDStgZH07r+WUFl9CraI118jtwoqoxsxZu/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779284291; c=relaxed/simple; bh=FcTKYryF3HlZcFivdjcw94sl1hUA9PtC2/zgtt2ZZvU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gY6CKOuDe5vaMBdJV3VAI71X51J5fLWzfwBUI+qNKMUVS8iglzHMsVVVESm83ES6PbM0BVwIZXVuDArGZMCQ7o0D+nT5wTcLyjxU5dgIGkVbbWmcGHDNI6Dg8akrJ6i+r8xxV/adBJFWHgSSe8BbmuX3k3sWvyQLqHazAdfdDG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=cBzOeB90; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="cBzOeB90" Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-9116861f004so1139589285a.3 for ; Wed, 20 May 2026 06:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1779284289; x=1779889089; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ta3JnaFAadHaT886JLq7+5Wp7lPw1ufIXyuy/64QRsk=; b=cBzOeB90De6JH9YZRFW4WdvPomMlPt+GLQnVKxGLpjoAW9+MZqNKeid4oFTWgQ11k5 9vt4MvanJfFqfc0J7YsM82g3CPSDDBbEnEX/6L4fV2XTMUc/puxSVOI3bzTcEtcMcmqH v1/iG/yQlqyVlfl1XeHsKgPDYOHSvnqy+xHQQoMXiwf5ZX+i2IIcD65QmN+GCDdUKQV3 fjhyMGr6UFZTz/iqinGH2Jn/MnFb3n6FkD6lL7MOfEwck6DTMJs8OY/kL4L8PQmd4spr Vs22mr5Ruv2OSsSaw5v+x+zjF/dQdPNixEh1rHLzVwhHyHwWg9uaI+epPBP23XLfwJiE z2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779284289; x=1779889089; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ta3JnaFAadHaT886JLq7+5Wp7lPw1ufIXyuy/64QRsk=; b=axOHRM5Lf64jh99epSY2BS4grCla2am5Pq6fXo4a1zNUKhdM/JkrxjdM7IzjU/x6W6 oTogO0g9fdMkMou6fdtlrdKRdiAevgeHx+9uUyiGwohBdvcJQ+V06gA56PTlGPmE+U9y bxVokihfOPj30o/0C1SUMku4wFw9Ob0LXlE8AUQKAj6DiVP0u8AdkQbG5WQ0GxN1H0vQ v0MRCj4eI2K9vjKdcPwhDIgXuE35CHUX8A3DZbUaUA5KRj8crFBfp0KHciI40L/n4k9h uVZWsQ+xicv5CvAbvQ1UripWfL4BkRD0ZnWfA8O0y4MkA5f7ZEpiYkdon8WlGOpd5E09 fV3g== X-Gm-Message-State: AOJu0YwlHE25DVNASsVwyg76LwgJRsWwMRB6RpxJl1jEnNbZ2FXT4I4j EkP9YyzPVgOlcIrHN/sQYzZlGfyVtZauLmB8JBc6gjTVdk8/BBb4hZz4bQC5V9/oCx8= X-Gm-Gg: Acq92OEFES0SUjEQLvK6/23llOZID0w3pcCKaW7p9ot1caeXrIPjuwl43P5I/Z0ULw3 kPbkIu44zSoyaLjx2hkKOVkBuuF0hCYiV0aUiuvhlFXlR7uLFtMOYki7foFcO0jhDPntEnMYgRB 95z+i17HLJqKGRx2BaT5QHgP1+0wdYZERxuvvO+eldtu2imksFEDwxH6i3FAiDpyc/NeHeTgUGV lpXktd7ZZPDVPPWerlH4+NwFSKW4xbhbQRJtnHoIprm8U+feMovWGG5+6iU2zJW9MNj8SlfTrRh JxK1hFwdAsr62OUMT7KrnlyNvgHkZYDlkgkpv4QJc7+0Z8l1kXrF/I8acd0L8nP8AUkmJdQEok1 AAeBnfBtls8PQ/xGwHVCwichxjM8ri9pUBQzC4eUjFxCfLZVROR37Nz/VMaQe9OBdb7limmzSrN +Ks56GJkYuJcEgznU/Bn7GWWDLZhsSd5MeVV+iRAA81oWkkBGQgEWIQtBp4gJbNgHk7YOz3ixOq qrjKd49+bOjF6no X-Received: by 2002:a05:620a:2950:b0:8ef:f1c0:ab7f with SMTP id af79cd13be357-911ce524059mr3564626085a.24.1779284288689; Wed, 20 May 2026 06:38:08 -0700 (PDT) Received: from ziepe.ca (crbknf0213w-47-54-130-67.pppoe-dynamic.high-speed.nl.bellaliant.net. [47.54.130.67]) by smtp.gmail.com with ESMTPSA id af79cd13be357-910bc83ff00sm2144919485a.26.2026.05.20.06.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2026 06:38:07 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wPh7f-0000000HAxk-0y0i; Wed, 20 May 2026 10:38:07 -0300 Date: Wed, 20 May 2026 10:38:07 -0300 From: Jason Gunthorpe To: Yu Zhang Cc: linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, iommu@lists.linux.dev, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, wei.liu@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, decui@microsoft.com, longli@microsoft.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, bhelgaas@google.com, kwilczynski@kernel.org, lpieralisi@kernel.org, mani@kernel.org, robh@kernel.org, arnd@arndb.de, mhklinux@outlook.com, jacob.pan@linux.microsoft.com, tgopinath@linux.microsoft.com, easwar.hariharan@linux.microsoft.com Subject: Re: [PATCH v1 1/4] iommu: Move Hyper-V IOMMU driver to its own subdirectory Message-ID: <20260520133807.GS7702@ziepe.ca> References: <20260511162408.1180069-1-zhangyu1@linux.microsoft.com> <20260511162408.1180069-2-zhangyu1@linux.microsoft.com> <20260515221918.GJ7702@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, May 20, 2026 at 02:37:03PM +0800, Yu Zhang wrote: > On Fri, May 15, 2026 at 07:19:18PM -0300, Jason Gunthorpe wrote: > > On Tue, May 12, 2026 at 12:24:05AM +0800, Yu Zhang wrote: > > > From: Easwar Hariharan > > > > > > The Hyper-V IOMMU driver currently only supports IRQ remapping. > > > As it will be adding DMA remapping support, prepare a directory > > > to contain all the different feature files. > > > > Any possibility we could put the irq remapping thing under the irq > > directory? > > > > The other drivers have it here because they are co-mingled with their > > iommu HW, will hyperv have the same issue? > > > > Good question. I don't think Hyper-V have the same co-mingling issue. > > But from a code organization perspective, I think drivers/iommu/hyperv/ > is still the most natural place: > > - The IRQ remapping framework itself (drivers/iommu/irq_remapping.c > and its internal header irq_remapping.h) lives under drivers/iommu/, > and all three backends (intel/, amd/, hyperv/) sit there today. > hyperv/irq_remapping.c includes that internal header directly. IMHO it is a fair question if that even belongs under iommu. I think it was dumped into here because of the co-mingled drivers.. Jason