Re: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-21 Thread Jason Gunthorpe
On Fri, Feb 21, 2025 at 04:27:32AM +, Tian, Kevin wrote: > With that in mind we don't need provide reason for the static node, > and IOMMU_EVENTQ_FLAG_LOST_EVENTS sounds closer to the > real intention. I also like lost events - it is simple and to the point Jason

RE: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-20 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Friday, February 21, 2025 5:16 AM > > On Wed, Feb 19, 2025 at 06:58:16AM +, Tian, Kevin wrote: > > > From: Jason Gunthorpe > > > Sent: Tuesday, February 18, 2025 11:36 PM > > > > > > On Fri, Jan 24, 2025 at 04:30:36PM -0800, Nicolin Chen wrote: > > > > +int iommu

Re: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-20 Thread Nicolin Chen
On Wed, Feb 19, 2025 at 06:58:16AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Tuesday, February 18, 2025 11:36 PM > > > > On Fri, Jan 24, 2025 at 04:30:36PM -0800, Nicolin Chen wrote: > > > +int iommufd_viommu_report_event(struct iommufd_viommu *viommu, > > > +

RE: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-18 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, February 18, 2025 11:36 PM > > On Fri, Jan 24, 2025 at 04:30:36PM -0800, Nicolin Chen wrote: > > +int iommufd_viommu_report_event(struct iommufd_viommu *viommu, > > + enum iommu_veventq_type type, void > *event_data, > > +

Re: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-18 Thread Jason Gunthorpe
On Fri, Jan 24, 2025 at 04:30:36PM -0800, Nicolin Chen wrote: > +int iommufd_viommu_report_event(struct iommufd_viommu *viommu, > + enum iommu_veventq_type type, void *event_data, > + size_t data_len) > +{ > + struct iommufd_veventq *veven

RE: [PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-02-17 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Saturday, January 25, 2025 8:31 AM > > Similar to iommu_report_device_fault, this allows IOMMU drivers to report > vIOMMU events from threaded IRQ handlers to user space hypervisors. > > Reviewed-by: Lu Baolu > Signed-off-by: Nicolin Chen Reviewed-by: Kevin Tian

[PATCH v6 07/14] iommufd/viommu: Add iommufd_viommu_report_event helper

2025-01-24 Thread Nicolin Chen
Similar to iommu_report_device_fault, this allows IOMMU drivers to report vIOMMU events from threaded IRQ handlers to user space hypervisors. Reviewed-by: Lu Baolu Signed-off-by: Nicolin Chen --- include/linux/iommufd.h| 11 + drivers/iommu/iommufd/driver.c | 45