All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: shacky <shacky83@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: PCI passthrough
Date: Mon, 16 Mar 2015 13:56:23 -0600	[thread overview]
Message-ID: <1426535783.3643.274.camel@redhat.com> (raw)
In-Reply-To: <CAPz3gmmJWYQVeN9dEF0y28qQX2dvaoCBXgNwoau3xKRVAo=2Gw@mail.gmail.com>

On Mon, 2015-03-16 at 14:35 +0100, shacky wrote:
> Hi.
> I'm using Proxmox VE 3.4 with qemu-server 3.3, and I'm trying to pass
> two PCI-Express AudioScience soundcards to a KVM virtual machine.
> 
> The soundcards are the following:
> 
> ve2:/# lspci
> 03:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200A PCI
> Express-to-PCI Bridge (rev 03)
> 04:00.0 Multimedia audio controller: Texas Instruments TMS320C6414
> TMS320C6415 TMS320C6416
> 05:00.0 PCI bridge: Texas Instruments XIO2000(A)/XIO2200A PCI
> Express-to-PCI Bridge (rev 03)
> 06:00.0 Multimedia audio controller: Texas Instruments TMS320C6414
> TMS320C6415 TMS320C6416
> 
> and I configured the virtual machine in this way:
> 
> machine: q35
> hostpci0: 03:00.0
> hostpci1: 04:00.0
> hostpci2: 05:00.0
> hostpci3: 06:00.0
> 
> But when I try to start the virtual machine I get the following error:
> 
> ve2:/# qm start 202
> kvm: -device pci-assign,host=03:00.0,id=hostpci0,bus=pci.0,addr=0x10:
> Device assignment only supports endpoint assignment, device type 7
> kvm: -device pci-assign,host=03:00.0,id=hostpci0,bus=pci.0,addr=0x10:
> Device initialization failed.
> kvm: -device pci-assign,host=03:00.0,id=hostpci0,bus=pci.0,addr=0x10:
> Device 'kvm-pci-assign' could not be initialized
> 
> I realized that I cannot pass the PCI bridge, so the VM starts passing
> only 04:00.0 and 06:00.0 devices.
> 
> But Alsa on the virtual machine cannot recognise the soundcards, so
> I'm thinking that the problem could be that I'm not passing the PCI
> bridge.

It's never correct to pass the bridge.  Do you get any errors in the
guest when the driver for the sound card is loaded?  Does it work with
440fx machine type (why are you using q35)?  What's the underlying qemu
and kernel version?  Have you tried vfio-pci instead of legacy device
assignment?  Thanks,

Alex


  reply	other threads:[~2015-03-16 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 13:35 PCI passthrough shacky
2015-03-16 19:56 ` Alex Williamson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-24  0:01 Matt Piermarini
2009-09-24 11:46 ` Avi Kivity
2009-09-24 14:03   ` Matt Piermarini

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=1426535783.3643.274.camel@redhat.com \
    --to=alex.williamson@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=shacky83@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.