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

2023-05-25 Thread Jason Wang
On Thu, May 25, 2023 at 8:55 PM Viktor Prutyanov wrote: > > On Wed, May 24, 2023 at 11:25 AM Jason Wang wrote: > > > > On Sat, May 20, 2023 at 1:50 AM Viktor Prutyanov wrote: > > > > > > On Thu, May 18, 2023 at 9:14 AM Jason Wang wrote: > > > > > > > > On Fri, May 12, 2023 at 9:51 PM Viktor Pru

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

2023-05-25 Thread Viktor Prutyanov
On Wed, May 24, 2023 at 11:25 AM Jason Wang wrote: > > On Sat, May 20, 2023 at 1:50 AM Viktor Prutyanov wrote: > > > > On Thu, May 18, 2023 at 9:14 AM Jason Wang wrote: > > > > > > On Fri, May 12, 2023 at 9:51 PM Viktor Prutyanov > > > wrote: > > > > > > > > The guest can disable or never enab

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

2023-05-24 Thread Jason Wang
On Sat, May 20, 2023 at 1:50 AM Viktor Prutyanov wrote: > > On Thu, May 18, 2023 at 9:14 AM Jason Wang wrote: > > > > On Fri, May 12, 2023 at 9:51 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 QE

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

2023-05-19 Thread Viktor Prutyanov
On Thu, May 18, 2023 at 9:14 AM Jason Wang wrote: > > On Fri, May 12, 2023 at 9:51 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 an

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

2023-05-17 Thread Jason Wang
On Fri, May 12, 2023 at 9:51 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 v3 2/3] vhost: register and change IOMMU flag depending on Device-TLB state

2023-05-12 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