From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Sander Eikelenboom <linux@eikelenboom.it>
Cc: xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: Xen pci-passthrough problem with pci-detach and pci-assignable-remove
Date: Fri, 10 Jan 2014 10:12:18 -0500 [thread overview]
Message-ID: <20140110151218.GA20152@phenom.dumpdata.com> (raw)
In-Reply-To: <1447395332.20140110155157@eikelenboom.it>
On Fri, Jan 10, 2014 at 03:51:57PM +0100, Sander Eikelenboom wrote:
> Hi Konrad,
>
> Normally i'm never reattaching pci devices to dom0, but at the moment i have some use for it.
>
> But it seems pci-detach isn't completely detaching the device from the guest.
>
> - Say i have a guest (HVM) with domid=2 and a pci device passedthrough with bdf 00:19.0, the device is hidden on boot with xen-pciback.hide=(00:19.0) in grub.
>
> - Now i do a "xl pci-assignable-list"
> This returns nothing, which is correct since all hidden devices have already been assigned to guests.
>
> - Then i do "xl -v pci-detach 2 00:19.0"
> Which also returns nothing ...
>
> - Now i do a "xl pci-assignable-list" again ..
> This returns:
> "0000:00:19.0"
> So the pci-detach does seem to have done *something* :-)
Or it thinks it has :-)
>
> - But when now trying to remove the device from pciback to dom0 with "xl pci-assignable-remove 00:19.0" it gives an error
> and later it give some stacktraces ..
>
> xen_pciback: ****** removing device 0000:00:19.0 while still in-use! ******
> xen_pciback: ****** driver domain may still access this device's i/o resources!
> xen_pciback: ****** shutdown driver domain before binding device
> xen_pciback: ****** to other drivers of domains
What about /var/log/xen/qemu-dm* and the 'lspci' in the guest? Is the PCI device
removed from there?
>
>
> When i shut the guest down instead of using pci-detach, the "xl pci-assignable-remove" works fine and i can rebind the device to it's driver in dom0.
>
> So am i misreading the wiki .. and is it not possible to detach a device from a running domain or ... ?
>
> Oh yes running xen-unstable and a 3.13-rc7 kernel
Do you see the same issue with 'xend'?
>
> --
> Sander
>
>
next prev parent reply other threads:[~2014-01-10 15:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 14:51 Xen pci-passthrough problem with pci-detach and pci-assignable-remove Sander Eikelenboom
2014-01-10 15:12 ` Konrad Rzeszutek Wilk [this message]
2014-01-10 15:57 ` Sander Eikelenboom
2014-01-10 16:12 ` Konrad Rzeszutek Wilk
2014-01-10 16:16 ` Sander Eikelenboom
2014-01-10 17:38 ` Konrad Rzeszutek Wilk
2014-01-10 18:21 ` Sander Eikelenboom
2014-01-10 18:22 ` Sander Eikelenboom
2014-01-24 13:36 ` Sander Eikelenboom
2014-01-24 17:48 ` Konrad Rzeszutek Wilk
2014-01-24 18:53 ` Sander Eikelenboom
2014-02-20 8:53 ` Sander Eikelenboom
2014-02-20 16:18 ` Sander Eikelenboom
2014-04-01 16:13 ` Konrad Rzeszutek Wilk
2014-04-02 10:43 ` Sander Eikelenboom
2014-04-16 15:30 ` Konrad Rzeszutek Wilk
2014-04-16 15:44 ` Sander Eikelenboom
2014-04-16 16:22 ` Sander Eikelenboom
2014-01-27 16:29 ` George Dunlap
2014-01-27 16:42 ` Sander Eikelenboom
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=20140110151218.GA20152@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=linux@eikelenboom.it \
--cc=xen-devel@lists.xenproject.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 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.