Re: [PATCH v2 07/13] iommufd/viommu: Add iommufd_viommu_report_irq helper

2024-12-12 Thread Nicolin Chen
On Wed, Dec 11, 2024 at 08:05:45AM +, Tian, Kevin wrote: > > From: Nicolin Chen > > Sent: Wednesday, December 4, 2024 6:10 AM > > > > +/* Typically called in driver's threaded IRQ handler */ > > +int iommufd_viommu_report_irq(struct iommufd_viommu *viommu, > > unsigned int type, > > +

RE: [PATCH v2 07/13] iommufd/viommu: Add iommufd_viommu_report_irq helper

2024-12-11 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Wednesday, December 4, 2024 6:10 AM > > +/* Typically called in driver's threaded IRQ handler */ > +int iommufd_viommu_report_irq(struct iommufd_viommu *viommu, > unsigned int type, > + void *irq_ptr, size_t irq_len) > +{ > + struct iommu

[PATCH v2 07/13] iommufd/viommu: Add iommufd_viommu_report_irq helper

2024-12-03 Thread Nicolin Chen
Similar to iommu_report_device_fault, this allows IOMMU drivers to report, from threaded IRQ handlers to user space hypervisors, IRQs or events that belong to a vIOMMU. Signed-off-by: Nicolin Chen --- include/linux/iommufd.h| 9 drivers/iommu/iommufd/driver.c | 41 +