All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Cinco, Dante" <Dante.Cinco@lsi.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Problem with pv-ops dom0 and pci-stub to hide devices: improper device assignment specified
Date: Tue, 13 Oct 2009 10:20:38 -0400	[thread overview]
Message-ID: <20091013142038.GA19950@phenom.dumpdata.com> (raw)
In-Reply-To: <2B044E14371DA244B71F8BF2514563F503ECD879@cosmail03.lsi.com>

On Mon, Oct 12, 2009 at 06:48:11PM -0600, Cinco, Dante wrote:
> I followed the procedure for "binding devices to pci-stub" but when I ran "xm pci-list-assignable-devices," no device showed up. I can see the device though in /sys/bus/pci/drivers/pci-stub/ and "lspci -v -s 0:07:0.1" reports the driver in use as pci-stub. When I tried to bringup the domU (Linux 2.6.30.1), I get an error message:

What is the Dom0 you are using? There is no support yet in 2.6.30.1 for the pciback (I am working on this
right now, testing it to be exact).

Nor is there a pci-front in the 2.6.31.1.

Why use pci-stub? It just hides devices, but does not do anything else?

> 
> Error: pci: improper device assignment specified: pci: 0000:07:00.0 must be co-assigned to the same guest with 0000:07:00.0, but it is not owned by pciback.
> 
> I'm only bringing up one domU so I don't quite understand the error message.
> 
> Here's a breakdown of my steps:
> 
> ls -ltr /sys/bus/pci/drivers/pci-stub/
> total 0
> --w------- 1 root root 4096 Oct  9 05:29 unbind
> --w------- 1 root root 4096 Oct  9 05:29 uevent
> --w------- 1 root root 4096 Oct  9 05:29 remove_id
> --w------- 1 root root 4096 Oct  9 05:29 new_id
> --w------- 1 root root 4096 Oct  9 05:29 bind
> 
> lspci -n|grep 8032
> 07:00.0 0c04: 11f8:8032 (rev 05)
> 
> echo "11f8 8032" > /sys/bus/pci/drivers/pci-stub/new_id
> echo "0000:07:00.0" > /sys/bus/pci/devices/0000:07:00.0/driver/unbind
> echo "0000:07:00.0" > /sys/bus/pci/drivers/pci-stub/bind
> 
> lspci -v -s 0:07:0.0 | grep driver
>         Kernel driver in use: pci-stub
> 
> ls -ltr /sys/bus/pci/drivers/pci-stub/
> total 0
> --w------- 1 root root 4096 Oct  9 05:29 uevent
> --w------- 1 root root 4096 Oct  9 05:29 remove_id
> --w------- 1 root root 4096 Oct  9 05:30 unbind
> --w------- 1 root root 4096 Oct  9 05:30 new_id
> --w------- 1 root root 4096 Oct  9 05:30 bind
> lrwxrwxrwx 1 root root    0 Oct  9 05:30 0000:07:00.0 -> ../../../../devices/pci0000:00/0000:00:09.0/0000:07:00.0
> 
> xm pci-list-assignable-devices
> (Nothing)
> 
> xm create -c /root/cfg
> (vcpus=1)
> (device_model = 'qemu-dm')
> (pci=['07:00.0'])
> Error: pci: improper device assignment specified: pci: 0000:07:00.0 must be co-assigned to the same guest with 0000:07:00.0, but it is not owned by pciback.
> 
> (XEN) Latest ChangeSet: Thu Oct 08 09:24:32 2009 +0100 20296:1d7221667204
> 
> dom0 kernel: 2.6.31.1
> 
> Thanks in advance.
> 
> Dante
> 

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2009-10-13 14:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13  0:48 Problem with pv-ops dom0 and pci-stub to hide devices: improper device assignment specified Cinco, Dante
2009-10-13  2:50 ` Han, Weidong
2009-10-13  5:44   ` Bruce Edge
2009-10-13  6:21     ` Han, Weidong
2009-10-13 17:15       ` Cinco, Dante
2009-10-13 14:20 ` Konrad Rzeszutek Wilk [this message]
2009-10-13 16:12   ` Bruce Edge
2009-10-13 16:36     ` Keir Fraser
2009-10-13 17:07     ` Konrad Rzeszutek Wilk
2009-10-13 17:01   ` Konrad Rzeszutek Wilk
  -- strict thread matches above, loose matches on Subject: below --
2009-10-13 22:56 Cinco, Dante

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=20091013142038.GA19950@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Dante.Cinco@lsi.com \
    --cc=xen-devel@lists.xensource.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.