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