Re: AMD KVM Pci Passthrough reports device busy

2012-07-11 Thread Alex Williamson
On Wed, 2012-07-11 at 21:32 +0200, Andreas Hartmann wrote: > Hello Joerg, > > Joerg Roedel wrote: > > Hi Andreas, > > > > On Wed, Jul 11, 2012 at 04:26:30PM +0200, Andreas Hartmann wrote: > >> May I please ask, if you meanwhile could get any information about > >> potential peer-to-peer communica

Re: AMD KVM Pci Passthrough reports device busy

2012-07-11 Thread Andreas Hartmann
Hello Joerg, Joerg Roedel wrote: > Hi Andreas, > > On Wed, Jul 11, 2012 at 04:26:30PM +0200, Andreas Hartmann wrote: >> May I please ask, if you meanwhile could get any information about >> potential peer-to-peer communication between the functions of the >> following multifunction device: > > G

Re: AMD KVM Pci Passthrough reports device busy

2012-07-11 Thread Joerg Roedel
Hi Andreas, On Wed, Jul 11, 2012 at 04:26:30PM +0200, Andreas Hartmann wrote: > May I please ask, if you meanwhile could get any information about > potential peer-to-peer communication between the functions of the > following multifunction device: Good news: I actually found the right person to

Re: AMD KVM Pci Passthrough reports device busy

2012-07-11 Thread Andreas Hartmann
Hello Joerg, Joerg Roedel wrote: > On Tue, Jun 05, 2012 at 08:27:05AM -0600, Alex Williamson wrote: >> Joerg, the question is whether the multifunction device above allows >> peer-to-peer between functions that could bypass the iommu. If not, we >> can make it the first entry in device specific a

Re: AMD KVM Pci Passthrough reports device busy

2012-06-25 Thread Joerg Roedel
On Mon, Jun 25, 2012 at 07:55:55AM +0200, Andreas Hartmann wrote: > Hello Joerg, > > Joerg Roedel wrote: > > On Tue, Jun 05, 2012 at 08:27:05AM -0600, Alex Williamson wrote: > >> Joerg, the question is whether the multifunction device above allows > >> peer-to-peer between functions that could byp

Re: AMD KVM Pci Passthrough reports device busy

2012-06-24 Thread Andreas Hartmann
Hello Joerg, Joerg Roedel wrote: > On Tue, Jun 05, 2012 at 08:27:05AM -0600, Alex Williamson wrote: >> Joerg, the question is whether the multifunction device above allows >> peer-to-peer between functions that could bypass the iommu. If not, we >> can make it the first entry in device specific a

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Andreas Hartmann
On Wed, 06 Jun 2012 10:39:30 -0600 Alex Williamson wrote: > On Wed, 2012-06-06 at 10:12 +0200, Andreas Hartmann wrote: > > On Tue, 05 Jun 2012 18:55:42 +0200 > > Andreas Hartmann wrote: > > > > > Alex Williamson wrote: > > > [...] > > > > Yep, I think the previous suggestion about reloading vfi

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Alex Williamson
On Wed, 2012-06-06 at 10:12 +0200, Andreas Hartmann wrote: > On Tue, 05 Jun 2012 18:55:42 +0200 > Andreas Hartmann wrote: > > > Alex Williamson wrote: > > [...] > > > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > > > with allow_unsafe_interrupts=1 will solve it. > > > >

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Joerg Roedel
On Tue, Jun 05, 2012 at 08:27:05AM -0600, Alex Williamson wrote: > Joerg, the question is whether the multifunction device above allows > peer-to-peer between functions that could bypass the iommu. If not, we > can make it the first entry in device specific acs enabled function I > proposed: > >

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Andreas Hartmann
Andreas Hartmann wrote: > On Wed, 6 Jun 2012 10:12:27 +0200 > Andreas Hartmann wrote: > >> On Tue, 05 Jun 2012 18:55:42 +0200 >> Andreas Hartmann wrote: >> >>> Alex Williamson wrote: >>> [...] Yep, I think the previous suggestion about reloading vfio_iommu_type1 with allow_unsafe_inter

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Andreas Hartmann
On Wed, 6 Jun 2012 10:12:27 +0200 Andreas Hartmann wrote: > On Tue, 05 Jun 2012 18:55:42 +0200 > Andreas Hartmann wrote: > > > Alex Williamson wrote: > > [...] > > > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > > > with allow_unsafe_interrupts=1 will solve it. > > >

Re: AMD KVM Pci Passthrough reports device busy

2012-06-06 Thread Andreas Hartmann
On Tue, 05 Jun 2012 18:55:42 +0200 Andreas Hartmann wrote: > Alex Williamson wrote: > [...] > > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > > with allow_unsafe_interrupts=1 will solve it. > > Yes! Works now. Success! > > Works means: Device is seen in VM. I could

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 22:31 -0500, Chris Sanders wrote: > > Great, glad to hear it. You can expect performance to get better once > > we get this upstream. Interrupts are currently getting bounced through > > Qemu which adds overhead. Eventually we'll accelerate them through KVM. > > I'm still a

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Chris Sanders
> Great, glad to hear it.  You can expect performance to get better once > we get this upstream.  Interrupts are currently getting bounced through > Qemu which adds overhead.  Eventually we'll accelerate them through KVM. > I'm still able to play static directly from the device using mplayer, so >

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 22:07 -0500, Chris Sanders wrote: > Alex, > > This solution appears to be working for me as well on a GA-970-D3. > > I've been able to pass the Hauppauge 350 through to a Windows XP guest > which has installed drivers and loaded it into my recording software > (SageTV). I'v

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Chris Sanders
Alex, This solution appears to be working for me as well on a GA-970-D3. I've been able to pass the Hauppauge 350 through to a Windows XP guest which has installed drivers and loaded it into my recording software (SageTV). I've got a few more things I want to clean up on my qemu start command bu

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread sheng qiu
test On Tue, Jun 5, 2012 at 5:39 AM, Andreas Hartmann wrote: > Hello Alex, > > thanks for your efforts! > > Maybe, you already know that I'm suffering the same problem :-( with a > GA-990XA-UD3 (990X chipset). > > > On Mon, 04 Jun 2012 21:44:05 -0600 > Alex Williamson wrote: > [...] >> I have a

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
Alex Williamson wrote: > On Tue, 2012-06-05 at 22:37 +0200, Andreas Hartmann wrote: >> Alex Williamson wrote: >>> On Tue, 2012-06-05 at 18:55 +0200, Andreas Hartmann wrote: Alex Williamson wrote: [...] > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > with

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 22:37 +0200, Andreas Hartmann wrote: > Alex Williamson wrote: > > On Tue, 2012-06-05 at 18:55 +0200, Andreas Hartmann wrote: > >> Alex Williamson wrote: > >> [...] > >>> Yep, I think the previous suggestion about reloading vfio_iommu_type1 > >>> with allow_unsafe_interrupts=1

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
Alex Williamson wrote: > On Tue, 2012-06-05 at 18:55 +0200, Andreas Hartmann wrote: >> Alex Williamson wrote: >> [...] >>> Yep, I think the previous suggestion about reloading vfio_iommu_type1 >>> with allow_unsafe_interrupts=1 will solve it. >> >> Yes! Works now. Success! >> >> Works means: De

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 18:55 +0200, Andreas Hartmann wrote: > Alex Williamson wrote: > [...] > > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > > with allow_unsafe_interrupts=1 will solve it. > > Yes! Works now. Success! > > Works means: Device is seen in VM. I couldn'

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
Alex Williamson wrote: [...] > Yep, I think the previous suggestion about reloading vfio_iommu_type1 > with allow_unsafe_interrupts=1 will solve it. Yes! Works now. Success! Works means: Device is seen in VM. I couldn't test it up to now, because I don't have any driver in the VM for this dev

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 17:58 +0200, Andreas Hartmann wrote: > Andreas Hartmann wrote: > [...] > > I tried to run qemu-system-x86_64 but got this error on startup: > > > > qemu-system-x86_64: -device > > vfio-pci,host=06:07.0,id=hostdev0,bus=pci.0,addr=0x5: vfio: failed to set > > iommu for contai

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
Andreas Hartmann wrote: [...] > I tried to run qemu-system-x86_64 but got this error on startup: > > qemu-system-x86_64: -device > vfio-pci,host=06:07.0,id=hostdev0,bus=pci.0,addr=0x5: vfio: failed to set > iommu for container: Operation not permitted > > qemu-system-x86_64: -device > vfio-pci

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 17:17 +0200, Andreas Hartmann wrote: > On Tue, 05 Jun 2012 08:27:05 -0600 > Alex Williamson wrote: > > > On Tue, 2012-06-05 at 12:39 +0200, Andreas Hartmann wrote: > > > Hello Alex, > > > > > > thanks for your efforts! > > > > > > Maybe, you already know that I'm suffering

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
On Tue, 05 Jun 2012 08:27:05 -0600 Alex Williamson wrote: > On Tue, 2012-06-05 at 12:39 +0200, Andreas Hartmann wrote: > > Hello Alex, > > > > thanks for your efforts! > > > > Maybe, you already know that I'm suffering the same problem :-( with a > > GA-990XA-UD3 (990X chipset). > > My system

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Alex Williamson
On Tue, 2012-06-05 at 12:39 +0200, Andreas Hartmann wrote: > Hello Alex, > > thanks for your efforts! > > Maybe, you already know that I'm suffering the same problem :-( with a > GA-990XA-UD3 (990X chipset). My system is a GA-990FXA-UD3, so just a slightly different version of the chipset. > On

Re: AMD KVM Pci Passthrough reports device busy

2012-06-05 Thread Andreas Hartmann
Hello Alex, thanks for your efforts! Maybe, you already know that I'm suffering the same problem :-( with a GA-990XA-UD3 (990X chipset). On Mon, 04 Jun 2012 21:44:05 -0600 Alex Williamson wrote: [...] > I have a setup with an AMD 990FX system and a spare PVR-350 card that I > installed to repr

Re: AMD KVM Pci Passthrough reports device busy

2012-06-04 Thread Alex Williamson
On Mon, 2012-06-04 at 16:11 -0500, Chris Sanders wrote: > Hello, I've been working for several days trying to get Pci > Passthrough to work. So far the #kvm IRC channel has helped me with a > few suggestions, though that hasn't yet solved the problem. I'm > running CentOS 6.2 and was suggested I