Re: [PATCH v13 06/10] virtio-iommu: Implement fault reporting

2020-02-03 Thread Auger Eric
Hi Peter, On 2/3/20 2:55 PM, Peter Xu wrote: > On Sat, Jan 25, 2020 at 06:19:51PM +0100, Eric Auger wrote: > > [...] > >> +static void virtio_iommu_report_fault(VirtIOIOMMU *viommu, uint8_t reason, >> + int flags, uint32_t endpoint, >> +

Re: [PATCH v13 06/10] virtio-iommu: Implement fault reporting

2020-02-03 Thread Peter Xu
On Sat, Jan 25, 2020 at 06:19:51PM +0100, Eric Auger wrote: [...] > +static void virtio_iommu_report_fault(VirtIOIOMMU *viommu, uint8_t reason, > + int flags, uint32_t endpoint, > + uint64_t address) > +{ > +VirtIODevic

[PATCH v13 06/10] virtio-iommu: Implement fault reporting

2020-01-25 Thread Eric Auger
The event queue allows to report asynchronous errors. The translate function now injects faults when relevant. Signed-off-by: Eric Auger --- v12 -> v13: - return on virtio_error() v11 -> v12: - reporting the addr associated with the fault and set the VIRTIO_IOMMU_FAULT_F_ADDRESS flag. - added