[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Ping: [PATCH] PCI/passthrough: don't discard Dom0 provided information
>>> On 06.12.17 at 17:19, wrote: > Instead of giving, to subsequent code, the appearance of there not > having been any "info" data provided, adjust the conditional guarding > SR-IOV handling. > > Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Anyone caring to take a look? Otherwise I'll commit this without any ack in a couple of days. Jan > --- a/xen/drivers/passthrough/pci.c > +++ b/xen/drivers/passthrough/pci.c > @@ -629,10 +629,7 @@ int pci_add_device(u16 seg, u8 bus, u8 d > else if ( info->is_extfn ) > pdev_type = "extended function"; > else > - { > - info = NULL; > pdev_type = "device"; > - } > > ret = xsm_resource_plug_pci(XSM_PRIV, (seg << 16) | (bus << 8) | devfn); > if ( ret ) > @@ -660,7 +657,8 @@ int pci_add_device(u16 seg, u8 bus, u8 d > if ( pdev->info.is_virtfn ) > pdev->info.is_extfn = pf_is_extfn; > } > - else if ( !pdev->vf_rlen[0] ) > + > + if ( !pdev->info.is_virtfn && !pdev->vf_rlen[0] ) > { > unsigned int pos = pci_find_ext_capability(seg, bus, devfn, > PCI_EXT_CAP_ID_SRIOV); > > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |