Re: [RFC PATCH] intel-iommu: Report interrupt remapping faults

2023-03-11 Thread David Woodhouse
On Fri, 2023-03-10 at 15:57 -0500, Peter Xu wrote: > On Fri, Mar 10, 2023 at 05:49:38PM +, David Woodhouse wrote: > > From: David Woodhouse > > > > +} > > + > > +#define log_irte_fault(f, sid, i) vtd_report_ir_fault(iommu, sid, f, i) > > This one seems not used. Oops yes, that was supposed

Re: [RFC PATCH] intel-iommu: Report interrupt remapping faults

2023-03-10 Thread Peter Xu
On Fri, Mar 10, 2023 at 05:49:38PM +, David Woodhouse wrote: > From: David Woodhouse > > There is more work to be done here, as pretranslations for the KVM IRQ > routing table can't fault yet; they should be handled in userspace and > the fault raised only when the IRQ actually happens (if in

[RFC PATCH] intel-iommu: Report interrupt remapping faults

2023-03-10 Thread David Woodhouse
From: David Woodhouse There is more work to be done here, as pretranslations for the KVM IRQ routing table can't fault yet; they should be handled in userspace and the fault raised only when the IRQ actually happens (if indeed the IRTE is still not valid at that time). But we can work on that lat