All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen pci-passthrough problem with pci-detach and pci-assignable-remove
@ 2014-01-10 14:51 Sander Eikelenboom
  2014-01-10 15:12 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 20+ messages in thread
From: Sander Eikelenboom @ 2014-01-10 14:51 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel

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* :-)

- 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


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

--
Sander

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-04-16 16:23 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.