public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Da Powah <dapowah@hotmail.com>
To: kvm@vger.kernel.org
Subject: Re: Passthrough of 2 PCI devices works 80% (Kernel 2.6.37, Debian Squeeze, Win7 VM)
Date: Thu, 17 Feb 2011 19:39:16 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110217T201410-117@post.gmane.org> (raw)
In-Reply-To: 1297898691.14733.216.camel@x201

> > i`ve got a question about pci passthrogh of 2 pci devices (2x DVB-S2
> > PCI cards with Saa7146 PCI Bridge from Technotrend: S2-3200). 
> > 
> > I am using squeeze with a 2.6.37 selfcompiled Kernel. I want to
> > passthrough both devices to a virtual machine (Win7) an get problems.
> > If i passthrough one device (other is unplugged) it works flawlessly. 
> 
> I'm glad to hear it works one at a time.  It's oddly specific that you
> mention it works if the other card is unplugged, can you only physically
> have one card plugged in at a time for it to work (ie. if you have both
> cards physically installed, but only one assigned to the guest, does it
> work)?  Can you simultaneously assign each card to separate guests and
> they work?
I tried both devices, one at a time. Both are working well.
KVM supports the passthrough with all devices together behind a bridge only. So
i have to pass all 03.0x.y devices through to one guest only.


> > The time i add both devices and pass them through i am still able to
> > start the VM and i don`t see anything in the error logs. Even Windows7
> > or XP detects both cards and installs the driver correctly (actual BDA
> > Driver, standard broadcast video driver). But the time i want to acces
> > the cards, i get a BSOD - caused by the driver.
> 
> I'll toss out a dumb question, can the drivers for Win7 or WinXP drive
> two cards when running on bare metal?  Does a Linux guest work with both
> cards better?
The driver support more than one devices. I already contacted the support and
they assured me, that the driver i used is working. Using both cards in Linux
won`t help, because i want to use them with a windows application.

> > I already aligned the io memory of both devices, checked the libvirt
> > logs, kernel and syslogs - there is nothing for a kvm newbe that seems
> > to be odd. The kernel is compiled with all the mentioned kernel
> > options of the linux-kvm.org page - except that i compiled the stub
> > driver as module. One card alone (both tried separately) is working
> > w/o any flaws. Kvm is able to pass through all devices behind a PCI
> > Bridge - so take a look at the 03:0x.0 devices below: i use those 2
> > sat boards only in 3 PCI slots.
> > 
> > What am i able to do to make deeper analysis or to solve the
> > problem ? 
> 
> If each card works when assigned separately and you can boot the guest
> with both cards assign and the drivers load and device manager isn't
> reporting any errors, I'd lean towards a Windows driver issue.  There is
> some debugging you can enable in hw/device-assignment.c that might shed
> some light on what the drivers is trying to do before the BSOD.  What
> error is the BSOD reporting?  Are you using the latest qemu-kvm.git?
The drivers work on 'bare metal' as you mentioned above. I won`t believe that
its a pure driver-only issue for now. But the other behavior of the passed
through device may cause the driver fault. The BSOD tells, that it is a general
driver issue which caused the fault.
I am using the kvm codse which is distributed in the kernel 2.6.37 and standard
debian squeeze repositories for installation of the tools lib-virt, etc...

I am trying to get some more PCI spcecific data from the windows guests. I will
try to use both cards in a linux vm.

> Thanks,
> 
> Alex

Thanks for participating in my very special problem, 

DP




  reply	other threads:[~2011-02-17 20:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 20:57 Passthrough of 2 PCI devices works 80% (Kernel 2.6.37, Debian Squeeze, Win7 VM) Da Powah
2011-02-16 23:24 ` Alex Williamson
2011-02-17 19:39   ` Da Powah [this message]
2011-02-17 21:14   ` Da Powah
2011-02-22 11:48   ` Da Powah
  -- strict thread matches above, loose matches on Subject: below --
2011-02-19 22:53 Da Powah
2011-02-20  1:16 ` Da Powah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110217T201410-117@post.gmane.org \
    --to=dapowah@hotmail.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox