On Sat, Jan 26, 2019 at 03:31:12AM +0100, Marek Marczykowski-Górecki wrote: > HVM domains use IOMMU and device model assistance for communicating with > PCI devices, xen-pcifront/pciback isn't directly needed by HVM domain. > But pciback serve also second function - it reset the device when it is > deassigned from the guest and for this reason pciback needs to be used > with HVM domain too. > When HVM domain has device model in stubdomain, attaching xen-pciback to > the target domain itself may prevent attaching xen-pciback to the > (PV) stubdomain, effectively breaking PCI passthrough. > > Fix this by attaching pciback only to one domain: if PV stubdomain is in > use, let it be stubdomain (the commit prevents attaching device to target > HVM in this case); otherwise, attach it to the target domain. > > Signed-off-by: Marek Marczykowski-Górecki <marma...@invisiblethingslab.com>
Acked-by: Wei Liu <wei.l...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel