Re: [Qemu-devel] iommu emulation

2017-03-02 Thread Bandan Das
Peter Xu writes: > On Thu, Mar 02, 2017 at 05:20:19PM -0500, Bandan Das wrote: >> Jintack Lim writes: >> >> > [cc Bandan] >> > ... >> >> Jintack, any progress with this ? >> >> I am testing on a X540-AT2 and I see a different behavior. It appears >> config succeeds but the driver keeps resett

Re: [Qemu-devel] iommu emulation

2017-03-02 Thread Peter Xu
On Thu, Mar 02, 2017 at 05:20:19PM -0500, Bandan Das wrote: > Jintack Lim writes: > > > [cc Bandan] > > > > On Tue, Feb 21, 2017 at 5:33 AM, Jintack Lim > > wrote: > > > >> > >> > >> On Wed, Feb 15, 2017 at 9:47 PM, Alex Williamson < > >> alex.william...@redhat.com> wrote: > ... > >> > > > > I'v

Re: [Qemu-devel] iommu emulation

2017-03-02 Thread Jintack Lim
On Thu, Mar 2, 2017 at 5:20 PM, Bandan Das wrote: > Jintack Lim writes: > >> [cc Bandan] >> >> On Tue, Feb 21, 2017 at 5:33 AM, Jintack Lim >> wrote: >> >>> >>> >>> On Wed, Feb 15, 2017 at 9:47 PM, Alex Williamson < >>> alex.william...@redhat.com> wrote: > ... >>> >> >> I've tried another networ

Re: [Qemu-devel] iommu emulation

2017-03-02 Thread Bandan Das
Jintack Lim writes: > [cc Bandan] > > On Tue, Feb 21, 2017 at 5:33 AM, Jintack Lim > wrote: > >> >> >> On Wed, Feb 15, 2017 at 9:47 PM, Alex Williamson < >> alex.william...@redhat.com> wrote: ... >> > > I've tried another network device on a different machine. It has "Intel > Corporation 82599ES

Re: [Qemu-devel] iommu emulation

2017-02-23 Thread Jintack Lim
[cc Bandan] On Tue, Feb 21, 2017 at 5:33 AM, Jintack Lim wrote: > > > On Wed, Feb 15, 2017 at 9:47 PM, Alex Williamson < > alex.william...@redhat.com> wrote: > >> On Thu, 16 Feb 2017 10:28:39 +0800 >> Peter Xu wrote: >> >> > On Wed, Feb 15, 2017 at 11:15:52AM -0700, Alex Williamson wrote: >> >

Re: [Qemu-devel] iommu emulation

2017-02-21 Thread Jintack Lim
On Wed, Feb 15, 2017 at 9:47 PM, Alex Williamson wrote: > On Thu, 16 Feb 2017 10:28:39 +0800 > Peter Xu wrote: > > > On Wed, Feb 15, 2017 at 11:15:52AM -0700, Alex Williamson wrote: > > > > [...] > > > > > > Alex, do you like something like below to fix above issue that > Jintack > > > > has enc

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Alex Williamson
On Thu, 16 Feb 2017 10:28:39 +0800 Peter Xu wrote: > On Wed, Feb 15, 2017 at 11:15:52AM -0700, Alex Williamson wrote: > > [...] > > > > Alex, do you like something like below to fix above issue that Jintack > > > has encountered? > > > > > > (note: this code is not for compile, only trying sho

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Peter Xu
On Wed, Feb 15, 2017 at 11:15:52AM -0700, Alex Williamson wrote: [...] > > Alex, do you like something like below to fix above issue that Jintack > > has encountered? > > > > (note: this code is not for compile, only trying show what I mean...) > > > > --8<--- > > diff --git a/hw/vfio/p

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Alex Williamson
On Wed, 15 Feb 2017 18:25:26 -0500 Jintack Lim wrote: > On Wed, Feb 15, 2017 at 5:50 PM, Alex Williamson > wrote: > > > On Wed, 15 Feb 2017 17:05:35 -0500 > > Jintack Lim wrote: > > > > > On Tue, Feb 14, 2017 at 9:52 PM, Peter Xu wrote: > > > > > > > On Tue, Feb 14, 2017 at 07:50:39AM -

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Jintack Lim
On Wed, Feb 15, 2017 at 5:50 PM, Alex Williamson wrote: > On Wed, 15 Feb 2017 17:05:35 -0500 > Jintack Lim wrote: > > > On Tue, Feb 14, 2017 at 9:52 PM, Peter Xu wrote: > > > > > On Tue, Feb 14, 2017 at 07:50:39AM -0500, Jintack Lim wrote: > > > > > > [...] > > > > > > > > > >> > I misunderstoo

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Alex Williamson
On Wed, 15 Feb 2017 17:05:35 -0500 Jintack Lim wrote: > On Tue, Feb 14, 2017 at 9:52 PM, Peter Xu wrote: > > > On Tue, Feb 14, 2017 at 07:50:39AM -0500, Jintack Lim wrote: > > > > [...] > > > > > > > >> > I misunderstood what you said? > > > > > > > > > > > > I failed to understand why an v

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Jintack Lim
On Tue, Feb 14, 2017 at 9:52 PM, Peter Xu wrote: > On Tue, Feb 14, 2017 at 07:50:39AM -0500, Jintack Lim wrote: > > [...] > > > > > >> > I misunderstood what you said? > > > > > > > > > > I failed to understand why an vIOMMU could help boost performance. > :( > > > > > Could you provide your comm

Re: [Qemu-devel] iommu emulation

2017-02-15 Thread Alex Williamson
On Wed, 15 Feb 2017 11:34:52 +0800 Peter Xu wrote: > On Wed, Feb 15, 2017 at 10:52:43AM +0800, Peter Xu wrote: > > [...] > > > > > > > > > Then, I *think* above assertion you encountered would fail only if > > > > prev == 0 here, but I still don't quite sure why was that happening. > > > > Btw,

Re: [Qemu-devel] iommu emulation

2017-02-14 Thread Peter Xu
On Wed, Feb 15, 2017 at 10:52:43AM +0800, Peter Xu wrote: [...] > > > > > > Then, I *think* above assertion you encountered would fail only if > > > prev == 0 here, but I still don't quite sure why was that happening. > > > Btw, could you paste me your "lspci -vvv -s 00:03.0" result in your L1 >

Re: [Qemu-devel] iommu emulation

2017-02-14 Thread Peter Xu
On Tue, Feb 14, 2017 at 07:50:39AM -0500, Jintack Lim wrote: [...] > > > >> > I misunderstood what you said? > > > > > > > > I failed to understand why an vIOMMU could help boost performance. :( > > > > Could you provide your command line here so that I can try to > > > > reproduce? > > > > > > S

Re: [Qemu-devel] iommu emulation

2017-02-14 Thread Jintack Lim
On Tue, Feb 14, 2017 at 2:35 AM, Peter Xu wrote: > On Thu, Feb 09, 2017 at 08:01:14AM -0500, Jintack Lim wrote: > > On Wed, Feb 8, 2017 at 10:52 PM, Peter Xu wrote: > > > (cc qemu-devel and Alex) > > > > > > On Wed, Feb 08, 2017 at 09:14:03PM -0500, Jintack Lim wrote: > > >> On Wed, Feb 8, 2017

Re: [Qemu-devel] iommu emulation

2017-02-13 Thread Peter Xu
On Thu, Feb 09, 2017 at 08:01:14AM -0500, Jintack Lim wrote: > On Wed, Feb 8, 2017 at 10:52 PM, Peter Xu wrote: > > (cc qemu-devel and Alex) > > > > On Wed, Feb 08, 2017 at 09:14:03PM -0500, Jintack Lim wrote: > >> On Wed, Feb 8, 2017 at 10:49 AM, Jintack Lim > >> wrote: > >> > Hi Peter, > >> >

Re: [Qemu-devel] iommu emulation

2017-02-09 Thread Jintack Lim
On Wed, Feb 8, 2017 at 10:52 PM, Peter Xu wrote: > (cc qemu-devel and Alex) > > On Wed, Feb 08, 2017 at 09:14:03PM -0500, Jintack Lim wrote: >> On Wed, Feb 8, 2017 at 10:49 AM, Jintack Lim wrote: >> > Hi Peter, >> > >> > On Tue, Feb 7, 2017 at 10:12 PM, Peter Xu wrote: >> >> On Tue, Feb 07, 2017

Re: [Qemu-devel] iommu emulation

2017-02-08 Thread Peter Xu
(cc qemu-devel and Alex) On Wed, Feb 08, 2017 at 09:14:03PM -0500, Jintack Lim wrote: > On Wed, Feb 8, 2017 at 10:49 AM, Jintack Lim wrote: > > Hi Peter, > > > > On Tue, Feb 7, 2017 at 10:12 PM, Peter Xu wrote: > >> On Tue, Feb 07, 2017 at 02:16:29PM -0500, Jintack Lim wrote: > >>> Hi Peter and