Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Peter Xu
On Thu, May 03, 2018 at 05:53:59PM +0800, Peter Xu wrote: > On Thu, May 03, 2018 at 05:22:03PM +0800, Jason Wang wrote: > > > > > > On 2018年05月03日 15:53, Peter Xu wrote: > > > On Thu, May 03, 2018 at 03:43:35PM +0800, Jason Wang wrote: > > > > > > > > On 2018年05月03日 15:28, Peter Xu wrote: > > >

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Peter Xu
On Thu, May 03, 2018 at 05:22:03PM +0800, Jason Wang wrote: > > > On 2018年05月03日 15:53, Peter Xu wrote: > > On Thu, May 03, 2018 at 03:43:35PM +0800, Jason Wang wrote: > > > > > > On 2018年05月03日 15:28, Peter Xu wrote: > > > > On Thu, May 03, 2018 at 03:20:11PM +0800, Jason Wang wrote: > > > > >

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Jason Wang
On 2018年05月03日 15:53, Peter Xu wrote: On Thu, May 03, 2018 at 03:43:35PM +0800, Jason Wang wrote: On 2018年05月03日 15:28, Peter Xu wrote: On Thu, May 03, 2018 at 03:20:11PM +0800, Jason Wang wrote: On 2018年05月03日 14:04, Peter Xu wrote: IMHO the guest can't really detect this, but it'll found

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Peter Xu
On Thu, May 03, 2018 at 03:43:35PM +0800, Jason Wang wrote: > > > On 2018年05月03日 15:28, Peter Xu wrote: > > On Thu, May 03, 2018 at 03:20:11PM +0800, Jason Wang wrote: > > > > > > On 2018年05月03日 14:04, Peter Xu wrote: > > > > IMHO the guest can't really detect this, but it'll found that the > >

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Jason Wang
On 2018年05月03日 15:28, Peter Xu wrote: On Thu, May 03, 2018 at 03:20:11PM +0800, Jason Wang wrote: On 2018年05月03日 14:04, Peter Xu wrote: IMHO the guest can't really detect this, but it'll found that the device is not working functionally if it's doing something like what Jason has mentioned.

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Peter Xu
On Thu, May 03, 2018 at 03:20:11PM +0800, Jason Wang wrote: > > > On 2018年05月03日 14:04, Peter Xu wrote: > > IMHO the guest can't really detect this, but it'll found that the > > device is not working functionally if it's doing something like what > > Jason has mentioned. > > > > Actually now I h

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-03 Thread Jason Wang
On 2018年05月03日 14:04, Peter Xu wrote: IMHO the guest can't really detect this, but it'll found that the device is not working functionally if it's doing something like what Jason has mentioned. Actually now I have had an idea if we really want to live well even with Jason's example: maybe we'l

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-05-02 Thread Peter Xu
On Fri, Apr 27, 2018 at 11:37:24PM +, Tian, Kevin wrote: [...] > > Self NAK on this... > > > > More than half of the whole series tries to solve the solo problem > > that we unmapped some pages that were already mapped, which proved > > to > > be wrong. Now if we squash the change we will d

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Jason Wang
On 2018年04月27日 19:40, Peter Xu wrote: On Fri, Apr 27, 2018 at 05:55:27PM +0800, Peter Xu wrote: On Fri, Apr 27, 2018 at 07:44:07AM +, Tian, Kevin wrote: From: Peter Xu [mailto:pet...@redhat.com] Sent: Friday, April 27, 2018 3:28 PM On Fri, Apr 27, 2018 at 07:02:14AM +, Tian, Kevin wr

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Tian, Kevin
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Friday, April 27, 2018 7:40 PM > > On Fri, Apr 27, 2018 at 05:55:27PM +0800, Peter Xu wrote: > > On Fri, Apr 27, 2018 at 07:44:07AM +, Tian, Kevin wrote: > > > > From: Peter Xu [mailto:pet...@redhat.com] > > > > Sent: Friday, April 27, 2018 3

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Peter Xu
On Fri, Apr 27, 2018 at 05:55:27PM +0800, Peter Xu wrote: > On Fri, Apr 27, 2018 at 07:44:07AM +, Tian, Kevin wrote: > > > From: Peter Xu [mailto:pet...@redhat.com] > > > Sent: Friday, April 27, 2018 3:28 PM > > > > > > On Fri, Apr 27, 2018 at 07:02:14AM +, Tian, Kevin wrote: > > > > > Fro

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Peter Xu
On Fri, Apr 27, 2018 at 07:44:07AM +, Tian, Kevin wrote: > > From: Peter Xu [mailto:pet...@redhat.com] > > Sent: Friday, April 27, 2018 3:28 PM > > > > On Fri, Apr 27, 2018 at 07:02:14AM +, Tian, Kevin wrote: > > > > From: Jason Wang [mailto:jasow...@redhat.com] > > > > Sent: Friday, April

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Tian, Kevin
> From: Peter Xu [mailto:pet...@redhat.com] > Sent: Friday, April 27, 2018 3:28 PM > > On Fri, Apr 27, 2018 at 07:02:14AM +, Tian, Kevin wrote: > > > From: Jason Wang [mailto:jasow...@redhat.com] > > > Sent: Friday, April 27, 2018 2:08 PM > > > > > > On 2018年04月25日 12:51, Peter Xu wrote: > > >

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Peter Xu
On Fri, Apr 27, 2018 at 07:02:14AM +, Tian, Kevin wrote: > > From: Jason Wang [mailto:jasow...@redhat.com] > > Sent: Friday, April 27, 2018 2:08 PM > > > > On 2018年04月25日 12:51, Peter Xu wrote: > > > For each VTDAddressSpace, now we maintain what IOVA ranges we have > > > mapped and what we ha

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-27 Thread Tian, Kevin
> From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Friday, April 27, 2018 2:08 PM > > On 2018年04月25日 12:51, Peter Xu wrote: > > For each VTDAddressSpace, now we maintain what IOVA ranges we have > > mapped and what we have not. With that information, now we only > send > > MAP or UNMAP when

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-26 Thread Peter Xu
On Fri, Apr 27, 2018 at 02:07:46PM +0800, Jason Wang wrote: > > > On 2018年04月25日 12:51, Peter Xu wrote: > > For each VTDAddressSpace, now we maintain what IOVA ranges we have > > mapped and what we have not. With that information, now we only send > > MAP or UNMAP when necessary. Say, we don't

Re: [Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-26 Thread Jason Wang
On 2018年04月25日 12:51, Peter Xu wrote: For each VTDAddressSpace, now we maintain what IOVA ranges we have mapped and what we have not. With that information, now we only send MAP or UNMAP when necessary. Say, we don't send MAP notifies if we know we have already mapped the range, meanwhile we

[Qemu-devel] [PATCH 08/10] intel-iommu: maintain per-device iova ranges

2018-04-24 Thread Peter Xu
For each VTDAddressSpace, now we maintain what IOVA ranges we have mapped and what we have not. With that information, now we only send MAP or UNMAP when necessary. Say, we don't send MAP notifies if we know we have already mapped the range, meanwhile we don't send UNMAP notifies if we know we ne