Re: [PATCH v4 1/2] vhost: register and change IOMMU flag depending on Device-TLB state

2023-05-25 Thread Jason Wang
On Thu, May 25, 2023 at 8:58 PM Viktor Prutyanov wrote: > > The guest can disable or never enable Device-TLB. In these cases, > it can't be used even if enabled in QEMU. So, check Device-TLB state > before registering IOMMU notifier and select unmap flag depending on > that. Also, implement a way

[PATCH v4 1/2] vhost: register and change IOMMU flag depending on Device-TLB state

2023-05-25 Thread Viktor Prutyanov
The guest can disable or never enable Device-TLB. In these cases, it can't be used even if enabled in QEMU. So, check Device-TLB state before registering IOMMU notifier and select unmap flag depending on that. Also, implement a way to change IOMMU notifier flag if Device-TLB state is changed. Bugl