public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Yi Liu <yi.l.liu@intel.com>
Cc: Alex Williamson <alex.williamson@redhat.com>,
	kevin.tian@intel.com, eric.auger@redhat.com, nicolinc@nvidia.com,
	kvm@vger.kernel.org, chao.p.peng@linux.intel.com,
	zhenzhong.duan@intel.com, willy@infradead.org,
	zhangfei.gao@linaro.org, vasant.hegde@amd.com
Subject: Re: [PATCH v8 0/5] vfio-pci support pasid attach/detach
Date: Mon, 17 Mar 2025 16:28:13 -0300	[thread overview]
Message-ID: <20250317192813.GT9311@nvidia.com> (raw)
In-Reply-To: <f5cf80ed-0761-4b2c-a721-f41f9556d520@intel.com>

On Mon, Mar 17, 2025 at 03:25:18PM +0800, Yi Liu wrote:
> On 2025/3/14 22:48, Alex Williamson wrote:
> > On Thu, 13 Mar 2025 05:47:48 -0700
> > Yi Liu <yi.l.liu@intel.com> wrote:
> > 
> > > This series introduces the PASID attach/detach user APIs (uAPIs) that
> > > allow userspace to attach or detach a device's PASID to or from a specified
> > > IOAS/hwpt. Currently, only the vfio-pci driver is enabled in this series.
> > > 
> > > Following this update, PASID-capable devices bound to vfio-pci can report
> > > PASID capabilities to userspace and virtual machines (VMs), facilitating
> > > PASID use cases such as Shared Virtual Addressing (SVA). In discussions
> > > about reporting the virtual PASID (vPASID) to VMs [1], it was agreed that
> > > the userspace virtual machine monitor (VMM) will synthesize the vPASID
> > > capability. The VMM must identify a suitable location to insert the vPASID
> > > capability, including handling hidden bits for certain devices. However,
> > > this responsibility lies with userspace and is not the focus of this series.
> > > 
> > > This series begins by adding helpers for PASID attachment in the vfio core,
> > > then extends the device character device (cdev) attach/detach ioctls to
> > > support PASID attach/detach operations. At the conclusion of this series,
> > > the IOMMU_GET_HW_INFO ioctl is extended to report PCI PASID capabilities
> > > to userspace. Userspace should verify this capability before utilizing any
> > > PASID-related uAPIs provided by VFIO, as agreed in [2]. This series depends
> > > on the iommufd PASID attach/detach series [3].
> > > 
> > > The complete code is available at [4] and has been tested with a modified
> > > QEMU branch [5].
> > 
> > What's missing for this to go in and which tree will take it?  At a
> > glance it seems like 4/ needs a PCI sign-off and 5/ needs an IOMMUFD
> > sign-off.  Thanks,
> 
> Hi Alex,
> 
> yep, I just looped Bjorn in patch 4. While for patch 5, Jason is cced. I
> thought this may need to be taken together with the iommufd pasid
> series [1] due to dependency. Jason also mentioned this in the before [2].
> It might be a shared tree from both of you I guess. :)

Yes, it all has to go together.. Everything is waiting on this:

> [1] https://lore.kernel.org/linux-iommu/20250313123532.103522-1-yi.l.liu@intel.com/

Which will hopefully be done in a few days??

Jason

      reply	other threads:[~2025-03-17 19:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13 12:47 [PATCH v8 0/5] vfio-pci support pasid attach/detach Yi Liu
2025-03-13 12:47 ` [PATCH v8 1/5] ida: Add ida_find_first_range() Yi Liu
2025-03-13 12:47 ` [PATCH v8 2/5] vfio-iommufd: Support pasid [at|de]tach for physical VFIO devices Yi Liu
2025-03-13 12:47 ` [PATCH v8 3/5] vfio: VFIO_DEVICE_[AT|DE]TACH_IOMMUFD_PT support pasid Yi Liu
2025-03-19 17:41   ` Nicolin Chen
2025-03-20 12:37     ` Yi Liu
2025-03-13 12:47 ` [PATCH v8 4/5] iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability Yi Liu
2025-03-17  7:18   ` Yi Liu
2025-03-19 17:58   ` Nicolin Chen
2025-03-20 12:48     ` Yi Liu
2025-03-20 16:47       ` Nicolin Chen
2025-03-20 18:57         ` Jason Gunthorpe
2025-03-20 20:02           ` Nicolin Chen
2025-03-20 23:40             ` Jason Gunthorpe
2025-03-20 23:48               ` Nicolin Chen
2025-03-21  4:27                 ` Nicolin Chen
2025-03-21 17:37                   ` Yi Liu
2025-03-21 18:29                     ` Nicolin Chen
2025-03-21 18:42                       ` Jason Gunthorpe
2025-03-21 19:00                         ` Nicolin Chen
2025-03-13 12:47 ` [PATCH v8 5/5] iommufd/selftest: Add coverage for reporting max_pasid_log2 via IOMMU_HW_INFO Yi Liu
2025-03-19 18:12   ` Nicolin Chen
2025-03-14 14:48 ` [PATCH v8 0/5] vfio-pci support pasid attach/detach Alex Williamson
2025-03-17  7:25   ` Yi Liu
2025-03-17 19:28     ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250317192813.GT9311@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=alex.williamson@redhat.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=eric.auger@redhat.com \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=nicolinc@nvidia.com \
    --cc=vasant.hegde@amd.com \
    --cc=willy@infradead.org \
    --cc=yi.l.liu@intel.com \
    --cc=zhangfei.gao@linaro.org \
    --cc=zhenzhong.duan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox