Re: [PATCH v6 03/14] iommufd: Abstract an iommufd_eventq from iommufd_fault

2025-02-14 Thread Jason Gunthorpe
On Fri, Jan 24, 2025 at 04:30:32PM -0800, Nicolin Chen wrote: > The fault object was designed exclusively for hwpt's IO page faults (PRI). > But its queue implementation can be reused for other purposes too, such as > hardware IRQ and event injections to user space. > > Meanwhile, a fault object h

[PATCH v6 03/14] iommufd: Abstract an iommufd_eventq from iommufd_fault

2025-01-24 Thread Nicolin Chen
The fault object was designed exclusively for hwpt's IO page faults (PRI). But its queue implementation can be reused for other purposes too, such as hardware IRQ and event injections to user space. Meanwhile, a fault object holds a list of faults. So it's more accurate to call it a "fault queue".