All of lore.kernel.org
 help / color / mirror / Atom feed
* Inconsistent use of libxl__device_pci_reset() when adding/removing all functions of a device
@ 2014-02-04 18:19 Martin Öhrling
  2014-02-04 19:55 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Öhrling @ 2014-02-04 18:19 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 961 bytes --]

I tried to use vga passthrough with an AMD card and ran into the issues
with dom0 crash on domU reboot. My intention is to debug the issue and I
have started to read up on the code for pci passthrough. The following
observations may not be an error but perhaps someone could shed some light
over the design intentions.

My first impression was that libxl__device_pci_reset() is a function level
reset function. It is called each time a single function of a device is
added or removed. A device reset would break other domU:s if other
functions of the device are passed through to these domU:s.

The strange thing is that there is only a single libxl__device_pci_reset()
call when pcidev->vfunc_mask is set to LIBXL_PCI_FUNC_ALL. I'm getting the
impression that the function is assumed to be a device reset function.

Is the attempt to reset a function, when all other functions belongs to
pciback, detected and replaced by a device reset?

Best Regards,
Martin

[-- Attachment #1.2: Type: text/html, Size: 1349 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2014-02-25 11:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 18:19 Inconsistent use of libxl__device_pci_reset() when adding/removing all functions of a device Martin Öhrling
2014-02-04 19:55 ` Konrad Rzeszutek Wilk
2014-02-04 20:05   ` Sander Eikelenboom
2014-02-25 11:31   ` Martin Öhrling

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.